commit | ec5d451438a2f24c9b9c33c195bc2c39dcd3d3f0 | [log] [tgz] |
---|---|---|
author | Christoph Hellwig <hch@lst.de> | Tue Nov 17 12:01:26 2020 +0100 |
committer | Jens Axboe <axboe@kernel.dk> | Tue Dec 01 14:53:39 2020 -0700 |
tree | 571340e8aadfe2b604ac5c012b7d52ce5aaeedf8 | |
parent | 013b0e96ae2225a649b48a2f8fc4f87429483cb1 [diff] |
block: refactor __blkdev_put Reorder the code to have one big section for the last close, and to use bdev_is_partition. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Reviewed-by: Jan Kara <jack@suse.cz> Reviewed-by: Hannes Reinecke <hare@suse.de> Acked-by: Tejun Heo <tj@kernel.org> Signed-off-by: Jens Axboe <axboe@kernel.dk>