Home
last modified time | relevance | path

Searched refs:upperdentry (Results 1 – 9 of 9) sorted by relevance

/linux-6.12.1/fs/overlayfs/
Dinode.c27 struct dentry *upperdentry; in ovl_setattr() local
46 upperdentry = ovl_dentry_upper(dentry); in ovl_setattr()
49 winode = d_inode(upperdentry); in ovl_setattr()
80 inode_lock(upperdentry->d_inode); in ovl_setattr()
82 err = ovl_do_notify_change(ofs, upperdentry, attr); in ovl_setattr()
86 inode_unlock(upperdentry->d_inode); in ovl_setattr()
486 struct dentry *upperdentry = ovl_dentry_upper(dentry); in ovl_set_or_remove_acl() local
487 struct dentry *realdentry = upperdentry ?: ovl_dentry_lower(dentry); in ovl_set_or_remove_acl()
494 if (!acl && !upperdentry) { in ovl_set_or_remove_acl()
509 if (!upperdentry) { in ovl_set_or_remove_acl()
[all …]
Dnamei.c116 static struct ovl_fh *ovl_get_fh(struct ovl_fs *ofs, struct dentry *upperdentry, in ovl_get_fh() argument
122 res = ovl_getxattr_upper(ofs, upperdentry, ox, NULL, 0); in ovl_get_fh()
136 res = ovl_getxattr_upper(ofs, upperdentry, ox, fh->buf, res); in ovl_get_fh()
422 struct dentry *upperdentry, struct ovl_path **stackp) in ovl_check_origin_fh() argument
447 if (upperdentry && !ovl_upper_is_whiteout(ofs, upperdentry) && in ovl_check_origin_fh()
448 inode_wrong_type(d_inode(upperdentry), d_inode(origin)->i_mode)) in ovl_check_origin_fh()
466 upperdentry, d_inode(upperdentry)->i_mode & S_IFMT, in ovl_check_origin_fh()
472 static int ovl_check_origin(struct ovl_fs *ofs, struct dentry *upperdentry, in ovl_check_origin() argument
475 struct ovl_fh *fh = ovl_get_fh(ofs, upperdentry, OVL_XATTR_ORIGIN); in ovl_check_origin()
481 err = ovl_check_origin_fh(ofs, fh, false, upperdentry, stackp); in ovl_check_origin()
[all …]
Doverlayfs.h200 struct dentry *upperdentry, in ovl_do_notify_change() argument
203 return notify_change(ovl_upper_mnt_idmap(ofs), upperdentry, attr, NULL); in ovl_do_notify_change()
290 struct dentry *upperdentry, in ovl_getxattr_upper() argument
295 .dentry = upperdentry, in ovl_getxattr_upper()
450 void ovl_dentry_init_reval(struct dentry *dentry, struct dentry *upperdentry,
452 void ovl_dentry_init_flags(struct dentry *dentry, struct dentry *upperdentry,
496 void ovl_inode_update(struct inode *inode, struct dentry *upperdentry);
513 struct dentry *upperdentry) in ovl_upper_is_whiteout() argument
516 .dentry = upperdentry, in ovl_upper_is_whiteout()
523 struct dentry *upperdentry) in ovl_check_origin_xattr() argument
[all …]
Dutil.c175 void ovl_dentry_init_reval(struct dentry *dentry, struct dentry *upperdentry, in ovl_dentry_init_reval() argument
178 return ovl_dentry_init_flags(dentry, upperdentry, oe, OVL_D_REVALIDATE); in ovl_dentry_init_reval()
181 void ovl_dentry_init_flags(struct dentry *dentry, struct dentry *upperdentry, in ovl_dentry_init_flags() argument
187 if (upperdentry) in ovl_dentry_init_flags()
188 flags |= upperdentry->d_flags; in ovl_dentry_init_flags()
378 struct dentry *upperdentry = ovl_i_dentry_upper(inode); in ovl_inode_upper() local
380 return upperdentry ? d_inode(upperdentry) : NULL; in ovl_inode_upper()
576 void ovl_inode_update(struct inode *inode, struct dentry *upperdentry) in ovl_inode_update() argument
578 struct inode *upperinode = d_inode(upperdentry); in ovl_inode_update()
586 OVL_I(inode)->__upperdentry = upperdentry; in ovl_inode_update()
[all …]
Dxattrs.c41 struct dentry *upperdentry = ovl_i_dentry_upper(inode); in ovl_xattr_set() local
42 struct dentry *realdentry = upperdentry ?: ovl_dentry_lower(dentry); in ovl_xattr_set()
46 if (!value && !upperdentry) { in ovl_xattr_set()
55 if (!upperdentry) { in ovl_xattr_set()
Dsuper.c1234 struct dentry *upperdentry, in ovl_get_root() argument
1243 .upperdentry = upperdentry, in ovl_get_root()
1251 if (upperdentry) { in ovl_get_root()
1253 ino = d_inode(upperdentry)->i_ino; in ovl_get_root()
1256 if (ovl_is_impuredir(sb, upperdentry)) in ovl_get_root()
1279 ovl_dentry_init_flags(root, upperdentry, oe, DCACHE_OP_WEAK_REVALIDATE); in ovl_get_root()
1281 dget(upperdentry); in ovl_get_root()
Dcopy_up.c370 struct dentry *upperdentry, struct kstat *stat) in ovl_set_size() argument
377 return ovl_do_notify_change(ofs, upperdentry, &attr); in ovl_set_size()
380 static int ovl_set_timestamps(struct ovl_fs *ofs, struct dentry *upperdentry, in ovl_set_timestamps() argument
390 return ovl_do_notify_change(ofs, upperdentry, &attr); in ovl_set_timestamps()
393 int ovl_set_attr(struct ovl_fs *ofs, struct dentry *upperdentry, in ovl_set_attr() argument
403 err = ovl_do_notify_change(ofs, upperdentry, &attr); in ovl_set_attr()
411 err = ovl_do_notify_change(ofs, upperdentry, &attr); in ovl_set_attr()
414 ovl_set_timestamps(ofs, upperdentry, stat); in ovl_set_attr()
Ddir.c248 static int ovl_set_opaque(struct dentry *dentry, struct dentry *upperdentry) in ovl_set_opaque() argument
255 return ovl_set_opaque_xerr(dentry, upperdentry, -EIO); in ovl_set_opaque()
267 .upperdentry = newdentry, in ovl_instantiate()
437 static int ovl_set_upper_acl(struct ovl_fs *ofs, struct dentry *upperdentry, in ovl_set_upper_acl() argument
443 return ovl_do_set_acl(ofs, upperdentry, acl_name, acl); in ovl_set_upper_acl()
Dexport.c310 oip.upperdentry = dget(upper); in ovl_obtain_alias()