fs: sync_sb_inodes fix
commite782d5e42a1ada8df4aa0665d9f21f1ddbc24320
authorNick Piggin <npiggin@suse.de>
Tue, 6 Jan 2009 22:40:25 +0000 (6 14:40 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sun, 25 Jan 2009 00:41:52 +0000 (24 16:41 -0800)
tree1dba75e1d40796381c2aaf62227e8e9bfb7b712f
parent919b966c19b9ae2ed62213f2e59f5ca948f98671
fs: sync_sb_inodes fix

commit 38f21977663126fef53f5585e7f1653d8ebe55c4 upstream.

Fix data integrity semantics required by sys_sync, by iterating over all
inodes and waiting for any writeback pages after the initial writeout.
Comments explain the exact problem.

Signed-off-by: Nick Piggin <npiggin@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/fs-writeback.c