Lines Matching refs:upper
487 struct dentry *upper; in ovl_index_upper() local
496 upper = ovl_decode_real_fh(ofs, fh, ovl_upper_mnt(ofs), true); in ovl_index_upper()
499 if (IS_ERR_OR_NULL(upper)) in ovl_index_upper()
500 return upper ?: ERR_PTR(-ESTALE); in ovl_index_upper()
502 if (!d_is_dir(upper)) { in ovl_index_upper()
504 index, upper); in ovl_index_upper()
505 dput(upper); in ovl_index_upper()
509 return upper; in ovl_index_upper()
523 struct dentry *upper = NULL; in ovl_verify_index() local
569 upper = ovl_index_upper(ofs, index); in ovl_verify_index()
570 if (IS_ERR_OR_NULL(upper)) { in ovl_verify_index()
571 err = PTR_ERR(upper); in ovl_verify_index()
585 err = ovl_verify_fh(ofs, upper, OVL_XATTR_ORIGIN, fh); in ovl_verify_index()
586 dput(upper); in ovl_verify_index()
694 struct dentry *ovl_lookup_index(struct ovl_fs *ofs, struct dentry *upper, in ovl_lookup_index() argument
746 if (!upper) { in ovl_lookup_index()
753 err = ovl_verify_upper(ofs, index, upper, false); in ovl_lookup_index()
757 upper, origin, index); in ovl_lookup_index()
761 } else if (upper && d_inode(upper) != inode) { in ovl_lookup_index()
803 struct dentry *lower, struct dentry *upper) in ovl_fix_origin() argument
807 if (ovl_check_origin_xattr(ofs, upper)) in ovl_fix_origin()
814 err = ovl_set_origin(ofs, lower, upper); in ovl_fix_origin()
816 err = ovl_set_impure(dentry->d_parent, upper->d_parent); in ovl_fix_origin()