From: Jan Kara Date: Tue, 3 Jul 2012 14:45:34 +0000 (+0200) Subject: vfs: Avoid unnecessary WB_SYNC_NONE writeback during sys_sync and reorder sync passes X-Git-Tag: v3.6-rc1~152^2~12 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4ea425b63a3dfeb7707fc7cc7161c11a51e871ed;p=pandora-kernel.git vfs: Avoid unnecessary WB_SYNC_NONE writeback during sys_sync and reorder sync passes wakeup_flusher_threads(0) will queue work doing complete writeback for each flusher thread. Thus there is not much point in submitting another work doing full inode WB_SYNC_NONE writeback by writeback_inodes_sb(). After this change it does not make sense to call nonblocking ->sync_fs and block device flush before calling sync_inodes_sb() because wakeup_flusher_threads() is completely asynchronous and thus these functions would be called in parallel with inode writeback running which will effectively void any work they do. So we move sync_inodes_sb() call before these two functions. Signed-off-by: Jan Kara Signed-off-by: Al Viro --- Reading git-diff-tree failed