/linux-4.19.296/fs/kernfs/ |
D | inode.c | 38 struct iattr *iattrs; in kernfs_iattrs() 42 if (kn->iattr) in kernfs_iattrs() 45 kn->iattr = kzalloc(sizeof(struct kernfs_iattrs), GFP_KERNEL); in kernfs_iattrs() 46 if (!kn->iattr) in kernfs_iattrs() 48 iattrs = &kn->iattr->ia_iattr; in kernfs_iattrs() 59 simple_xattrs_init(&kn->iattr->xattrs); in kernfs_iattrs() 61 ret = kn->iattr; in kernfs_iattrs() 66 int __kernfs_setattr(struct kernfs_node *kn, const struct iattr *iattr) in __kernfs_setattr() argument 69 struct iattr *iattrs; in __kernfs_setattr() 70 unsigned int ia_valid = iattr->ia_valid; in __kernfs_setattr() [all …]
|
D | kernfs-internal.h | 22 struct iattr ia_iattr; 89 int kernfs_iop_setattr(struct dentry *dentry, struct iattr *iattr); 93 int __kernfs_setattr(struct kernfs_node *kn, const struct iattr *iattr);
|
D | symlink.c | 35 if (target->iattr) { in kernfs_create_link() 36 uid = target->iattr->ia_iattr.ia_uid; in kernfs_create_link() 37 gid = target->iattr->ia_iattr.ia_gid; in kernfs_create_link()
|
/linux-4.19.296/fs/jfs/ |
D | file.c | 101 int jfs_setattr(struct dentry *dentry, struct iattr *iattr) in jfs_setattr() argument 106 rc = setattr_prepare(dentry, iattr); in jfs_setattr() 110 if (is_quota_modification(inode, iattr)) { in jfs_setattr() 115 if ((iattr->ia_valid & ATTR_UID && !uid_eq(iattr->ia_uid, inode->i_uid)) || in jfs_setattr() 116 (iattr->ia_valid & ATTR_GID && !gid_eq(iattr->ia_gid, inode->i_gid))) { in jfs_setattr() 117 rc = dquot_transfer(inode, iattr); in jfs_setattr() 122 if ((iattr->ia_valid & ATTR_SIZE) && in jfs_setattr() 123 iattr->ia_size != i_size_read(inode)) { in jfs_setattr() 126 rc = inode_newsize_ok(inode, iattr->ia_size); in jfs_setattr() 130 truncate_setsize(inode, iattr->ia_size); in jfs_setattr() [all …]
|
/linux-4.19.296/fs/configfs/ |
D | inode.c | 57 int configfs_setattr(struct dentry * dentry, struct iattr * iattr) in configfs_setattr() argument 61 struct iattr * sd_iattr; in configfs_setattr() 62 unsigned int ia_valid = iattr->ia_valid; in configfs_setattr() 71 sd_iattr = kzalloc(sizeof(struct iattr), GFP_KERNEL); in configfs_setattr() 84 error = simple_setattr(dentry, iattr); in configfs_setattr() 89 sd_iattr->ia_uid = iattr->ia_uid; in configfs_setattr() 91 sd_iattr->ia_gid = iattr->ia_gid; in configfs_setattr() 93 sd_iattr->ia_atime = timespec64_trunc(iattr->ia_atime, in configfs_setattr() 96 sd_iattr->ia_mtime = timespec64_trunc(iattr->ia_mtime, in configfs_setattr() 99 sd_iattr->ia_ctime = timespec64_trunc(iattr->ia_ctime, in configfs_setattr() [all …]
|
D | configfs_internal.h | 56 struct iattr * s_iattr; 96 extern int configfs_setattr(struct dentry *dentry, struct iattr *iattr);
|
/linux-4.19.296/fs/orangefs/ |
D | acl.c | 122 struct iattr iattr; in orangefs_set_acl() local 133 error = posix_acl_update_mode(inode, &iattr.ia_mode, &acl); in orangefs_set_acl() 144 iattr.ia_valid = ATTR_MODE; in orangefs_set_acl() 145 rc = orangefs_inode_setattr(inode, &iattr); in orangefs_set_acl() 159 struct iattr iattr; in orangefs_init_acl() local 180 memset(&iattr, 0, sizeof iattr); in orangefs_init_acl() 182 iattr.ia_mode = mode; in orangefs_init_acl() 183 iattr.ia_valid |= ATTR_MODE; in orangefs_init_acl() 184 orangefs_inode_setattr(inode, &iattr); in orangefs_init_acl()
|
D | namei.c | 27 struct iattr iattr; in orangefs_create() local 89 memset(&iattr, 0, sizeof iattr); in orangefs_create() 90 iattr.ia_valid |= ATTR_MTIME; in orangefs_create() 91 orangefs_inode_setattr(dir, &iattr); in orangefs_create() 180 struct iattr iattr; in orangefs_unlink() local 214 memset(&iattr, 0, sizeof iattr); in orangefs_unlink() 215 iattr.ia_valid |= ATTR_MTIME; in orangefs_unlink() 216 orangefs_inode_setattr(dir, &iattr); in orangefs_unlink() 230 struct iattr iattr; in orangefs_symlink() local 304 memset(&iattr, 0, sizeof iattr); in orangefs_symlink() [all …]
|
D | inode.c | 149 static int orangefs_setattr_size(struct inode *inode, struct iattr *iattr) in orangefs_setattr_size() argument 162 iattr->ia_size); in orangefs_setattr_size() 175 truncate_setsize(inode, iattr->ia_size); in orangefs_setattr_size() 182 new_op->upcall.req.truncate.size = (__s64) iattr->ia_size; in orangefs_setattr_size() 200 iattr->ia_valid |= ATTR_CTIME | ATTR_MTIME; in orangefs_setattr_size() 208 int orangefs_setattr(struct dentry *dentry, struct iattr *iattr) in orangefs_setattr() argument 218 ret = setattr_prepare(dentry, iattr); in orangefs_setattr() 222 if (iattr->ia_valid & ATTR_SIZE) { in orangefs_setattr() 223 ret = orangefs_setattr_size(inode, iattr); in orangefs_setattr() 228 setattr_copy(inode, iattr); in orangefs_setattr() [all …]
|
D | orangefs-utils.c | 140 struct iattr *iattr) in copy_attributes_from_inode() argument 144 if (!iattr || !inode || !attrs) { in copy_attributes_from_inode() 147 iattr, in copy_attributes_from_inode() 157 if (iattr->ia_valid & ATTR_UID) { in copy_attributes_from_inode() 158 attrs->owner = from_kuid(&init_user_ns, iattr->ia_uid); in copy_attributes_from_inode() 162 if (iattr->ia_valid & ATTR_GID) { in copy_attributes_from_inode() 163 attrs->group = from_kgid(&init_user_ns, iattr->ia_gid); in copy_attributes_from_inode() 168 if (iattr->ia_valid & ATTR_ATIME) { in copy_attributes_from_inode() 170 if (iattr->ia_valid & ATTR_ATIME_SET) { in copy_attributes_from_inode() 171 attrs->atime = (time64_t)iattr->ia_atime.tv_sec; in copy_attributes_from_inode() [all …]
|
/linux-4.19.296/fs/xfs/ |
D | xfs_iops.c | 576 struct iattr *iattr) in xfs_setattr_mode() argument 579 umode_t mode = iattr->ia_mode; in xfs_setattr_mode() 590 struct iattr *iattr) in xfs_setattr_time() argument 596 if (iattr->ia_valid & ATTR_ATIME) in xfs_setattr_time() 597 inode->i_atime = iattr->ia_atime; in xfs_setattr_time() 598 if (iattr->ia_valid & ATTR_CTIME) in xfs_setattr_time() 599 inode->i_ctime = iattr->ia_ctime; in xfs_setattr_time() 600 if (iattr->ia_valid & ATTR_MTIME) in xfs_setattr_time() 601 inode->i_mtime = iattr->ia_mtime; in xfs_setattr_time() 607 struct iattr *iattr) in xfs_vn_change_ok() argument [all …]
|
D | xfs_iops.h | 21 extern void xfs_setattr_time(struct xfs_inode *ip, struct iattr *iattr); 22 extern int xfs_setattr_nonsize(struct xfs_inode *ip, struct iattr *vap, 24 extern int xfs_vn_setattr_nonsize(struct dentry *dentry, struct iattr *vap); 25 extern int xfs_vn_setattr_size(struct dentry *dentry, struct iattr *vap);
|
D | xfs_pnfs.c | 237 struct iattr *iattr) in xfs_fs_commit_blocks() argument 246 ASSERT(iattr->ia_valid & (ATTR_ATIME|ATTR_CTIME|ATTR_MTIME)); in xfs_fs_commit_blocks() 251 if ((iattr->ia_valid & ATTR_SIZE) && iattr->ia_size > size) { in xfs_fs_commit_blocks() 253 size = iattr->ia_size; in xfs_fs_commit_blocks() 298 xfs_setattr_time(ip, iattr); in xfs_fs_commit_blocks() 300 i_size_write(inode, iattr->ia_size); in xfs_fs_commit_blocks() 301 ip->i_d.di_size = iattr->ia_size; in xfs_fs_commit_blocks()
|
D | xfs_acl.c | 223 struct iattr iattr; in xfs_set_mode() local 225 iattr.ia_valid = ATTR_MODE | ATTR_CTIME; in xfs_set_mode() 226 iattr.ia_mode = mode; in xfs_set_mode() 227 iattr.ia_ctime = current_time(inode); in xfs_set_mode() 229 error = xfs_setattr_nonsize(XFS_I(inode), &iattr, XFS_ATTR_NOACL); in xfs_set_mode()
|
D | xfs_pnfs.h | 10 struct iattr *iattr);
|
/linux-4.19.296/fs/coda/ |
D | coda_linux.c | 124 void coda_iattr_to_vattr(struct iattr *iattr, struct coda_vattr *vattr) in coda_iattr_to_vattr() argument 150 mode = iattr->ia_mode; in coda_iattr_to_vattr() 164 valid = iattr->ia_valid; in coda_iattr_to_vattr() 166 vattr->va_mode = iattr->ia_mode; in coda_iattr_to_vattr() 169 vattr->va_uid = (vuid_t) from_kuid(&init_user_ns, iattr->ia_uid); in coda_iattr_to_vattr() 172 vattr->va_gid = (vgid_t) from_kgid(&init_user_ns, iattr->ia_gid); in coda_iattr_to_vattr() 175 vattr->va_size = iattr->ia_size; in coda_iattr_to_vattr() 178 vattr->va_atime = timespec64_to_timespec(iattr->ia_atime); in coda_iattr_to_vattr() 181 vattr->va_mtime = timespec64_to_timespec(iattr->ia_mtime); in coda_iattr_to_vattr() 184 vattr->va_ctime = timespec64_to_timespec(iattr->ia_ctime); in coda_iattr_to_vattr()
|
/linux-4.19.296/fs/jffs2/ |
D | fs.c | 31 int jffs2_do_setattr (struct inode *inode, struct iattr *iattr) in jffs2_do_setattr() argument 93 ivalid = iattr->ia_valid; in jffs2_do_setattr() 104 from_kuid(&init_user_ns, iattr->ia_uid):i_uid_read(inode)); in jffs2_do_setattr() 106 from_kgid(&init_user_ns, iattr->ia_gid):i_gid_read(inode)); in jffs2_do_setattr() 109 ri->mode = cpu_to_jemode(iattr->ia_mode); in jffs2_do_setattr() 114 ri->isize = cpu_to_je32((ivalid & ATTR_SIZE)?iattr->ia_size:inode->i_size); in jffs2_do_setattr() 115 ri->atime = cpu_to_je32(I_SEC((ivalid & ATTR_ATIME)?iattr->ia_atime:inode->i_atime)); in jffs2_do_setattr() 116 ri->mtime = cpu_to_je32(I_SEC((ivalid & ATTR_MTIME)?iattr->ia_mtime:inode->i_mtime)); in jffs2_do_setattr() 117 ri->ctime = cpu_to_je32(I_SEC((ivalid & ATTR_CTIME)?iattr->ia_ctime:inode->i_ctime)); in jffs2_do_setattr() 122 if (ivalid & ATTR_SIZE && inode->i_size < iattr->ia_size) { in jffs2_do_setattr() [all …]
|
/linux-4.19.296/fs/nfsd/ |
D | blocklayout.c | 123 struct iattr iattr = { .ia_valid = 0 }; in nfsd4_block_commit_blocks() local 131 iattr.ia_valid |= ATTR_ATIME | ATTR_CTIME | ATTR_MTIME; in nfsd4_block_commit_blocks() 132 iattr.ia_atime = iattr.ia_ctime = iattr.ia_mtime = timespec_to_timespec64(lcp->lc_mtime); in nfsd4_block_commit_blocks() 135 iattr.ia_valid |= ATTR_SIZE; in nfsd4_block_commit_blocks() 136 iattr.ia_size = new_size; in nfsd4_block_commit_blocks() 140 nr_iomaps, &iattr); in nfsd4_block_commit_blocks()
|
D | vfs.h | 53 struct iattr *, int, time_t); 64 char *name, int len, struct iattr *attrs, 67 char *name, int len, struct iattr *attrs, 72 char *name, int len, struct iattr *attrs,
|
D | xdr.h | 17 struct iattr attrs; 44 struct iattr attrs; 74 struct iattr attrs;
|
/linux-4.19.296/fs/9p/ |
D | vfs_inode_dotl.c | 555 int v9fs_vfs_setattr_dotl(struct dentry *dentry, struct iattr *iattr) in v9fs_vfs_setattr_dotl() argument 564 retval = setattr_prepare(dentry, iattr); in v9fs_vfs_setattr_dotl() 568 p9attr.valid = v9fs_mapped_iattr_valid(iattr->ia_valid); in v9fs_vfs_setattr_dotl() 569 p9attr.mode = iattr->ia_mode; in v9fs_vfs_setattr_dotl() 570 p9attr.uid = iattr->ia_uid; in v9fs_vfs_setattr_dotl() 571 p9attr.gid = iattr->ia_gid; in v9fs_vfs_setattr_dotl() 572 p9attr.size = iattr->ia_size; in v9fs_vfs_setattr_dotl() 573 p9attr.atime_sec = iattr->ia_atime.tv_sec; in v9fs_vfs_setattr_dotl() 574 p9attr.atime_nsec = iattr->ia_atime.tv_nsec; in v9fs_vfs_setattr_dotl() 575 p9attr.mtime_sec = iattr->ia_mtime.tv_sec; in v9fs_vfs_setattr_dotl() [all …]
|
D | vfs_inode.c | 1110 static int v9fs_vfs_setattr(struct dentry *dentry, struct iattr *iattr) in v9fs_vfs_setattr() argument 1118 retval = setattr_prepare(dentry, iattr); in v9fs_vfs_setattr() 1129 if (iattr->ia_valid & ATTR_MODE) in v9fs_vfs_setattr() 1130 wstat.mode = unixmode2p9mode(v9ses, iattr->ia_mode); in v9fs_vfs_setattr() 1132 if (iattr->ia_valid & ATTR_MTIME) in v9fs_vfs_setattr() 1133 wstat.mtime = iattr->ia_mtime.tv_sec; in v9fs_vfs_setattr() 1135 if (iattr->ia_valid & ATTR_ATIME) in v9fs_vfs_setattr() 1136 wstat.atime = iattr->ia_atime.tv_sec; in v9fs_vfs_setattr() 1138 if (iattr->ia_valid & ATTR_SIZE) in v9fs_vfs_setattr() 1139 wstat.length = iattr->ia_size; in v9fs_vfs_setattr() [all …]
|
D | acl.c | 279 struct iattr iattr = { 0 }; in v9fs_xattr_set_acl() local 282 retval = posix_acl_update_mode(inode, &iattr.ia_mode, &acl); in v9fs_xattr_set_acl() 295 iattr.ia_valid = ATTR_MODE; in v9fs_xattr_set_acl() 300 v9fs_vfs_setattr_dotl(dentry, &iattr); in v9fs_xattr_set_acl()
|
/linux-4.19.296/include/linux/ |
D | exportfs.h | 8 struct iattr; 210 int nr_iomaps, struct iattr *iattr);
|
D | nfs_xdr.h | 425 struct iattr * attrs; /* UNCHECKED, GUARDED, EXCLUSIVE4_1 */ 710 struct iattr * sattr; 723 struct iattr * sattr; 730 struct iattr * iap; 784 struct iattr * sattr; 824 struct iattr * sattr; 844 struct iattr * sattr; 853 struct iattr * sattr; 862 struct iattr * sattr; 870 struct iattr * sattr; [all …]
|