summaryrefslogtreecommitdiffstats
path: root/fs/overlayfs/overlayfs.h
diff options
context:
space:
mode:
authorAmir Goldstein <amir73il@gmail.com>2017-12-12 15:40:46 -0500
committerMiklos Szeredi <mszeredi@redhat.com>2018-01-24 04:19:46 -0500
commit1eff1a1deec727bacead79ec64554c1df190f43c (patch)
treeeaae28170f3fb13a4c3463fd3e9c0a923ec83003 /fs/overlayfs/overlayfs.h
parent2e1a532883cf77f01031bef4b83d864a46c1bed0 (diff)
ovl: simplify arguments to ovl_check_origin_fh()
Pass the fs instance with lower_layers array instead of the dentry lowerstack array to ovl_check_origin_fh(), because the dentry members of lowerstack play no role in this helper. This change simplifies the argument list of ovl_check_origin(), ovl_cleanup_index() and ovl_verify_index(). 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.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/fs/overlayfs/overlayfs.h b/fs/overlayfs/overlayfs.h
index d1cfa69c98b5..d55afb6646b0 100644
--- a/fs/overlayfs/overlayfs.h
+++ b/fs/overlayfs/overlayfs.h
@@ -251,11 +251,11 @@ static inline bool ovl_is_impuredir(struct dentry *dentry)
251/* namei.c */ 251/* namei.c */
252int ovl_verify_origin(struct dentry *dentry, struct dentry *origin, 252int ovl_verify_origin(struct dentry *dentry, struct dentry *origin,
253 bool is_upper, bool set); 253 bool is_upper, bool set);
254int ovl_verify_index(struct dentry *index, struct ovl_path *lower, 254int ovl_verify_index(struct ovl_fs *ofs, struct dentry *index);
255 unsigned int numlower);
256int ovl_get_index_name(struct dentry *origin, struct qstr *name); 255int ovl_get_index_name(struct dentry *origin, struct qstr *name);
257int ovl_path_next(int idx, struct dentry *dentry, struct path *path); 256int ovl_path_next(int idx, struct dentry *dentry, struct path *path);
258struct dentry *ovl_lookup(struct inode *dir, struct dentry *dentry, unsigned int flags); 257struct dentry *ovl_lookup(struct inode *dir, struct dentry *dentry,
258 unsigned int flags);
259bool ovl_lower_positive(struct dentry *dentry); 259bool ovl_lower_positive(struct dentry *dentry);
260 260
261/* readdir.c */ 261/* readdir.c */
@@ -267,8 +267,7 @@ void ovl_dir_cache_free(struct inode *inode);
267int ovl_check_d_type_supported(struct path *realpath); 267int ovl_check_d_type_supported(struct path *realpath);
268void ovl_workdir_cleanup(struct inode *dir, struct vfsmount *mnt, 268void ovl_workdir_cleanup(struct inode *dir, struct vfsmount *mnt,
269 struct dentry *dentry, int level); 269 struct dentry *dentry, int level);
270int ovl_indexdir_cleanup(struct dentry *dentry, struct vfsmount *mnt, 270int ovl_indexdir_cleanup(struct ovl_fs *ofs);
271 struct ovl_path *lower, unsigned int numlower);
272 271
273/* inode.c */ 272/* inode.c */
274int ovl_set_nlink_upper(struct dentry *dentry); 273int ovl_set_nlink_upper(struct dentry *dentry);