Lines Matching refs:upper
574 struct dentry *upper; in ovl_index_upper() local
583 upper = ovl_decode_real_fh(ofs, fh, ovl_upper_mnt(ofs), connected); in ovl_index_upper()
586 if (IS_ERR_OR_NULL(upper)) in ovl_index_upper()
587 return upper ?: ERR_PTR(-ESTALE); in ovl_index_upper()
589 if (!d_is_dir(upper)) { in ovl_index_upper()
591 index, upper); in ovl_index_upper()
592 dput(upper); in ovl_index_upper()
596 return upper; in ovl_index_upper()
610 struct dentry *upper = NULL; in ovl_verify_index() local
656 upper = ovl_index_upper(ofs, index, false); in ovl_verify_index()
657 if (IS_ERR_OR_NULL(upper)) { in ovl_verify_index()
658 err = PTR_ERR(upper); in ovl_verify_index()
672 err = ovl_verify_fh(ofs, upper, OVL_XATTR_ORIGIN, fh); in ovl_verify_index()
673 dput(upper); in ovl_verify_index()
781 struct dentry *ovl_lookup_index(struct ovl_fs *ofs, struct dentry *upper, in ovl_lookup_index() argument
834 if (!upper) { in ovl_lookup_index()
841 err = ovl_verify_upper(ofs, index, upper, false); in ovl_lookup_index()
845 upper, origin, index); in ovl_lookup_index()
849 } else if (upper && d_inode(upper) != inode) { in ovl_lookup_index()
896 struct dentry *lower, struct dentry *upper) in ovl_fix_origin() argument
901 if (ovl_check_origin_xattr(ofs, upper)) in ovl_fix_origin()
912 err = ovl_set_origin_fh(ofs, fh, upper); in ovl_fix_origin()
914 err = ovl_set_impure(dentry->d_parent, upper->d_parent); in ovl_fix_origin()