summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorChristian Brauner <brauner@kernel.org>2023-09-27 15:21:16 +0200
committerChristian Brauner <brauner@kernel.org>2023-11-18 14:59:23 +0100
commit49ef8832fb1a9e0da0020eb17480fd286433bc13 (patch)
treed7163fa4aa3f1017912bf6bf03682321ff03af81 /include
parenta30561a9be69d446d8d542a4f9735fe5ca9573df (diff)
downloadlwn-49ef8832fb1a9e0da0020eb17480fd286433bc13.tar.gz
lwn-49ef8832fb1a9e0da0020eb17480fd286433bc13.zip
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>
Diffstat (limited to 'include')
-rw-r--r--include/linux/blk_types.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/blk_types.h b/include/linux/blk_types.h
index d5c5e59ddbd2..88e1848b0869 100644
--- a/include/linux/blk_types.h
+++ b/include/linux/blk_types.h
@@ -57,7 +57,7 @@ struct block_device {
const struct blk_holder_ops *bd_holder_ops;
struct mutex bd_holder_lock;
/* The counter of freeze processes */
- int bd_fsfreeze_count;
+ atomic_t bd_fsfreeze_count;
int bd_holders;
struct kobject *bd_holder_dir;