diff options
author | youngjun <her0gyugyu@gmail.com> | 2020-06-21 05:50:01 -0700 |
---|---|---|
committer | Miklos Szeredi <mszeredi@redhat.com> | 2020-07-16 00:06:16 +0200 |
commit | d78a0dcf64cb94ffdd5253722caed3f044a92a78 (patch) | |
tree | 5ef07ca45e3a6fb6a95756ea1ecf912ef95d2f53 /fs/overlayfs | |
parent | 5ac8e8025aedd2ea832ae3fe3ca0f920697f45c7 (diff) | |
download | linux-d78a0dcf64cb94ffdd5253722caed3f044a92a78.tar.gz linux-d78a0dcf64cb94ffdd5253722caed3f044a92a78.tar.bz2 linux-d78a0dcf64cb94ffdd5253722caed3f044a92a78.zip |
ovl: remove not used argument in ovl_check_origin
ovl_check_origin outparam 'ctrp' argument not used by caller. So remove
this argument.
Signed-off-by: youngjun <her0gyugyu@gmail.com>
Reviewed-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Diffstat (limited to 'fs/overlayfs')
-rw-r--r-- | fs/overlayfs/namei.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/fs/overlayfs/namei.c b/fs/overlayfs/namei.c index 3566282a9199..3cad68c3efb2 100644 --- a/fs/overlayfs/namei.c +++ b/fs/overlayfs/namei.c @@ -389,7 +389,7 @@ invalid: } static int ovl_check_origin(struct ovl_fs *ofs, struct dentry *upperdentry, - struct ovl_path **stackp, unsigned int *ctrp) + struct ovl_path **stackp) { struct ovl_fh *fh = ovl_get_fh(upperdentry, OVL_XATTR_ORIGIN); int err; @@ -406,10 +406,6 @@ static int ovl_check_origin(struct ovl_fs *ofs, struct dentry *upperdentry, return err; } - if (WARN_ON(*ctrp)) - return -EIO; - - *ctrp = 1; return 0; } @@ -861,8 +857,6 @@ struct dentry *ovl_lookup(struct inode *dir, struct dentry *dentry, goto out; } if (upperdentry && !d.is_dir) { - unsigned int origin_ctr = 0; - /* * Lookup copy up origin by decoding origin file handle. * We may get a disconnected dentry, which is fine, @@ -873,8 +867,7 @@ struct dentry *ovl_lookup(struct inode *dir, struct dentry *dentry, * number - it's the same as if we held a reference * to a dentry in lower layer that was moved under us. */ - err = ovl_check_origin(ofs, upperdentry, &origin_path, - &origin_ctr); + err = ovl_check_origin(ofs, upperdentry, &origin_path); if (err) goto out_put_upper; |