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)
commit7b14a213890a81473ec97ad7e322d5c2f19854ae
tree9115cee236cd2fb9ff3e471364ebe0d136260a38
parente4d2750909aa26129bd0bf1b0dc832e0845aae90
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