block: move the devcgroup_inode_permission call to blkdev_get
authorChristoph Hellwig <hch@lst.de>
Mon, 31 Aug 2020 18:02:36 +0000 (20:02 +0200)
committerJens Axboe <axboe@kernel.dk>
Tue, 1 Sep 2020 22:49:26 +0000 (16:49 -0600)
commite5c7fb400227df5c7822a3c59b193d23e849d0ac
treebdc58dbaeef65b983e9e8fe58c0d5c59977f3dbc
parent46d40cfad13ccbd0739019d754d46d8f93e1d5aa
block: move the devcgroup_inode_permission call to blkdev_get

devcgroup_inode_permission is never called for the recusive case, so
move it out into blkdev_get.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/block_dev.c