projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fbcb8f3
)
bdev: add freeze and thaw holder operations
author
Christian Brauner
<brauner@kernel.org>
Tue, 24 Oct 2023 13:01:10 +0000
(15:01 +0200)
committer
Christian Brauner
<brauner@kernel.org>
Sat, 18 Nov 2023 13:59:23 +0000
(14:59 +0100)
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>
include/linux/blkdev.h
patch
|
blob
|
history
diff --git
a/include/linux/blkdev.h
b/include/linux/blkdev.h
index 7a3da7f44afb72fce2d58bd5dd7acb5468013129..1bc776335ff896c126f20adf1da92275599b12b5 100644
(file)
--- 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;