diff options
author | Christoph Hellwig <hch@lst.de> | 2010-06-08 16:14:51 (GMT) |
---|---|---|
committer | Jens Axboe <jaxboe@fusionio.com> | 2010-06-11 10:58:07 (GMT) |
commit | cf37e972478ec58a8a54a6b4f951815f0ae28f78 (patch) | |
tree | b14d75074692ddb213e22e098a64087950f4cf78 /fs/ubifs | |
parent | 3c4d716538f3eefb1c1f10961a047a6456a2b590 (diff) | |
download | linux-fsl-qoriq-cf37e972478ec58a8a54a6b4f951815f0ae28f78.tar.xz |
writeback: enforce s_umount locking in writeback_inodes_sb
Make sure that not only sync_filesystem but all callers of writeback_inodes_sb
have the superblock protected against remount. As-is this disables all
functionality for these callers, but the next patch relies on this locking to
fix writeback_inodes_sb for sync_filesystem.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
Diffstat (limited to 'fs/ubifs')
-rw-r--r-- | fs/ubifs/budget.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/ubifs/budget.c b/fs/ubifs/budget.c index 076ca50..c8ff0d1 100644 --- a/fs/ubifs/budget.c +++ b/fs/ubifs/budget.c @@ -62,7 +62,9 @@ */ static void shrink_liability(struct ubifs_info *c, int nr_to_write) { + down_read(&c->vfs_sb->s_umount); writeback_inodes_sb(c->vfs_sb); + up_read(&c->vfs_sb->s_umount); } /** |