[Devel] [RFC][PATCH 35/36] nilfs2: Add checkpoint file operations
Matt Helsley
matthltc at us.ibm.com
Mon May 4 13:27:50 PDT 2009
Add the checkpoint operation to nilfs2 files and directories.
Signed-off-by: Matt Helsley <matthltc at us.ibm.com>
Cc: KONISHI Ryusuke <konishi.ryusuke at lab.ntt.co.jp>
Cc: users at nilfs.org
Cc: linux-fsdevel at vger.kernel.org
---
fs/nilfs2/dir.c | 2 +-
fs/nilfs2/file.c | 1 +
2 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/fs/nilfs2/dir.c b/fs/nilfs2/dir.c
index 54100ac..38fd744 100644
--- a/fs/nilfs2/dir.c
+++ b/fs/nilfs2/dir.c
@@ -707,5 +707,5 @@ struct file_operations nilfs_dir_operations = {
.compat_ioctl = nilfs_ioctl,
#endif /* CONFIG_COMPAT */
.fsync = nilfs_sync_file,
-
+ .checkpoint = generic_file_checkpoint,
};
diff --git a/fs/nilfs2/file.c b/fs/nilfs2/file.c
index 6bd84a0..0f27ab5 100644
--- a/fs/nilfs2/file.c
+++ b/fs/nilfs2/file.c
@@ -136,6 +136,7 @@ static int nilfs_file_mmap(struct file *file, struct vm_area_struct *vma)
*/
struct file_operations nilfs_file_operations = {
.llseek = generic_file_llseek,
+ .checkpoint = generic_file_checkpoint,
.read = do_sync_read,
.write = do_sync_write,
.aio_read = generic_file_aio_read,
--
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