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)
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

Simple merge
Simple merge
diff --cc fs/nfs/super.c
Simple merge