]> git.baikalelectronics.ru Git - kernel.git/commit
nfs: don't call bdi_unregister
authorChristoph Hellwig <hch@lst.de>
Wed, 14 Jan 2015 09:42:39 +0000 (10:42 +0100)
committerJens Axboe <axboe@fb.com>
Tue, 20 Jan 2015 21:03:09 +0000 (14:03 -0700)
commit585daa998579aa4c3177364b53b7591ed9588ab2
tree9115cee236cd2fb9ff3e471364ebe0d136260a38
parentecc77fa91fed7ddcace8d99531571ebe52c95ffe
nfs: don't call bdi_unregister

bdi_destroy already does all the work, and if we delay freeing the
anon bdev we can get away with just that single call.

Addintionally remove the call during mount failure, as
deactivate_super_locked will already call ->kill_sb and clean up
the bdi for us.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Jan Kara <jack@suse.cz>
Signed-off-by: Jens Axboe <axboe@fb.com>
fs/nfs/internal.h
fs/nfs/nfs4super.c
fs/nfs/super.c