block: change the hash used for looking up block devices
authorChristoph Hellwig <hch@lst.de>
Mon, 9 Nov 2020 16:52:02 +0000 (17:52 +0100)
committerJens Axboe <axboe@kernel.dk>
Tue, 1 Dec 2020 21:53:39 +0000 (14:53 -0700)
commit612c6aa7817f1c89b6a92fc724331aa7c9d77f6e
tree7a48c0f8c7a7e5533e6bba99884280cc413a341b
parentefdc41c8d49fc1ff9bbef8f68f1cf1d8d59164a1
block: change the hash used for looking up block devices

Adding the minor to the major creates tons of pointless conflicts. Just
use the dev_t itself, which is 32-bits and thus is guaranteed to fit
into ino_t.

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>
fs/block_dev.c