OpenCloudOS-Kernel/fs/cachefiles
Christoph Hellwig 5af7926ff3 enforce ->sync_fs is only called for rw superblock
Make sure a superblock really is writeable by checking MS_RDONLY
under s_umount.  sync_filesystems needed some re-arragement for
that, but all but one sync_filesystem caller had the correct locking
already so that we could add that check there.  cachefiles grew
s_umount locking.

I've also added a WARN_ON to sync_filesystem to assert this for
future callers.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
2009-06-11 21:36:06 -04:00
..
Kconfig CacheFiles: A cache that backs onto a mounted filesystem 2009-04-03 16:42:41 +01:00
Makefile CacheFiles: A cache that backs onto a mounted filesystem 2009-04-03 16:42:41 +01:00
bind.c CacheFiles: A cache that backs onto a mounted filesystem 2009-04-03 16:42:41 +01:00
daemon.c CacheFiles: A cache that backs onto a mounted filesystem 2009-04-03 16:42:41 +01:00
interface.c enforce ->sync_fs is only called for rw superblock 2009-06-11 21:36:06 -04:00
internal.h CacheFiles: Fixup renamed filenames in comments in internal.h 2009-05-27 10:20:13 -07:00
key.c CacheFiles: A cache that backs onto a mounted filesystem 2009-04-03 16:42:41 +01:00
main.c CacheFiles: A cache that backs onto a mounted filesystem 2009-04-03 16:42:41 +01:00
namei.c CacheFiles: A cache that backs onto a mounted filesystem 2009-04-03 16:42:41 +01:00
proc.c CacheFiles: A cache that backs onto a mounted filesystem 2009-04-03 16:42:41 +01:00
rdwr.c CacheFiles: A cache that backs onto a mounted filesystem 2009-04-03 16:42:41 +01:00
security.c CacheFiles: A cache that backs onto a mounted filesystem 2009-04-03 16:42:41 +01:00
xattr.c CacheFiles: A cache that backs onto a mounted filesystem 2009-04-03 16:42:41 +01:00