Commit 537c370f authored by Andrew Morton's avatar Andrew Morton Committed by James Toy

repair comment layout

Cc: Nick Piggin <npiggin@suse.de>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
parent 1bc98644
...@@ -561,12 +561,14 @@ int do_remount_sb(struct super_block *sb, int flags, void *data, int force) ...@@ -561,12 +561,14 @@ int do_remount_sb(struct super_block *sb, int flags, void *data, int force)
sb->s_flags = (sb->s_flags & ~MS_RMT_MASK) | (flags & MS_RMT_MASK); sb->s_flags = (sb->s_flags & ~MS_RMT_MASK) | (flags & MS_RMT_MASK);
if (remount_rw) if (remount_rw)
vfs_dq_quota_on_remount(sb); vfs_dq_quota_on_remount(sb);
/* Some filesystems modify their metadata via some other path /*
than the bdev buffer cache (eg. use a private mapping, or * Some filesystems modify their metadata via some other path than the
directories in pagecache, etc). Also file data modifications * bdev buffer cache (eg. use a private mapping, or directories in
go via their own mappings. So If we try to mount readonly * pagecache, etc). Also file data modifications go via their own
then copy the filesystem from bdev, we could get stale data, * mappings. So If we try to mount readonly then copy the filesystem
so invalidate it to give a best effort at coherency. */ * from bdev, we could get stale data, so invalidate it to give a best
* effort at coherency.
*/
if (remount_ro && sb->s_bdev) if (remount_ro && sb->s_bdev)
invalidate_bdev(sb->s_bdev); invalidate_bdev(sb->s_bdev);
return 0; return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment