| /Linux-v5.10/fs/overlayfs/ |
| D | inode.c | 21 struct dentry *upperdentry; in ovl_setattr() local 50 upperdentry = ovl_dentry_upper(dentry); in ovl_setattr() 53 winode = d_inode(upperdentry); in ovl_setattr() 80 inode_lock(upperdentry->d_inode); in ovl_setattr() 82 err = notify_change(upperdentry, attr, NULL); in ovl_setattr() 85 ovl_copyattr(upperdentry->d_inode, dentry->d_inode); in ovl_setattr() 86 inode_unlock(upperdentry->d_inode); in ovl_setattr() 340 struct dentry *upperdentry = ovl_i_dentry_upper(inode); in ovl_xattr_set() local 341 struct dentry *realdentry = upperdentry ?: ovl_dentry_lower(dentry); in ovl_xattr_set() 348 if (!value && !upperdentry) { in ovl_xattr_set() [all …]
|
| D | namei.c | 343 struct dentry *upperdentry, struct ovl_path **stackp) in ovl_check_origin_fh() argument 368 if (upperdentry && !ovl_is_whiteout(upperdentry) && in ovl_check_origin_fh() 369 ((d_inode(origin)->i_mode ^ d_inode(upperdentry)->i_mode) & S_IFMT)) in ovl_check_origin_fh() 387 upperdentry, d_inode(upperdentry)->i_mode & S_IFMT, in ovl_check_origin_fh() 393 static int ovl_check_origin(struct ovl_fs *ofs, struct dentry *upperdentry, in ovl_check_origin() argument 396 struct ovl_fh *fh = ovl_get_fh(ofs, upperdentry, OVL_XATTR_ORIGIN); in ovl_check_origin() 402 err = ovl_check_origin_fh(ofs, fh, false, upperdentry, stackp); in ovl_check_origin() 825 struct dentry *upperdir, *upperdentry = NULL; in ovl_lookup() local 853 err = ovl_lookup_layer(upperdir, &d, &upperdentry, true); in ovl_lookup() 857 if (upperdentry && upperdentry->d_flags & DCACHE_OP_REAL) { in ovl_lookup() [all …]
|
| D | util.c | 99 void ovl_dentry_update_reval(struct dentry *dentry, struct dentry *upperdentry, in ovl_dentry_update_reval() argument 105 if (upperdentry) in ovl_dentry_update_reval() 106 flags |= upperdentry->d_flags; in ovl_dentry_update_reval() 237 struct dentry *upperdentry = ovl_i_dentry_upper(inode); in ovl_inode_upper() local 239 return upperdentry ? d_inode(upperdentry) : NULL; in ovl_inode_upper() 405 void ovl_inode_update(struct inode *inode, struct dentry *upperdentry) in ovl_inode_update() argument 407 struct inode *upperinode = d_inode(upperdentry); in ovl_inode_update() 415 OVL_I(inode)->__upperdentry = upperdentry; in ovl_inode_update() 597 int ovl_check_setxattr(struct dentry *dentry, struct dentry *upperdentry, in ovl_check_setxattr() argument 607 err = ovl_do_setxattr(ofs, upperdentry, ox, value, size); in ovl_check_setxattr() [all …]
|
| D | overlayfs.h | 260 void ovl_dentry_update_reval(struct dentry *dentry, struct dentry *upperdentry, 296 void ovl_inode_update(struct inode *inode, struct dentry *upperdentry); 307 int ovl_check_setxattr(struct dentry *dentry, struct dentry *upperdentry, 310 int ovl_set_impure(struct dentry *dentry, struct dentry *upperdentry); 389 struct dentry *upperdentry, struct ovl_path **stackp); 433 struct dentry *upperdentry, 450 struct dentry *upperdentry; member
|
| D | copy_up.c | 231 static int ovl_set_size(struct dentry *upperdentry, struct kstat *stat) in ovl_set_size() argument 238 return notify_change(upperdentry, &attr, NULL); in ovl_set_size() 241 static int ovl_set_timestamps(struct dentry *upperdentry, struct kstat *stat) in ovl_set_timestamps() argument 250 return notify_change(upperdentry, &attr, NULL); in ovl_set_timestamps() 253 int ovl_set_attr(struct dentry *upperdentry, struct kstat *stat) in ovl_set_attr() argument 262 err = notify_change(upperdentry, &attr, NULL); in ovl_set_attr() 270 err = notify_change(upperdentry, &attr, NULL); in ovl_set_attr() 273 ovl_set_timestamps(upperdentry, stat); in ovl_set_attr()
|
| D | dir.c | 245 static int ovl_set_opaque(struct dentry *dentry, struct dentry *upperdentry) in ovl_set_opaque() argument 252 return ovl_set_opaque_xerr(dentry, upperdentry, -EIO); in ovl_set_opaque() 264 .upperdentry = newdentry, in ovl_instantiate() 433 static int ovl_set_upper_acl(struct dentry *upperdentry, const char *name, in ovl_set_upper_acl() argument 452 err = vfs_setxattr(upperdentry, name, buffer, size, XATTR_CREATE); in ovl_set_upper_acl() 878 struct dentry *upperdentry; in ovl_do_remove() local 921 upperdentry = ovl_dentry_upper(dentry); in ovl_do_remove() 922 if (upperdentry) in ovl_do_remove() 923 ovl_copyattr(d_inode(upperdentry), d_inode(dentry)); in ovl_do_remove()
|
| D | super.c | 1816 struct dentry *upperdentry, in ovl_get_root() argument 1824 .upperdentry = upperdentry, in ovl_get_root() 1834 if (upperdentry) { in ovl_get_root() 1836 ino = d_inode(upperdentry)->i_ino; in ovl_get_root() 1839 if (ovl_is_impuredir(sb, upperdentry)) in ovl_get_root() 1848 ovl_dentry_update_reval(root, upperdentry, DCACHE_OP_WEAK_REVALIDATE); in ovl_get_root()
|
| D | export.c | 298 oip.upperdentry = dget(upper); in ovl_obtain_alias()
|