mirror of
https://github.com/torvalds/linux.git
synced 2026-09-22 04:34:03 +02:00
super: make fs_holder_ops private
Now that filesystems open and claim their block devices through
fs_bdev_file_open_by_{dev,path}(), nothing outside fs/super.c references
fs_holder_ops. Make it static and drop its declaration from blkdev.h.
Reviewed-by: Jan Kara <jack@suse.cz>
Link: https://patch.msgid.link/20260616-work-super-bdev_holder_global-v2-16-7df6b864028e@kernel.org
Signed-off-by: Christian Brauner (Amutable) <brauner@kernel.org>
This commit is contained in:
parent
03d0c37ccf
commit
41fda7804a
|
|
@ -1624,13 +1624,12 @@ static int fs_bdev_thaw(struct block_device *bdev)
|
|||
return error;
|
||||
}
|
||||
|
||||
const struct blk_holder_ops fs_holder_ops = {
|
||||
static const struct blk_holder_ops fs_holder_ops = {
|
||||
.mark_dead = fs_bdev_mark_dead,
|
||||
.sync = fs_bdev_sync,
|
||||
.freeze = fs_bdev_freeze,
|
||||
.thaw = fs_bdev_thaw,
|
||||
};
|
||||
EXPORT_SYMBOL_GPL(fs_holder_ops);
|
||||
|
||||
static struct super_dev *super_dev_lookup(dev_t dev, struct super_block *sb)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1768,13 +1768,6 @@ struct blk_holder_ops {
|
|||
__releases(&bdev->bd_holder_lock);
|
||||
};
|
||||
|
||||
/*
|
||||
* For filesystems using @fs_holder_ops, the @holder argument passed to
|
||||
* helpers used to open and claim block devices via
|
||||
* bd_prepare_to_claim() must point to a superblock.
|
||||
*/
|
||||
extern const struct blk_holder_ops fs_holder_ops;
|
||||
|
||||
/*
|
||||
* Return the correct open flags for blkdev_get_by_* for super block flags
|
||||
* as stored in sb->s_flags.
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user