Commit 49603288 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 c3cebacd
......@@ -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);
if (remount_rw)
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
directories in pagecache, etc). Also file data modifications
go via their own mappings. So If we try to mount readonly
then copy the filesystem from bdev, we could get stale data,
so invalidate it to give a best effort at coherency. */
/*
* Some filesystems modify their metadata via some other path than the
* bdev buffer cache (eg. use a private mapping, or directories in
* pagecache, etc). Also file data modifications go via their own
* mappings. So If we try to mount readonly then copy the filesystem
* from bdev, we could get stale data, so invalidate it to give a best
* effort at coherency.
*/
if (remount_ro && sb->s_bdev)
invalidate_bdev(sb->s_bdev);
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