Skip to content

btrfs: use the super_block as bdev holder

Johannes Thumshirn linux-btrfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest5 patches 12 repliesIn review

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5btrfs: always open the device read-only in btrfs_scan_one_devicefs/btrfs/super.c fs/btrfs/volumes.c fs/btrfs/volumes.h+7 -81 reply
2/5btrfs: call btrfs_close_devices from ->kill_sbfs/btrfs/disk-io.c fs/btrfs/super.c+18 -151 reply
3/5btrfs: split btrfs_fs_devices.openedfs/btrfs/volumes.c fs/btrfs/volumes.h+34 -253 replies
4/5btrfs: open block devices after superblock creationfs/btrfs/super.c fs/btrfs/volumes.c+30 -250 replies
5/5btrfs: use the super_block as holder when mounting file systemsfs/btrfs/super.c+2 -20 replies

Reviews trailers per patch

2 of 5 patches have a Reviewed-by or Acked-by.

PatchQu Wenruo
1/5R-b
2/5
3/5R-b
4/5
5/5

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/5] btrfs: use the super_block as bdev holder

From: Johannes Thumshirn <[email protected]>

This is a series I've picked up from Christoph, it changes the block_device's bdev holder from fs_type to the super block.

As the re-base was non trivial, I opted to drop Boris' Reviewed-by tags.

Here's the original cover letter:
Hi all,

this series contains the btrfs parts of the "remove get_super" from June that managed to get lost.

I've dropped all the reviews from back then as the rebase against the new mount API conversion led to a lot of non-trivial conflicts.

Josef kindly ran it through the CI farm and provided a fixup based on that.

Link to rebase v1:
https://lore.kernel.org/linux-btrfs/[email protected]/

Link to original posting:
https://lore.kernel.org/linux-btrfs/[email protected]/

Christoph Hellwig (5):
btrfs: always open the device read-only in btrfs_scan_one_device
btrfs: call btrfs_close_devices from ->kill_sb
btrfs: split btrfs_fs_devices.opened
btrfs: open block devices after superblock creation
btrfs: use the super_block as holder when mounting file systems

 fs/btrfs/disk-io.c |  4 +--
 fs/btrfs/super.c   | 70 +++++++++++++++++++++++++++-------------------
 fs/btrfs/volumes.c | 62 ++++++++++++++++++++--------------------
 fs/btrfs/volumes.h |  8 ++++--
 4 files changed, 80 insertions(+), 64 deletions(-)
Signature · 1 line
2.49.0