]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita95ac9f095b27b8255239d44651cd37151464505
tree7a48c0f8c7a7e5533e6bba99884280cc413a341b
parentf1f53f8e6a3c2b293572190b98752217d60857a5
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