summaryrefslogtreecommitdiff
path: root/fs/nilfs2
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2024-04-29 02:09:12 +0300
committerAl Viro <viro@zeniv.linux.org.uk>2024-05-03 09:36:55 +0300
commitdf65f1660b6141f0b051d2439cc99222a6ae865b (patch)
treed0abc91b66a58a65cff73f60d7ac89845caf1796 /fs/nilfs2
parent2d0026a4901be98000137af41bb42b6ead5a4c27 (diff)
downloadlinux-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 'fs/nilfs2')
0 files changed, 0 insertions, 0 deletions