Add the checkpoint operation for ubifs files and directories. 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@xxxxxxxxxx> Cc: Artem Bityutskiy <dedekind@xxxxxxxxxxxxx> Cc: Adrian Hunter <ext-adrian.hunter@xxxxxxxxx> Cc: linux-mtd@xxxxxxxxxxxxxxxxxxx Cc: linux-fsdevel@xxxxxxxxxxxxxxx --- 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 f55d523..ab44811 100644 --- a/fs/ubifs/dir.c +++ b/fs/ubifs/dir.c @@ -1209,4 +1209,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@xxxxxxxxxxxxxxxxxxxxxxxxxx https://lists.linux-foundation.org/mailman/listinfo/containers