]> git.baikalelectronics.ru Git - kernel.git/commit
vfs: Move noop_backing_dev_info check from sync into writeback
authorJan Kara <jack@suse.cz>
Tue, 3 Jul 2012 14:45:27 +0000 (16:45 +0200)
committerAl Viro <viro@zeniv.linux.org.uk>
Sun, 22 Jul 2012 19:58:18 +0000 (23:58 +0400)
commit6bed6457a8c20ee804ed74e652ad4bfe6591941f
treee0d0762e047d1fae5d7b6ead1214545bcb205f4e
parent9716a180d95c5b1fda36565787e29c067c97fe49
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>
fs/fs-writeback.c
fs/sync.c