From: Artem Bityutskiy Date: Mon, 5 Jul 2010 12:15:00 +0000 (+0300) Subject: AFFS: wait for sb synchronization when needed X-Git-Tag: v2.6.36-rc1~304^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7435d50611b04c1155a939a9f373154a53606592;p=pandora-kernel.git AFFS: wait for sb synchronization when needed AFFS does not ever wait for superblock synchronization in ->put_super(), ->write_super, and ->sync_fs(). However, it should wait for synchronization in ->put_super() because it is about to be unmounted, in ->write_super() because this is periodic SB synchronization performed from a separate kernel thread, and in ->sync_fs() it should respect the 'wait' flag. This patch fixes the situation. Also, in ->put_super(), do not write the SB if it is not dirty. Tested-by: Artem Bityutskiy Signed-off-by: Artem Bityutskiy Signed-off-by: Al Viro --- Reading git-diff-tree failed