diff options
author | 2024-04-11 15:53:46 +0100 | |
---|---|---|
committer | 2024-05-03 02:36:21 -0400 | |
commit | c9600c63a694249100e2bdcbb604c30d8fee2dc7 (patch) | |
tree | 8548a92f890b53042aa18b7c95d1aec783b1725a /tools/perf/scripts/python/export-to-postgresql.py | |
parent | dm-vdo: use bdev_nr_bytes(bdev) instead of i_size_read(bdev->bd_inode) (diff) | |
download | wireguard-linux-c9600c63a694249100e2bdcbb604c30d8fee2dc7.tar.xz wireguard-linux-c9600c63a694249100e2bdcbb604c30d8fee2dc7.zip |
block2mtd: prevent direct access of bd_inode
All we need is size, and that can be obtained via bdev_nr_bytes()
Signed-off-by: Yu Kuai <yukuai3@huawei.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Jan Kara <jack@suse.cz>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Link: https://lore.kernel.org/r/20240411145346.2516848-11-viro@zeniv.linux.org.uk
Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions