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
..
2009-06-10 11:36:43 -04:00
2009-06-10 11:29:47 -04:00
2009-06-10 11:36:43 -04:00
2008-09-25 11:04:06 -04:00
2009-04-24 15:46:04 -04:00
2009-02-04 09:28:28 -05:00
2009-04-02 16:46:06 -04:00
2009-01-05 21:25:51 -05:00
2009-02-04 09:29:13 -05:00
2009-02-04 09:29:13 -05:00
2009-01-05 21:25:51 -05:00