commit | 6eedc70150d55b5885800eb6664ea226dc2cb66f | [log] [tgz] |
---|---|---|
author | Jan Kara <jack@suse.cz> | Tue Jul 03 16:45:27 2012 +0200 |
committer | Al Viro <viro@zeniv.linux.org.uk> | Sun Jul 22 23:58:18 2012 +0400 |
tree | e0d0762e047d1fae5d7b6ead1214545bcb205f4e | |
parent | 9e9ad5f408889db6038a59b38ede29ff1ba9ef2f [diff] |
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 <hch@lst.de> Signed-off-by: Jan Kara <jack@suse.cz> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>