missing helpers: bdev_unhash(), bdev_drop()
authorAl Viro <viro@zeniv.linux.org.uk>
Sun, 28 Apr 2024 23:01:39 +0000 (19:01 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Fri, 3 May 2024 06:36:21 +0000 (02:36 -0400)
commit2638c20876734f986fd91cfbe196483835ed7095
tree1cb487635c21b1a5bc1a1688f7054dceaba7c4cb
parent186ddac2072a8134798d72635d1ed0f29889369d
missing helpers: bdev_unhash(), bdev_drop()

bdev_unhash(): make block device invisible to lookups by device number
bdev_drop(): drop reference to associated inode.

Both are internal, for use by genhd and partition-related code - similar
to bdev_add().  The logics in there (especially the lifetime-related
parts of it) ought to be cleaned up, but that's a separate story; here
we just encapsulate getting to associated inode.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
block/bdev.c
block/blk.h
block/genhd.c
block/partitions/core.c