diff options
author | Amir Goldstein <amir73il@gmail.com> | 2018-05-16 10:51:25 -0400 |
---|---|---|
committer | Miklos Szeredi <mszeredi@redhat.com> | 2018-05-31 05:06:11 -0400 |
commit | 137ec526a20c4e4d21d658a6581b471d39860911 (patch) | |
tree | d5f40d9bd01269482d6e2cddd50ac384673f040d /fs/overlayfs/overlayfs.h | |
parent | 95a1c8153ad8bc99e7c4b90257f20b4f0474a9a0 (diff) |
ovl: create helper ovl_create_temp()
Also used ovl_create_temp() in ovl_create_index() instead of calling
ovl_do_mkdir() directly, so now all callers of ovl_do_mkdir() are routed
through ovl_create_real(), which paves the way for Al's fix for non-hashed
result from vfs_mkdir().
Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Diffstat (limited to 'fs/overlayfs/overlayfs.h')
-rw-r--r-- | fs/overlayfs/overlayfs.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/overlayfs/overlayfs.h b/fs/overlayfs/overlayfs.h index 6bbde513e068..3f13d0965e03 100644 --- a/fs/overlayfs/overlayfs.h +++ b/fs/overlayfs/overlayfs.h | |||
@@ -346,7 +346,6 @@ static inline void ovl_copyattr(struct inode *from, struct inode *to) | |||
346 | 346 | ||
347 | /* dir.c */ | 347 | /* dir.c */ |
348 | extern const struct inode_operations ovl_dir_inode_operations; | 348 | extern const struct inode_operations ovl_dir_inode_operations; |
349 | struct dentry *ovl_lookup_temp(struct dentry *workdir); | ||
350 | int ovl_cleanup_and_whiteout(struct dentry *workdir, struct inode *dir, | 349 | int ovl_cleanup_and_whiteout(struct dentry *workdir, struct inode *dir, |
351 | struct dentry *dentry); | 350 | struct dentry *dentry); |
352 | struct ovl_cattr { | 351 | struct ovl_cattr { |
@@ -361,6 +360,7 @@ struct ovl_cattr { | |||
361 | struct dentry *ovl_create_real(struct inode *dir, struct dentry *newdentry, | 360 | struct dentry *ovl_create_real(struct inode *dir, struct dentry *newdentry, |
362 | struct ovl_cattr *attr); | 361 | struct ovl_cattr *attr); |
363 | int ovl_cleanup(struct inode *dir, struct dentry *dentry); | 362 | int ovl_cleanup(struct inode *dir, struct dentry *dentry); |
363 | struct dentry *ovl_create_temp(struct dentry *workdir, struct ovl_cattr *attr); | ||
364 | 364 | ||
365 | /* copy_up.c */ | 365 | /* copy_up.c */ |
366 | int ovl_copy_up(struct dentry *dentry); | 366 | int ovl_copy_up(struct dentry *dentry); |