diff options
-rw-r--r-- | fs/overlayfs/copy_up.c | 5 | ||||
-rw-r--r-- | fs/overlayfs/overlayfs.h | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/fs/overlayfs/copy_up.c b/fs/overlayfs/copy_up.c index d9a8d9291358..d8331f817b95 100644 --- a/fs/overlayfs/copy_up.c +++ b/fs/overlayfs/copy_up.c | |||
@@ -867,6 +867,11 @@ int ovl_open_maybe_copy_up(struct dentry *dentry, unsigned int file_flags) | |||
867 | return err; | 867 | return err; |
868 | } | 868 | } |
869 | 869 | ||
870 | int ovl_copy_up_with_data(struct dentry *dentry) | ||
871 | { | ||
872 | return ovl_copy_up_flags(dentry, O_WRONLY); | ||
873 | } | ||
874 | |||
870 | int ovl_copy_up(struct dentry *dentry) | 875 | int ovl_copy_up(struct dentry *dentry) |
871 | { | 876 | { |
872 | return ovl_copy_up_flags(dentry, 0); | 877 | return ovl_copy_up_flags(dentry, 0); |
diff --git a/fs/overlayfs/overlayfs.h b/fs/overlayfs/overlayfs.h index c85aa438cc8f..f61839e1054c 100644 --- a/fs/overlayfs/overlayfs.h +++ b/fs/overlayfs/overlayfs.h | |||
@@ -407,6 +407,7 @@ extern const struct file_operations ovl_file_operations; | |||
407 | 407 | ||
408 | /* copy_up.c */ | 408 | /* copy_up.c */ |
409 | int ovl_copy_up(struct dentry *dentry); | 409 | int ovl_copy_up(struct dentry *dentry); |
410 | int ovl_copy_up_with_data(struct dentry *dentry); | ||
410 | int ovl_copy_up_flags(struct dentry *dentry, int flags); | 411 | int ovl_copy_up_flags(struct dentry *dentry, int flags); |
411 | int ovl_open_maybe_copy_up(struct dentry *dentry, unsigned int file_flags); | 412 | int ovl_open_maybe_copy_up(struct dentry *dentry, unsigned int file_flags); |
412 | int ovl_copy_xattr(struct dentry *old, struct dentry *new); | 413 | int ovl_copy_xattr(struct dentry *old, struct dentry *new); |