Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Commit df65f166 authored by Al Viro's avatar Al Viro
Browse files

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: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 2d0026a4
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment