/kernel/linux/linux-5.10/drivers/hwmon/ |
D | i5k_amb.c | 274 struct i5k_device_attribute *iattr; in i5k_amb_hwmon_init() local 282 iattr = data->attrs + data->num_attrs; in i5k_amb_hwmon_init() 283 snprintf(iattr->name, AMB_SYSFS_NAME_LEN, in i5k_amb_hwmon_init() 285 iattr->s_attr.dev_attr.attr.name = iattr->name; in i5k_amb_hwmon_init() 286 iattr->s_attr.dev_attr.attr.mode = 0444; in i5k_amb_hwmon_init() 287 iattr->s_attr.dev_attr.show = show_label; in i5k_amb_hwmon_init() 288 iattr->s_attr.index = k; in i5k_amb_hwmon_init() 289 sysfs_attr_init(&iattr->s_attr.dev_attr.attr); in i5k_amb_hwmon_init() 291 &iattr->s_attr.dev_attr); in i5k_amb_hwmon_init() 297 iattr = data->attrs + data->num_attrs; in i5k_amb_hwmon_init() [all …]
|
/kernel/linux/linux-5.10/fs/orangefs/ |
D | namei.c | 27 struct iattr iattr; in orangefs_create() local 85 memset(&iattr, 0, sizeof iattr); in orangefs_create() 86 iattr.ia_valid |= ATTR_MTIME | ATTR_CTIME; in orangefs_create() 87 iattr.ia_mtime = iattr.ia_ctime = current_time(dir); in orangefs_create() 88 __orangefs_setattr(dir, &iattr); in orangefs_create() 177 struct iattr iattr; in orangefs_unlink() local 210 memset(&iattr, 0, sizeof iattr); in orangefs_unlink() 211 iattr.ia_valid |= ATTR_MTIME | ATTR_CTIME; in orangefs_unlink() 212 iattr.ia_mtime = iattr.ia_ctime = current_time(dir); in orangefs_unlink() 213 __orangefs_setattr(dir, &iattr); in orangefs_unlink() [all …]
|
D | acl.c | 122 struct iattr iattr; in orangefs_set_acl() local 125 memset(&iattr, 0, sizeof iattr); in orangefs_set_acl() 135 error = posix_acl_update_mode(inode, &iattr.ia_mode, &acl); in orangefs_set_acl() 143 if (inode->i_mode != iattr.ia_mode) in orangefs_set_acl() 144 iattr.ia_valid = ATTR_MODE; in orangefs_set_acl() 150 if (!rc && (iattr.ia_valid == ATTR_MODE)) in orangefs_set_acl() 151 rc = __orangefs_setattr(inode, &iattr); in orangefs_set_acl() 160 struct iattr iattr; in orangefs_init_acl() local 185 memset(&iattr, 0, sizeof iattr); in orangefs_init_acl() 187 iattr.ia_mode = mode; in orangefs_init_acl() [all …]
|
D | inode.c | 748 static int orangefs_setattr_size(struct inode *inode, struct iattr *iattr) in orangefs_setattr_size() argument 761 iattr->ia_size); in orangefs_setattr_size() 775 truncate_pagecache(inode, iattr->ia_size); in orangefs_setattr_size() 776 i_size_write(inode, iattr->ia_size); in orangefs_setattr_size() 777 if (iattr->ia_size > orig_size) in orangefs_setattr_size() 778 pagecache_isize_extended(inode, orig_size, iattr->ia_size); in orangefs_setattr_size() 785 new_op->upcall.req.truncate.size = (__s64) iattr->ia_size; in orangefs_setattr_size() 803 iattr->ia_valid |= ATTR_CTIME | ATTR_MTIME; in orangefs_setattr_size() 808 int __orangefs_setattr(struct inode *inode, struct iattr *iattr) in __orangefs_setattr() argument 812 if (iattr->ia_valid & ATTR_MODE) { in __orangefs_setattr() [all …]
|
/kernel/linux/linux-5.10/fs/kernfs/ |
D | inode.c | 40 if (kn->iattr || !alloc) in __kernfs_iattrs() 43 kn->iattr = kmem_cache_zalloc(kernfs_iattrs_cache, GFP_KERNEL); in __kernfs_iattrs() 44 if (!kn->iattr) in __kernfs_iattrs() 48 kn->iattr->ia_uid = GLOBAL_ROOT_UID; in __kernfs_iattrs() 49 kn->iattr->ia_gid = GLOBAL_ROOT_GID; in __kernfs_iattrs() 51 ktime_get_real_ts64(&kn->iattr->ia_atime); in __kernfs_iattrs() 52 kn->iattr->ia_mtime = kn->iattr->ia_atime; in __kernfs_iattrs() 53 kn->iattr->ia_ctime = kn->iattr->ia_atime; in __kernfs_iattrs() 55 simple_xattrs_init(&kn->iattr->xattrs); in __kernfs_iattrs() 56 atomic_set(&kn->iattr->nr_user_xattrs, 0); in __kernfs_iattrs() [all …]
|
D | kernfs-internal.h | 93 int kernfs_iop_setattr(struct dentry *dentry, struct iattr *iattr); 97 int __kernfs_setattr(struct kernfs_node *kn, const struct iattr *iattr);
|
D | symlink.c | 34 if (target->iattr) { in kernfs_create_link() 35 uid = target->iattr->ia_uid; in kernfs_create_link() 36 gid = target->iattr->ia_gid; in kernfs_create_link()
|
/kernel/linux/linux-5.10/fs/configfs/ |
D | inode.c | 43 int configfs_setattr(struct dentry * dentry, struct iattr * iattr) in configfs_setattr() argument 47 struct iattr * sd_iattr; in configfs_setattr() 48 unsigned int ia_valid = iattr->ia_valid; in configfs_setattr() 57 sd_iattr = kzalloc(sizeof(struct iattr), GFP_KERNEL); in configfs_setattr() 70 error = simple_setattr(dentry, iattr); in configfs_setattr() 75 sd_iattr->ia_uid = iattr->ia_uid; in configfs_setattr() 77 sd_iattr->ia_gid = iattr->ia_gid; in configfs_setattr() 79 sd_iattr->ia_atime = iattr->ia_atime; in configfs_setattr() 81 sd_iattr->ia_mtime = iattr->ia_mtime; in configfs_setattr() 83 sd_iattr->ia_ctime = iattr->ia_ctime; in configfs_setattr() [all …]
|
D | configfs_internal.h | 42 struct iattr * s_iattr; 82 extern int configfs_setattr(struct dentry *dentry, struct iattr *iattr);
|
/kernel/linux/linux-5.10/fs/jfs/ |
D | file.c | 88 int jfs_setattr(struct dentry *dentry, struct iattr *iattr) in jfs_setattr() argument 93 rc = setattr_prepare(dentry, iattr); in jfs_setattr() 97 if (is_quota_modification(inode, iattr)) { in jfs_setattr() 102 if ((iattr->ia_valid & ATTR_UID && !uid_eq(iattr->ia_uid, inode->i_uid)) || in jfs_setattr() 103 (iattr->ia_valid & ATTR_GID && !gid_eq(iattr->ia_gid, inode->i_gid))) { in jfs_setattr() 104 rc = dquot_transfer(inode, iattr); in jfs_setattr() 109 if ((iattr->ia_valid & ATTR_SIZE) && in jfs_setattr() 110 iattr->ia_size != i_size_read(inode)) { in jfs_setattr() 113 rc = inode_newsize_ok(inode, iattr->ia_size); in jfs_setattr() 117 truncate_setsize(inode, iattr->ia_size); in jfs_setattr() [all …]
|
/kernel/linux/linux-5.10/fs/xfs/ |
D | xfs_iops.c | 601 struct iattr *iattr) in xfs_setattr_mode() argument 604 umode_t mode = iattr->ia_mode; in xfs_setattr_mode() 615 struct iattr *iattr) in xfs_setattr_time() argument 621 if (iattr->ia_valid & ATTR_ATIME) in xfs_setattr_time() 622 inode->i_atime = iattr->ia_atime; in xfs_setattr_time() 623 if (iattr->ia_valid & ATTR_CTIME) in xfs_setattr_time() 624 inode->i_ctime = iattr->ia_ctime; in xfs_setattr_time() 625 if (iattr->ia_valid & ATTR_MTIME) in xfs_setattr_time() 626 inode->i_mtime = iattr->ia_mtime; in xfs_setattr_time() 632 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 | 225 struct iattr *iattr) in xfs_fs_commit_blocks() argument 234 ASSERT(iattr->ia_valid & (ATTR_ATIME|ATTR_CTIME|ATTR_MTIME)); in xfs_fs_commit_blocks() 239 if ((iattr->ia_valid & ATTR_SIZE) && iattr->ia_size > size) { in xfs_fs_commit_blocks() 241 size = iattr->ia_size; in xfs_fs_commit_blocks() 286 xfs_setattr_time(ip, iattr); in xfs_fs_commit_blocks() 288 i_size_write(inode, iattr->ia_size); in xfs_fs_commit_blocks() 289 ip->i_d.di_size = iattr->ia_size; in xfs_fs_commit_blocks()
|
D | xfs_acl.c | 220 struct iattr iattr; in xfs_set_mode() local 222 iattr.ia_valid = ATTR_MODE | ATTR_CTIME; in xfs_set_mode() 223 iattr.ia_mode = mode; in xfs_set_mode() 224 iattr.ia_ctime = current_time(inode); in xfs_set_mode() 226 error = xfs_setattr_nonsize(XFS_I(inode), &iattr, XFS_ATTR_NOACL); in xfs_set_mode()
|
D | xfs_pnfs.h | 10 struct iattr *iattr);
|
/kernel/linux/linux-5.10/fs/jffs2/ |
D | fs.c | 32 int jffs2_do_setattr (struct inode *inode, struct iattr *iattr) in jffs2_do_setattr() argument 94 ivalid = iattr->ia_valid; in jffs2_do_setattr() 105 from_kuid(&init_user_ns, iattr->ia_uid):i_uid_read(inode)); in jffs2_do_setattr() 107 from_kgid(&init_user_ns, iattr->ia_gid):i_gid_read(inode)); in jffs2_do_setattr() 110 ri->mode = cpu_to_jemode(iattr->ia_mode); in jffs2_do_setattr() 115 ri->isize = cpu_to_je32((ivalid & ATTR_SIZE)?iattr->ia_size:inode->i_size); in jffs2_do_setattr() 116 ri->atime = cpu_to_je32(I_SEC((ivalid & ATTR_ATIME)?iattr->ia_atime:inode->i_atime)); in jffs2_do_setattr() 117 ri->mtime = cpu_to_je32(I_SEC((ivalid & ATTR_MTIME)?iattr->ia_mtime:inode->i_mtime)); in jffs2_do_setattr() 118 ri->ctime = cpu_to_je32(I_SEC((ivalid & ATTR_CTIME)?iattr->ia_ctime:inode->i_ctime)); in jffs2_do_setattr() 123 if (ivalid & ATTR_SIZE && inode->i_size < iattr->ia_size) { in jffs2_do_setattr() [all …]
|
/kernel/linux/linux-5.10/fs/coda/ |
D | coda_linux.c | 143 void coda_iattr_to_vattr(struct iattr *iattr, struct coda_vattr *vattr) in coda_iattr_to_vattr() argument 169 mode = iattr->ia_mode; in coda_iattr_to_vattr() 183 valid = iattr->ia_valid; in coda_iattr_to_vattr() 185 vattr->va_mode = iattr->ia_mode; in coda_iattr_to_vattr() 188 vattr->va_uid = (vuid_t) from_kuid(&init_user_ns, iattr->ia_uid); in coda_iattr_to_vattr() 191 vattr->va_gid = (vgid_t) from_kgid(&init_user_ns, iattr->ia_gid); in coda_iattr_to_vattr() 194 vattr->va_size = iattr->ia_size; in coda_iattr_to_vattr() 197 vattr->va_atime = timespec64_to_coda(iattr->ia_atime); in coda_iattr_to_vattr() 200 vattr->va_mtime = timespec64_to_coda(iattr->ia_mtime); in coda_iattr_to_vattr() 203 vattr->va_ctime = timespec64_to_coda(iattr->ia_ctime); in coda_iattr_to_vattr()
|
/kernel/linux/linux-5.10/fs/9p/ |
D | vfs_inode_dotl.c | 540 int v9fs_vfs_setattr_dotl(struct dentry *dentry, struct iattr *iattr) in v9fs_vfs_setattr_dotl() argument 552 retval = setattr_prepare(dentry, iattr); in v9fs_vfs_setattr_dotl() 556 p9attr.valid = v9fs_mapped_iattr_valid(iattr->ia_valid); in v9fs_vfs_setattr_dotl() 557 if (iattr->ia_valid & ATTR_MODE) in v9fs_vfs_setattr_dotl() 558 p9attr.mode = iattr->ia_mode; in v9fs_vfs_setattr_dotl() 559 if (iattr->ia_valid & ATTR_UID) in v9fs_vfs_setattr_dotl() 560 p9attr.uid = iattr->ia_uid; in v9fs_vfs_setattr_dotl() 561 if (iattr->ia_valid & ATTR_GID) in v9fs_vfs_setattr_dotl() 562 p9attr.gid = iattr->ia_gid; in v9fs_vfs_setattr_dotl() 563 if (iattr->ia_valid & ATTR_SIZE) in v9fs_vfs_setattr_dotl() [all …]
|
D | vfs_inode.c | 1035 static int v9fs_vfs_setattr(struct dentry *dentry, struct iattr *iattr) in v9fs_vfs_setattr() argument 1043 retval = setattr_prepare(dentry, iattr); in v9fs_vfs_setattr() 1049 if (iattr->ia_valid & ATTR_FILE) { in v9fs_vfs_setattr() 1050 fid = iattr->ia_file->private_data; in v9fs_vfs_setattr() 1059 if (iattr->ia_valid & ATTR_MODE) in v9fs_vfs_setattr() 1060 wstat.mode = unixmode2p9mode(v9ses, iattr->ia_mode); in v9fs_vfs_setattr() 1062 if (iattr->ia_valid & ATTR_MTIME) in v9fs_vfs_setattr() 1063 wstat.mtime = iattr->ia_mtime.tv_sec; in v9fs_vfs_setattr() 1065 if (iattr->ia_valid & ATTR_ATIME) in v9fs_vfs_setattr() 1066 wstat.atime = iattr->ia_atime.tv_sec; 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()
|
/kernel/linux/linux-5.10/fs/vboxsf/ |
D | utils.c | 240 int vboxsf_setattr(struct dentry *dentry, struct iattr *iattr) in vboxsf_setattr() argument 255 if (iattr->ia_valid & ATTR_SIZE) in vboxsf_setattr() 262 #define mode_set(r) ((iattr->ia_mode & (S_##r)) ? SHFL_UNIX_##r : 0) in vboxsf_setattr() 268 if (iattr->ia_valid & (ATTR_MODE | ATTR_ATIME | ATTR_MTIME)) { in vboxsf_setattr() 269 if (iattr->ia_valid & ATTR_MODE) { in vboxsf_setattr() 280 if (iattr->ia_mode & S_IFDIR) in vboxsf_setattr() 286 if (iattr->ia_valid & ATTR_ATIME) in vboxsf_setattr() 288 timespec64_to_ns(&iattr->ia_atime); in vboxsf_setattr() 290 if (iattr->ia_valid & ATTR_MTIME) in vboxsf_setattr() 292 timespec64_to_ns(&iattr->ia_mtime); in vboxsf_setattr() [all …]
|
/kernel/linux/linux-5.10/fs/nfsd/ |
D | blocklayout.c | 124 struct iattr iattr = { .ia_valid = 0 }; in nfsd4_block_commit_blocks() local 130 iattr.ia_valid |= ATTR_ATIME | ATTR_CTIME | ATTR_MTIME; in nfsd4_block_commit_blocks() 131 iattr.ia_atime = iattr.ia_ctime = iattr.ia_mtime = lcp->lc_mtime; in nfsd4_block_commit_blocks() 134 iattr.ia_valid |= ATTR_SIZE; in nfsd4_block_commit_blocks() 135 iattr.ia_size = new_size; in nfsd4_block_commit_blocks() 139 nr_iomaps, &iattr); in nfsd4_block_commit_blocks()
|
D | vfs.h | 53 struct iattr *, int, time64_t); 65 char *name, int len, struct iattr *attrs, 68 char *name, int len, struct iattr *attrs, 73 char *name, int len, struct iattr *attrs,
|
/kernel/linux/linux-5.10/include/linux/ |
D | exportfs.h | 8 struct iattr; 215 int nr_iomaps, struct iattr *iattr);
|
D | nfs_xdr.h | 464 struct iattr * attrs; /* UNCHECKED, GUARDED, EXCLUSIVE4_1 */ 763 struct iattr * sattr; 776 struct iattr * sattr; 783 struct iattr * iap; 837 struct iattr * sattr; 877 struct iattr * sattr; 897 struct iattr * sattr; 906 struct iattr * sattr; 915 struct iattr * sattr; 923 struct iattr * sattr; [all …]
|