From: Jan Kara Date: Tue, 3 Jul 2012 14:45:27 +0000 (+0200) Subject: vfs: Move noop_backing_dev_info check from sync into writeback X-Git-Tag: v3.6-rc1~152^2~19 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6eedc70150d55b5885800eb6664ea226dc2cb66f;p=pandora-kernel.git vfs: Move noop_backing_dev_info check from sync into writeback In principle, a filesystem may want to have ->sync_fs() called during sync(1) although it does not have a bdi (i.e. s_bdi is set to noop_backing_dev_info). Only writeback code really needs bdi set to something reasonable. So move the checks where they are more logical. Reviewed-by: Christoph Hellwig Signed-off-by: Jan Kara Signed-off-by: Al Viro --- Reading git-diff-tree failed