Home
last modified time | relevance | path

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

/Linux-v6.1/fs/overlayfs/
Dinode.c26 struct dentry *upperdentry; in ovl_setattr() local
49 upperdentry = ovl_dentry_upper(dentry); in ovl_setattr()
52 winode = d_inode(upperdentry); in ovl_setattr()
79 inode_lock(upperdentry->d_inode); in ovl_setattr()
81 err = ovl_do_notify_change(ofs, upperdentry, attr); in ovl_setattr()
85 inode_unlock(upperdentry->d_inode); in ovl_setattr()
350 struct dentry *upperdentry = ovl_i_dentry_upper(inode); in ovl_xattr_set() local
351 struct dentry *realdentry = upperdentry ?: ovl_dentry_lower(dentry); in ovl_xattr_set()
359 if (!value && !upperdentry) { in ovl_xattr_set()
368 if (!upperdentry) { in ovl_xattr_set()
[all …]
Dnamei.c109 static struct ovl_fh *ovl_get_fh(struct ovl_fs *ofs, struct dentry *upperdentry, in ovl_get_fh() argument
115 res = ovl_getxattr_upper(ofs, upperdentry, ox, NULL, 0); in ovl_get_fh()
129 res = ovl_getxattr_upper(ofs, upperdentry, ox, fh->buf, res); in ovl_get_fh()
354 struct dentry *upperdentry, struct ovl_path **stackp) in ovl_check_origin_fh() argument
379 if (upperdentry && !ovl_is_whiteout(upperdentry) && in ovl_check_origin_fh()
380 inode_wrong_type(d_inode(upperdentry), d_inode(origin)->i_mode)) in ovl_check_origin_fh()
398 upperdentry, d_inode(upperdentry)->i_mode & S_IFMT, in ovl_check_origin_fh()
404 static int ovl_check_origin(struct ovl_fs *ofs, struct dentry *upperdentry, in ovl_check_origin() argument
407 struct ovl_fh *fh = ovl_get_fh(ofs, upperdentry, OVL_XATTR_ORIGIN); in ovl_check_origin()
413 err = ovl_check_origin_fh(ofs, fh, false, upperdentry, stackp); in ovl_check_origin()
[all …]
Dutil.c103 void ovl_dentry_update_reval(struct dentry *dentry, struct dentry *upperdentry, in ovl_dentry_update_reval() argument
109 if (upperdentry) in ovl_dentry_update_reval()
110 flags |= upperdentry->d_flags; in ovl_dentry_update_reval()
266 struct dentry *upperdentry = ovl_i_dentry_upper(inode); in ovl_inode_upper() local
268 return upperdentry ? d_inode(upperdentry) : NULL; in ovl_inode_upper()
436 void ovl_inode_update(struct inode *inode, struct dentry *upperdentry) in ovl_inode_update() argument
438 struct inode *upperinode = d_inode(upperdentry); in ovl_inode_update()
446 OVL_I(inode)->__upperdentry = upperdentry; in ovl_inode_update()
634 int ovl_check_setxattr(struct ovl_fs *ofs, struct dentry *upperdentry, in ovl_check_setxattr() argument
643 err = ovl_setxattr(ofs, upperdentry, ox, value, size); in ovl_check_setxattr()
[all …]
Doverlayfs.h139 struct dentry *upperdentry, in ovl_do_notify_change() argument
142 return notify_change(ovl_upper_mnt_userns(ofs), upperdentry, attr, NULL); in ovl_do_notify_change()
228 struct dentry *upperdentry, in ovl_getxattr_upper() argument
233 .dentry = upperdentry, in ovl_getxattr_upper()
363 void ovl_dentry_update_reval(struct dentry *dentry, struct dentry *upperdentry,
402 void ovl_inode_update(struct inode *inode, struct dentry *upperdentry);
415 struct dentry *upperdentry) in ovl_check_origin_xattr() argument
418 .dentry = upperdentry, in ovl_check_origin_xattr()
424 int ovl_check_setxattr(struct ovl_fs *ofs, struct dentry *upperdentry,
427 int ovl_set_impure(struct dentry *dentry, struct dentry *upperdentry);
[all …]
Dcopy_up.c288 struct dentry *upperdentry, struct kstat *stat) in ovl_set_size() argument
295 return ovl_do_notify_change(ofs, upperdentry, &attr); in ovl_set_size()
298 static int ovl_set_timestamps(struct ovl_fs *ofs, struct dentry *upperdentry, in ovl_set_timestamps() argument
308 return ovl_do_notify_change(ofs, upperdentry, &attr); in ovl_set_timestamps()
311 int ovl_set_attr(struct ovl_fs *ofs, struct dentry *upperdentry, in ovl_set_attr() argument
321 err = ovl_do_notify_change(ofs, upperdentry, &attr); in ovl_set_attr()
329 err = ovl_do_notify_change(ofs, upperdentry, &attr); in ovl_set_attr()
332 ovl_set_timestamps(ofs, upperdentry, stat); in ovl_set_attr()
Ddir.c247 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()
437 static int ovl_set_upper_acl(struct ovl_fs *ofs, struct dentry *upperdentry, in ovl_set_upper_acl() argument
456 err = ovl_do_setxattr(ofs, upperdentry, name, buffer, size, XATTR_CREATE); in ovl_set_upper_acl()
Dsuper.c1946 struct dentry *upperdentry, in ovl_get_root() argument
1954 .upperdentry = upperdentry, in ovl_get_root()
1964 if (upperdentry) { in ovl_get_root()
1966 ino = d_inode(upperdentry)->i_ino; in ovl_get_root()
1969 if (ovl_is_impuredir(sb, upperdentry)) in ovl_get_root()
1978 ovl_dentry_update_reval(root, upperdentry, DCACHE_OP_WEAK_REVALIDATE); in ovl_get_root()
Dexport.c300 oip.upperdentry = dget(upper); in ovl_obtain_alias()