[Devel] [RFC][PATCH 16/36] nfs: Add checkpoint file operations

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


Add the checkpoint operation for regular nfs files and directories.
 Skip the various /proc files for now.


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

diff --git a/fs/nfs/dir.c b/fs/nfs/dir.c
index 370b190..d1e02c5 100644
--- a/fs/nfs/dir.c
+++ b/fs/nfs/dir.c
@@ -64,6 +64,7 @@ const struct file_operations nfs_dir_operations = {
 	.open		= nfs_opendir,
 	.release	= nfs_release,
 	.fsync		= nfs_fsync_dir,
+	.checkpoint	= generic_file_checkpoint,
 };
 
 const struct inode_operations nfs_dir_inode_operations = {
diff --git a/fs/nfs/file.c b/fs/nfs/file.c
index 5a97bcf..b48da8d 100644
--- a/fs/nfs/file.c
+++ b/fs/nfs/file.c
@@ -75,6 +75,7 @@ const struct file_operations nfs_file_operations = {
 	.splice_read	= nfs_file_splice_read,
 	.check_flags	= nfs_check_flags,
 	.setlease	= nfs_setlease,
+	.checkpoint	= generic_file_checkpoint,
 };
 
 const struct inode_operations nfs_file_inode_operations = {
-- 
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