summaryrefslogtreecommitdiff
path: root/include/linux/blk_types.h
diff options
context:
space:
mode:
authorChristian Brauner <brauner@kernel.org>2023-09-27 16:21:16 +0300
committerChristian Brauner <brauner@kernel.org>2023-11-18 16:59:23 +0300
commit49ef8832fb1a9e0da0020eb17480fd286433bc13 (patch)
treed7163fa4aa3f1017912bf6bf03682321ff03af81 /include/linux/blk_types.h
parenta30561a9be69d446d8d542a4f9735fe5ca9573df (diff)
downloadlinux-49ef8832fb1a9e0da0020eb17480fd286433bc13.tar.xz
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/linux/blk_types.h')
-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;