]> git.ipfire.org Git - thirdparty/linux.git/commit
bdev: implement freeze and thaw holder operations
authorChristian Brauner <brauner@kernel.org>
Wed, 27 Sep 2023 13:21:16 +0000 (15:21 +0200)
committerChristian Brauner <brauner@kernel.org>
Sat, 18 Nov 2023 13:59:23 +0000 (14:59 +0100)
commit49ef8832fb1a9e0da0020eb17480fd286433bc13
treed7163fa4aa3f1017912bf6bf03682321ff03af81
parenta30561a9be69d446d8d542a4f9735fe5ca9573df
bdev: implement freeze and thaw holder operations

The old method of implementing block device freeze and thaw operations
required us to rely on get_active_super() to walk the list of all
superblocks on the system to find any superblock that might use the
block device. This is wasteful and not very pleasant overall.

Now that we can finally go straight from block device to owning
superblock things become way simpler.

Link: https://lore.kernel.org/r/20231024-vfs-super-freeze-v2-5-599c19f4faac@kernel.org
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Jan Kara <jack@suse.cz>
Signed-off-by: Christian Brauner <brauner@kernel.org>
block/bdev.c
fs/super.c
include/linux/blk_types.h