Quoting Oren Laadan (orenl@xxxxxxxxxxxxxxx): > From: Dave Hansen <dave@xxxxxxxxxxxxxxxxxx> > > This marks ext[234] as being checkpointable. There will be many > more to do this to, but this is a start. > > Signed-off-by: Dave Hansen <dave@xxxxxxxxxxxxxxxxxx> > --- > fs/ext2/dir.c | 1 + > fs/ext2/file.c | 2 ++ > fs/ext3/dir.c | 1 + > fs/ext3/file.c | 1 + > fs/ext4/dir.c | 1 + > fs/ext4/file.c | 1 + > 6 files changed, 7 insertions(+), 0 deletions(-) > > diff --git a/fs/ext2/dir.c b/fs/ext2/dir.c > index 2999d72..4f1dd79 100644 > --- a/fs/ext2/dir.c > +++ b/fs/ext2/dir.c > @@ -721,4 +721,5 @@ const struct file_operations ext2_dir_operations = { > .compat_ioctl = ext2_compat_ioctl, > #endif > .fsync = ext2_sync_file, > + .checkpoint = generic_file_checkpoint, The checkpoint() method is only defined in struct file_operations if CONFIG_CHECKPOINT=y. So this can't possibly compile when CONFIG_CHECKPOINT=n... > }; > diff --git a/fs/ext2/file.c b/fs/ext2/file.c > index 45ed071..e1731c5 100644 > --- a/fs/ext2/file.c > +++ b/fs/ext2/file.c > @@ -58,6 +58,7 @@ const struct file_operations ext2_file_operations = { > .fsync = ext2_sync_file, > .splice_read = generic_file_splice_read, > .splice_write = generic_file_splice_write, > + .checkpoint = generic_file_checkpoint, > }; > > #ifdef CONFIG_EXT2_FS_XIP > @@ -73,6 +74,7 @@ const struct file_operations ext2_xip_file_operations = { > .open = generic_file_open, > .release = ext2_release_file, > .fsync = ext2_sync_file, > + .checkpoint = generic_file_checkpoint, > }; > #endif > > diff --git a/fs/ext3/dir.c b/fs/ext3/dir.c > index 5853f44..aa579e1 100644 > --- a/fs/ext3/dir.c > +++ b/fs/ext3/dir.c > @@ -48,6 +48,7 @@ const struct file_operations ext3_dir_operations = { > #endif > .fsync = ext3_sync_file, /* BKL held */ > .release = ext3_release_dir, > + .checkpoint = generic_file_checkpoint, > }; > > > diff --git a/fs/ext3/file.c b/fs/ext3/file.c > index 3be1e06..45f73fa 100644 > --- a/fs/ext3/file.c > +++ b/fs/ext3/file.c > @@ -122,6 +122,7 @@ const struct file_operations ext3_file_operations = { > .fsync = ext3_sync_file, > .splice_read = generic_file_splice_read, > .splice_write = generic_file_splice_write, > + .checkpoint = generic_file_checkpoint, > }; > > const struct inode_operations ext3_file_inode_operations = { > diff --git a/fs/ext4/dir.c b/fs/ext4/dir.c > index 2df2e40..9baf728 100644 > --- a/fs/ext4/dir.c > +++ b/fs/ext4/dir.c > @@ -48,6 +48,7 @@ const struct file_operations ext4_dir_operations = { > #endif > .fsync = ext4_sync_file, > .release = ext4_release_dir, > + .checkpoint = generic_file_checkpoint, > }; > > > diff --git a/fs/ext4/file.c b/fs/ext4/file.c > index f731cb5..bd84dce 100644 > --- a/fs/ext4/file.c > +++ b/fs/ext4/file.c > @@ -156,6 +156,7 @@ const struct file_operations ext4_file_operations = { > .fsync = ext4_sync_file, > .splice_read = generic_file_splice_read, > .splice_write = generic_file_splice_write, > + .checkpoint = generic_file_checkpoint, > }; > > const struct inode_operations ext4_file_inode_operations = { > -- > 1.5.4.3 _______________________________________________ Containers mailing list Containers@xxxxxxxxxxxxxxxxxxxxxxxxxx https://lists.linux-foundation.org/mailman/listinfo/containers