From: Christian Brauner Date: Tue, 24 Oct 2023 13:01:16 +0000 (+0200) Subject: blkdev: comment fs_holder_ops X-Git-Tag: v6.8-rc1~214^2~17 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e419cf3ebaee694a826ddcfb350f1b1ebaf1e599;p=thirdparty%2Flinux.git blkdev: comment fs_holder_ops 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 Reviewed-by: Jan Kara Reviewed-by: Christoph Hellwig Signed-off-by: Christian Brauner --- diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h index 1bc776335ff89..abf71cce785c2 100644 --- a/include/linux/blkdev.h +++ b/include/linux/blkdev.h @@ -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; /*