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-03-20 19:11:12 +02:00
2008-12-03 13:14:33 +02:00
2008-12-31 14:13:24 +02:00
2009-03-20 19:11:12 +02:00
2009-01-26 12:54:11 +02:00
2009-01-26 12:54:11 +02:00
2009-03-08 13:29:09 +02:00
2009-03-20 19:12:00 +02:00
2009-01-27 16:25:10 +02:00
2008-12-31 14:13:25 +02:00
2009-03-20 19:11:12 +02:00
2009-03-08 13:29:41 +02:00
2009-03-20 19:11:12 +02:00
2009-01-26 12:54:11 +02:00
2009-03-20 19:11:12 +02:00
2008-12-23 12:23:40 +02:00
2008-07-15 17:35:24 +03:00
2009-01-29 16:22:54 +02:00
2008-09-30 11:12:56 +03:00
2009-03-31 14:58:40 +03:00
2009-03-20 19:11:12 +02:00
2009-03-26 16:36:20 +02:00
2008-09-30 11:12:56 +03:00
2009-02-17 12:45:22 +02:00
2008-09-30 11:12:57 +03:00
2009-03-20 19:11:12 +02:00
2009-03-26 16:36:20 +02:00
2009-03-26 16:36:20 +02:00
2008-09-30 11:12:55 +03:00