diff options
author | Yi Li <[email protected]> | 2020-12-23 23:04:21 +0800 |
---|---|---|
committer | Jens Axboe <[email protected]> | 2020-12-23 09:25:15 -0700 |
commit | 117ae250cfa3718f21bd07df0650dfbe3bc3a823 (patch) | |
tree | 61e3e5b562e4f326bb855a42e8842f88183eac3c /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 7b51e703a89b824dbbf65de96e77d10d4915dbe0 (diff) |
bcache:remove a superfluous check in register_bcache
There have no reassign the bdev after check It is IS_ERR.
the double check !IS_ERR(bdev) is superfluous.
After commit 4e7b5671c6a8 ("block: remove i_bdev"),
"Switch the block device lookup interfaces to directly work with a dev_t
so that struct block_device references are only acquired by the
blkdev_get variants (and the blk-cgroup special case). This means that
we now don't need an extra reference in the inode and can generally
simplify handling of struct block_device to keep the lookups contained
in the core block layer code."
so after lookup_bdev call, there no need to do bdput.
remove a superfluous check the bdev & don't call bdput after lookup_bdev.
Fixes: 4e7b5671c6a8("block: remove i_bdev")
Signed-off-by: Yi Li <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Signed-off-by: Coly Li <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions