linux/fs/btrfs
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
Makefile
acl.c Fix btrfs when ACLs are configured out 2009-06-10 11:36:43 -04:00
async-thread.c Btrfs: init worker struct fields before kthread-run 2009-06-10 20:11:29 -04:00
async-thread.h
btrfs_inode.h Btrfs: implement FS_IOC_GETFLAGS/SETFLAGS/GETVERSION 2009-06-10 11:29:52 -04:00
compat.h
compression.c Btrfs: implement FS_IOC_GETFLAGS/SETFLAGS/GETVERSION 2009-06-10 11:29:52 -04:00
compression.h
ctree.c
ctree.h Fix btrfs when ACLs are configured out 2009-06-10 11:36:43 -04:00
delayed-ref.c
delayed-ref.h
dir-item.c
disk-io.c Btrfs: pin buffers during write_dev_supers 2009-06-10 16:49:25 -04:00
disk-io.h
export.c
export.h
extent-tree.c Btrfs: check duplicate backrefs for both data and metadata 2009-06-11 08:51:34 -04:00
extent_io.c
extent_io.h
extent_map.c
extent_map.h
file-item.c
file.c Btrfs: fdatasync should skip metadata writeout 2009-06-10 11:29:53 -04:00
free-space-cache.c
free-space-cache.h
hash.h Btrfs: remove crc32c.h and use libcrc32c directly. 2009-06-10 11:29:53 -04:00
inode-item.c
inode-map.c
inode.c btrfs: remove ->write_super and stop maintaining ->s_dirt 2009-06-11 21:36:05 -04:00
ioctl.c Btrfs: fix oops when btrfs_inherit_iflags called with a NULL dir 2009-06-11 11:13:35 -04:00
ioctl.h
locking.c
locking.h
ordered-data.c
ordered-data.h
orphan.c
print-tree.c
print-tree.h
ref-cache.c
ref-cache.h
relocation.c
root-tree.c
struct-funcs.c
super.c enforce ->sync_fs is only called for rw superblock 2009-06-11 21:36:06 -04:00
sysfs.c
transaction.c
transaction.h
tree-defrag.c
tree-log.c Btrfs: fix extent_buffer leak during tree log replay 2009-06-11 11:24:47 -04:00
tree-log.h
version.h
version.sh
volumes.c Btrfs: avoid races between super writeout and device list updates 2009-06-10 15:17:02 -04:00
volumes.h Btrfs: avoid races between super writeout and device list updates 2009-06-10 15:17:02 -04:00
xattr.c
xattr.h
zlib.c