aboutsummaryrefslogtreecommitdiffstats
path: root/samples
diff options
context:
space:
mode:
authorJan Kara <jack@suse.cz>2017-04-12 12:24:26 +0200
committerJens Axboe <axboe@fb.com>2017-04-20 12:09:55 -0600
commit5af110b2fb59eda9ba22ff1057f36bd96e340e09 (patch)
tree0a0c299a51e01403609339e72f65c7f948047ea2 /samples
parentbdi: Provide bdi_register_va() and bdi_alloc() (diff)
downloadlinux-dev-5af110b2fb59eda9ba22ff1057f36bd96e340e09.tar.xz
linux-dev-5af110b2fb59eda9ba22ff1057f36bd96e340e09.zip
block: Unregister bdi on last reference drop
Most users will want to unregister bdi when dropping last reference to a bdi. Only a few users (like block devices) want to play more complex tricks with bdi registration and unregistration. So unregister bdi when the last reference to bdi is dropped and just make sure we don't unregister the bdi the second time if it is already unregistered. Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Jan Kara <jack@suse.cz> Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'samples')
0 files changed, 0 insertions, 0 deletions