[Devel] [RFC][PATCH 28/36] read_write.c | 1 +: Add checkpoint file operations

Matt Helsley matthltc at us.ibm.com
Mon May 4 13:27:50 PDT 2009


Add the checkpoint operation for generic, read-only files. At present,
 some/all files of the following filesystems use this generic definition:


	freevxfs, romfs, efs, cramfs, isofs, squashfs, befs

This generic filesystem operation definition includes a seek operation
and is thus restartable given the generic checkpoint operation.

Signed-off-by: Matt Helsley <matthltc at us.ibm.com>
---
 fs/read_write.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/fs/read_write.c b/fs/read_write.c
index ed63ea3..88655d5 100644
--- a/fs/read_write.c
+++ b/fs/read_write.c
@@ -27,6 +27,7 @@ const struct file_operations generic_ro_fops = {
 	.aio_read	= generic_file_aio_read,
 	.mmap		= generic_file_readonly_mmap,
 	.splice_read	= generic_file_splice_read,
+	.checkpoint	= generic_file_checkpoint,
 };
 
 EXPORT_SYMBOL(generic_ro_fops);
-- 
1.5.6.3


_______________________________________________
Containers mailing list
Containers at lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/containers




More information about the Devel mailing list