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-04-02 19:05:08 -07:00
2009-06-11 21:36:01 -04:00
2009-06-11 21:36:01 -04:00
2009-06-11 21:36:01 -04:00
2009-04-08 10:21:43 -07:00
2009-06-11 21:36:01 -04:00
2009-04-02 19:05:09 -07:00
2009-01-22 13:15:58 +03:00
2009-05-22 18:40:59 +10:00
2009-04-20 23:02:51 -04:00
2009-06-11 21:36:01 -04:00
2009-06-11 21:36:01 -04:00
2008-10-17 02:38:36 +11:00
2009-06-11 21:36:05 -04:00
2009-03-27 14:44:03 -04:00
2008-12-31 18:07:43 -05:00
2009-01-03 11:45:54 -08:00
2009-03-31 23:00:27 -04:00
2009-06-11 21:36:06 -04:00
2009-04-02 19:04:48 -07:00
2009-03-31 23:00:26 -04:00
2009-06-11 21:36:02 -04:00
2009-04-07 08:31:16 -07:00
2009-04-07 08:31:16 -07:00
2009-06-11 21:36:01 -04:00
2009-06-11 21:36:02 -04:00
2009-04-20 23:02:52 -04:00
2009-06-11 21:36:06 -04:00
2009-02-18 15:37:53 -08:00
2009-06-11 21:36:02 -04:00