]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
blkdev: comment fs_holder_ops
authorChristian Brauner <brauner@kernel.org>
Tue, 24 Oct 2023 13:01:16 +0000 (15:01 +0200)
committerChristian Brauner <brauner@kernel.org>
Sat, 18 Nov 2023 13:59:24 +0000 (14:59 +0100)
Add a comment to @fs_holder_ops that @holder must point to a superblock.

Link: https://lore.kernel.org/r/20231024-vfs-super-freeze-v2-10-599c19f4faac@kernel.org
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Jan Kara <jack@suse.cz>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Christian Brauner <brauner@kernel.org>
include/linux/blkdev.h

index 1bc776335ff896c126f20adf1da92275599b12b5..abf71cce785c28b53046893845d5fd6a56a5d585 100644 (file)
@@ -1480,6 +1480,11 @@ struct blk_holder_ops {
        int (*thaw)(struct block_device *bdev);
 };
 
+/*
+ * For filesystems using @fs_holder_ops, the @holder argument passed to
+ * helpers used to open and claim block devices via
+ * bd_prepare_to_claim() must point to a superblock.
+ */
 extern const struct blk_holder_ops fs_holder_ops;
 
 /*