]> git.ipfire.org Git - thirdparty/linux.git/commit
btrfs: use the super_block as holder when mounting file systems
authorChristoph Hellwig <hch@lst.de>
Wed, 11 Jun 2025 10:03:03 +0000 (12:03 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 21 Jul 2025 22:06:19 +0000 (00:06 +0200)
commit40426dd147ffde7087dc29c263b87e1a2a36ca38
treee90b70fcaf621fd129a11c8bdb49bbb13c82ab1b
parentbddf57a70781ef8821d415200bdbcb71f443993a
btrfs: use the super_block as holder when mounting file systems

The file system type is not a very useful holder as it doesn't allow us
to go back to the actual file system instance.  Pass the super_block
instead which is useful when passed back to the file system driver.

This matches what is done for all other block device based file systems,
and allows us to remove btrfs_fs_info::bdev_holder completely.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/dev-replace.c
fs/btrfs/fs.h
fs/btrfs/super.c
fs/btrfs/volumes.c