summaryrefslogtreecommitdiff
path: root/include/linux/blkdev.h
diff options
context:
space:
mode:
authorChristian Brauner <brauner@kernel.org>2023-10-24 16:01:10 +0300
committerChristian Brauner <brauner@kernel.org>2023-11-18 16:59:23 +0300
commita30561a9be69d446d8d542a4f9735fe5ca9573df (patch)
tree54d24522772d292182fb67c5b88f5fc284334a8f /include/linux/blkdev.h
parentfbcb8f39e96d59f4ed48cbdfaa65211fa867985c (diff)
downloadlinux-a30561a9be69d446d8d542a4f9735fe5ca9573df.tar.xz
bdev: add freeze and thaw holder operations
Add block device freeze and thaw holder operations. Follow-up patches will implement block device freeze and thaw based on stuct blk_holder_ops. Link: https://lore.kernel.org/r/20231024-vfs-super-freeze-v2-4-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/blkdev.h')
-rw-r--r--include/linux/blkdev.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h
index 7a3da7f44afb..1bc776335ff8 100644
--- a/include/linux/blkdev.h
+++ b/include/linux/blkdev.h
@@ -1468,6 +1468,16 @@ struct blk_holder_ops {
* Sync the file system mounted on the block device.
*/
void (*sync)(struct block_device *bdev);
+
+ /*
+ * Freeze the file system mounted on the block device.
+ */
+ int (*freeze)(struct block_device *bdev);
+
+ /*
+ * Thaw the file system mounted on the block device.
+ */
+ int (*thaw)(struct block_device *bdev);
};
extern const struct blk_holder_ops fs_holder_ops;