/Linux-v6.6/fs/overlayfs/ |
D | inode.c | 28 struct dentry *upperdentry; in ovl_setattr() local 51 upperdentry = ovl_dentry_upper(dentry); in ovl_setattr() 54 winode = d_inode(upperdentry); in ovl_setattr() 81 inode_lock(upperdentry->d_inode); in ovl_setattr() 83 err = ovl_do_notify_change(ofs, upperdentry, attr); in ovl_setattr() 87 inode_unlock(upperdentry->d_inode); in ovl_setattr() 359 struct dentry *upperdentry = ovl_i_dentry_upper(inode); in ovl_xattr_set() local 360 struct dentry *realdentry = upperdentry ?: ovl_dentry_lower(dentry); in ovl_xattr_set() 368 if (!value && !upperdentry) { in ovl_xattr_set() 377 if (!upperdentry) { in ovl_xattr_set() [all …]
|
D | namei.c | 115 static struct ovl_fh *ovl_get_fh(struct ovl_fs *ofs, struct dentry *upperdentry, in ovl_get_fh() argument 121 res = ovl_getxattr_upper(ofs, upperdentry, ox, NULL, 0); in ovl_get_fh() 135 res = ovl_getxattr_upper(ofs, upperdentry, ox, fh->buf, res); in ovl_get_fh() 416 struct dentry *upperdentry, struct ovl_path **stackp) in ovl_check_origin_fh() argument 441 if (upperdentry && !ovl_is_whiteout(upperdentry) && in ovl_check_origin_fh() 442 inode_wrong_type(d_inode(upperdentry), d_inode(origin)->i_mode)) in ovl_check_origin_fh() 460 upperdentry, d_inode(upperdentry)->i_mode & S_IFMT, in ovl_check_origin_fh() 466 static int ovl_check_origin(struct ovl_fs *ofs, struct dentry *upperdentry, in ovl_check_origin() argument 469 struct ovl_fh *fh = ovl_get_fh(ofs, upperdentry, OVL_XATTR_ORIGIN); in ovl_check_origin() 475 err = ovl_check_origin_fh(ofs, fh, false, upperdentry, stackp); in ovl_check_origin() [all …]
|
D | overlayfs.h | 185 struct dentry *upperdentry, in ovl_do_notify_change() argument 188 return notify_change(ovl_upper_mnt_idmap(ofs), upperdentry, attr, NULL); in ovl_do_notify_change() 275 struct dentry *upperdentry, in ovl_getxattr_upper() argument 280 .dentry = upperdentry, in ovl_getxattr_upper() 417 void ovl_dentry_init_reval(struct dentry *dentry, struct dentry *upperdentry, 419 void ovl_dentry_init_flags(struct dentry *dentry, struct dentry *upperdentry, 459 void ovl_inode_update(struct inode *inode, struct dentry *upperdentry); 474 struct dentry *upperdentry) in ovl_check_origin_xattr() argument 477 .dentry = upperdentry, in ovl_check_origin_xattr() 483 int ovl_check_setxattr(struct ovl_fs *ofs, struct dentry *upperdentry, [all …]
|
D | util.c | 149 void ovl_dentry_init_reval(struct dentry *dentry, struct dentry *upperdentry, in ovl_dentry_init_reval() argument 152 return ovl_dentry_init_flags(dentry, upperdentry, oe, OVL_D_REVALIDATE); in ovl_dentry_init_reval() 155 void ovl_dentry_init_flags(struct dentry *dentry, struct dentry *upperdentry, in ovl_dentry_init_flags() argument 161 if (upperdentry) in ovl_dentry_init_flags() 162 flags |= upperdentry->d_flags; in ovl_dentry_init_flags() 352 struct dentry *upperdentry = ovl_i_dentry_upper(inode); in ovl_inode_upper() local 354 return upperdentry ? d_inode(upperdentry) : NULL; in ovl_inode_upper() 523 void ovl_inode_update(struct inode *inode, struct dentry *upperdentry) in ovl_inode_update() argument 525 struct inode *upperinode = d_inode(upperdentry); in ovl_inode_update() 533 OVL_I(inode)->__upperdentry = upperdentry; in ovl_inode_update() [all …]
|
D | copy_up.c | 325 struct dentry *upperdentry, struct kstat *stat) in ovl_set_size() argument 332 return ovl_do_notify_change(ofs, upperdentry, &attr); in ovl_set_size() 335 static int ovl_set_timestamps(struct ovl_fs *ofs, struct dentry *upperdentry, in ovl_set_timestamps() argument 345 return ovl_do_notify_change(ofs, upperdentry, &attr); in ovl_set_timestamps() 348 int ovl_set_attr(struct ovl_fs *ofs, struct dentry *upperdentry, in ovl_set_attr() argument 358 err = ovl_do_notify_change(ofs, upperdentry, &attr); in ovl_set_attr() 366 err = ovl_do_notify_change(ofs, upperdentry, &attr); in ovl_set_attr() 369 ovl_set_timestamps(ofs, upperdentry, stat); in ovl_set_attr()
|
D | super.c | 1295 struct dentry *upperdentry, in ovl_get_root() argument 1303 .upperdentry = upperdentry, in ovl_get_root() 1311 if (upperdentry) { in ovl_get_root() 1313 ino = d_inode(upperdentry)->i_ino; in ovl_get_root() 1316 if (ovl_is_impuredir(sb, upperdentry)) in ovl_get_root() 1325 ovl_dentry_init_flags(root, upperdentry, oe, DCACHE_OP_WEAK_REVALIDATE); in ovl_get_root() 1327 dget(upperdentry); in ovl_get_root()
|
D | dir.c | 247 static int ovl_set_opaque(struct dentry *dentry, struct dentry *upperdentry) in ovl_set_opaque() argument 254 return ovl_set_opaque_xerr(dentry, upperdentry, -EIO); in ovl_set_opaque() 266 .upperdentry = newdentry, in ovl_instantiate() 436 static int ovl_set_upper_acl(struct ovl_fs *ofs, struct dentry *upperdentry, in ovl_set_upper_acl() argument 442 return ovl_do_set_acl(ofs, upperdentry, acl_name, acl); in ovl_set_upper_acl()
|
D | export.c | 312 oip.upperdentry = dget(upper); in ovl_obtain_alias()
|