From: Andrew Ruder Date: Thu, 30 Jan 2014 15:26:54 +0000 (-0600) Subject: fs/super.c: sync ro remount after blocking writers X-Git-Tag: v3.14-rc1~12^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=807612db2f9940b9fa6deaef054eb16d51bd3e00;p=pandora-kernel.git fs/super.c: sync ro remount after blocking writers Move sync_filesystem() after sb_prepare_remount_readonly(). If writers sneak in anywhere from sync_filesystem() to sb_prepare_remount_readonly() it can cause inodes to be dirtied and writeback to occur well after sys_mount() has completely successfully. This was spotted by corrupted ubifs filesystems on reboot, but appears that it can cause issues with any filesystem using writeback. Cc: Artem Bityutskiy Cc: Christoph Hellwig Cc: Alexander Viro CC: Richard Weinberger Co-authored-by: Richard Weinberger Signed-off-by: Andrew Ruder Signed-off-by: Al Viro --- Reading git-diff-tree failed