summaryrefslogtreecommitdiffstats
path: root/lib/klist.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2021-01-07 19:36:40 +0100
committerJens Axboe <axboe@kernel.dk>2021-01-08 04:57:53 +0100
commit2d2f6f1b4799428d160c021dd652bc3e3593945e (patch)
tree4e264ec25128e8367791fd66373add37ab2cde7e /lib/klist.c
parentMerge tag 'nvme-5.11-2021-01-07' of git://git.infradead.org/nvme into block-5.11 (diff)
downloadlinux-2d2f6f1b4799428d160c021dd652bc3e3593945e.tar.xz
linux-2d2f6f1b4799428d160c021dd652bc3e3593945e.zip
block: pre-initialize struct block_device in bdev_alloc_inode
bdev_evict_inode and bdev_free_inode are also called for the root inode of bdevfs, for which bdev_alloc is never called. Move the zeroing o f struct block_device and the initialization of the bd_bdi field into bdev_alloc_inode to make sure they are initialized for the root inode as well. Fixes: e6cb53827ed6 ("block: initialize struct block_device in bdev_alloc") Reported-by: Alexey Kardashevskiy <aik@ozlabs.ru> Tested-by: Alexey Kardashevskiy <aik@ozlabs.ru> Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'lib/klist.c')
0 files changed, 0 insertions, 0 deletions