[Devel] [RFC][PATCH 07/36] fat: Add checkpoint file operations

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


Add the checkpoint operation for fat files and directories.


Signed-off-by: Matt Helsley <matthltc at us.ibm.com>
Cc: linux-fsdevel at vger.kernel.org
---
 fs/fat/dir.c  |    1 +
 fs/fat/file.c |    1 +
 2 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/fs/fat/dir.c b/fs/fat/dir.c
index 3a7f603..3baecf8 100644
--- a/fs/fat/dir.c
+++ b/fs/fat/dir.c
@@ -841,6 +841,7 @@ const struct file_operations fat_dir_operations = {
 	.compat_ioctl	= fat_compat_dir_ioctl,
 #endif
 	.fsync		= file_fsync,
+	.checkpoint	= generic_file_checkpoint,
 };
 
 static int fat_get_short_entry(struct inode *dir, loff_t *pos,
diff --git a/fs/fat/file.c b/fs/fat/file.c
index 0a7f4a9..f2abe6c 100644
--- a/fs/fat/file.c
+++ b/fs/fat/file.c
@@ -144,6 +144,7 @@ const struct file_operations fat_file_operations = {
 	.ioctl		= fat_generic_ioctl,
 	.fsync		= file_fsync,
 	.splice_read	= generic_file_splice_read,
+	.checkpoint	= generic_file_checkpoint,
 };
 
 static int fat_cont_expand(struct inode *inode, loff_t size)
-- 
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