diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2024-04-29 02:09:12 +0300 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2024-05-03 09:36:55 +0300 |
commit | df65f1660b6141f0b051d2439cc99222a6ae865b (patch) | |
tree | d0abc91b66a58a65cff73f60d7ac89845caf1796 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 2d0026a4901be98000137af41bb42b6ead5a4c27 (diff) | |
download | linux-df65f1660b6141f0b051d2439cc99222a6ae865b.tar.xz |
block/bdev.c: use the knowledge of inode/bdev coallocation
Here we know that bdevfs inodes are coallocated with struct block_device
and we can get to ->bd_inode value without any dereferencing. Introduce
an inlined helper (static, *not* exported, purely internal for bdev.c)
that gets an associated inode by block_device - BD_INODE(bdev).
NOTE: leave it static; nobody outside of block/bdev.c has any business
playing with that.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions