[Devel] [PATCH 24/36] Add the checkpoint operation for ubifs files and directories.

Matt Helsley matthltc at us.ibm.com
Mon Jul 13 06:58:38 PDT 2009


I think the debug files will also work with the generic file
checkpoint helper but it needs a bit more investigation to be
certain.

Signed-off-by: Matt Helsley <matthltc at us.ibm.com>
Cc: Artem Bityutskiy <dedekind at infradead.org>
Cc: Adrian Hunter <ext-adrian.hunter at nokia.com>
Cc: linux-mtd at lists.infradead.org
Cc: linux-fsdevel at vger.kernel.org
---
 fs/ubifs/debug.c |    1 +
 fs/ubifs/dir.c   |    1 +
 fs/ubifs/file.c  |    1 +
 3 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/fs/ubifs/debug.c b/fs/ubifs/debug.c
index ce2cd83..69a8892 100644
--- a/fs/ubifs/debug.c
+++ b/fs/ubifs/debug.c
@@ -2530,6 +2530,7 @@ static ssize_t write_debugfs_file(struct file *file, const char __user *buf,
 static const struct file_operations dfs_fops = {
 	.open = open_debugfs_file,
 	.write = write_debugfs_file,
+	.checkpoint = generic_file_checkpoint,
 	.owner = THIS_MODULE,
 };
 
diff --git a/fs/ubifs/dir.c b/fs/ubifs/dir.c
index 552fb01..89ab2aa 100644
--- a/fs/ubifs/dir.c
+++ b/fs/ubifs/dir.c
@@ -1228,4 +1228,5 @@ const struct file_operations ubifs_dir_operations = {
 #ifdef CONFIG_COMPAT
 	.compat_ioctl   = ubifs_compat_ioctl,
 #endif
+	.checkpoint     = generic_file_checkpoint,
 };
diff --git a/fs/ubifs/file.c b/fs/ubifs/file.c
index 6d34dc7..2d94676 100644
--- a/fs/ubifs/file.c
+++ b/fs/ubifs/file.c
@@ -1595,4 +1595,5 @@ const struct file_operations ubifs_file_operations = {
 #ifdef CONFIG_COMPAT
 	.compat_ioctl   = ubifs_compat_ioctl,
 #endif
+	.checkpoint     = generic_file_checkpoint,
 };
-- 
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