Home
last modified time | relevance | path

Searched refs:iattr (Results 1 – 25 of 168) sorted by relevance

1234567

/Linux-v6.1/drivers/hwmon/
Di5k_amb.c274 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 …]
/Linux-v6.1/fs/orangefs/
Dnamei.c28 struct iattr iattr; in orangefs_create() local
86 memset(&iattr, 0, sizeof iattr); in orangefs_create()
87 iattr.ia_valid |= ATTR_MTIME | ATTR_CTIME; in orangefs_create()
88 iattr.ia_mtime = iattr.ia_ctime = current_time(dir); in orangefs_create()
89 __orangefs_setattr(dir, &iattr); in orangefs_create()
178 struct iattr iattr; in orangefs_unlink() local
211 memset(&iattr, 0, sizeof iattr); in orangefs_unlink()
212 iattr.ia_valid |= ATTR_MTIME | ATTR_CTIME; in orangefs_unlink()
213 iattr.ia_mtime = iattr.ia_ctime = current_time(dir); in orangefs_unlink()
214 __orangefs_setattr(dir, &iattr); in orangefs_unlink()
[all …]
Dacl.c126 struct iattr iattr; in orangefs_set_acl() local
129 memset(&iattr, 0, sizeof iattr); in orangefs_set_acl()
140 &iattr.ia_mode, &acl); in orangefs_set_acl()
148 if (inode->i_mode != iattr.ia_mode) in orangefs_set_acl()
149 iattr.ia_valid = ATTR_MODE; in orangefs_set_acl()
155 if (!rc && (iattr.ia_valid == ATTR_MODE)) in orangefs_set_acl()
156 rc = __orangefs_setattr(inode, &iattr); in orangefs_set_acl()
165 struct iattr iattr; in orangefs_init_acl() local
190 memset(&iattr, 0, sizeof iattr); in orangefs_init_acl()
192 iattr.ia_mode = mode; in orangefs_init_acl()
[all …]
Dinode.c717 static int orangefs_setattr_size(struct inode *inode, struct iattr *iattr) in orangefs_setattr_size() argument
730 iattr->ia_size); in orangefs_setattr_size()
744 truncate_pagecache(inode, iattr->ia_size); in orangefs_setattr_size()
745 i_size_write(inode, iattr->ia_size); in orangefs_setattr_size()
746 if (iattr->ia_size > orig_size) in orangefs_setattr_size()
747 pagecache_isize_extended(inode, orig_size, iattr->ia_size); in orangefs_setattr_size()
754 new_op->upcall.req.truncate.size = (__s64) iattr->ia_size; in orangefs_setattr_size()
772 iattr->ia_valid |= ATTR_CTIME | ATTR_MTIME; in orangefs_setattr_size()
777 int __orangefs_setattr(struct inode *inode, struct iattr *iattr) in __orangefs_setattr() argument
781 if (iattr->ia_valid & ATTR_MODE) { in __orangefs_setattr()
[all …]
/Linux-v6.1/fs/kernfs/
Dinode.c34 if (kn->iattr || !alloc) in __kernfs_iattrs()
37 kn->iattr = kmem_cache_zalloc(kernfs_iattrs_cache, GFP_KERNEL); in __kernfs_iattrs()
38 if (!kn->iattr) in __kernfs_iattrs()
42 kn->iattr->ia_uid = GLOBAL_ROOT_UID; in __kernfs_iattrs()
43 kn->iattr->ia_gid = GLOBAL_ROOT_GID; in __kernfs_iattrs()
45 ktime_get_real_ts64(&kn->iattr->ia_atime); in __kernfs_iattrs()
46 kn->iattr->ia_mtime = kn->iattr->ia_atime; in __kernfs_iattrs()
47 kn->iattr->ia_ctime = kn->iattr->ia_atime; in __kernfs_iattrs()
49 simple_xattrs_init(&kn->iattr->xattrs); in __kernfs_iattrs()
50 atomic_set(&kn->iattr->nr_user_xattrs, 0); in __kernfs_iattrs()
[all …]
Dkernfs-internal.h133 struct iattr *iattr);
138 int __kernfs_setattr(struct kernfs_node *kn, const struct iattr *iattr);
Dsymlink.c34 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()
/Linux-v6.1/fs/configfs/
Dinode.c36 struct iattr *iattr) in configfs_setattr() argument
40 struct iattr * sd_iattr; in configfs_setattr()
41 unsigned int ia_valid = iattr->ia_valid; in configfs_setattr()
50 sd_iattr = kzalloc(sizeof(struct iattr), GFP_KERNEL); in configfs_setattr()
63 error = simple_setattr(mnt_userns, dentry, iattr); in configfs_setattr()
68 sd_iattr->ia_uid = iattr->ia_uid; in configfs_setattr()
70 sd_iattr->ia_gid = iattr->ia_gid; in configfs_setattr()
72 sd_iattr->ia_atime = iattr->ia_atime; in configfs_setattr()
74 sd_iattr->ia_mtime = iattr->ia_mtime; in configfs_setattr()
76 sd_iattr->ia_ctime = iattr->ia_ctime; in configfs_setattr()
[all …]
Dconfigfs_internal.h40 struct iattr * s_iattr;
81 struct dentry *dentry, struct iattr *iattr);
/Linux-v6.1/fs/jfs/
Dfile.c89 struct iattr *iattr) in jfs_setattr() argument
94 rc = setattr_prepare(&init_user_ns, dentry, iattr); in jfs_setattr()
98 if (is_quota_modification(mnt_userns, inode, iattr)) { in jfs_setattr()
103 if ((iattr->ia_valid & ATTR_UID && !uid_eq(iattr->ia_uid, inode->i_uid)) || in jfs_setattr()
104 (iattr->ia_valid & ATTR_GID && !gid_eq(iattr->ia_gid, inode->i_gid))) { in jfs_setattr()
105 rc = dquot_transfer(mnt_userns, inode, iattr); in jfs_setattr()
110 if ((iattr->ia_valid & ATTR_SIZE) && in jfs_setattr()
111 iattr->ia_size != i_size_read(inode)) { in jfs_setattr()
114 rc = inode_newsize_ok(inode, iattr->ia_size); in jfs_setattr()
118 truncate_setsize(inode, iattr->ia_size); in jfs_setattr()
[all …]
/Linux-v6.1/fs/jffs2/
Dfs.c32 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 …]
/Linux-v6.1/fs/coda/
Dcoda_linux.c142 void coda_iattr_to_vattr(struct iattr *iattr, struct coda_vattr *vattr) in coda_iattr_to_vattr() argument
168 mode = iattr->ia_mode; in coda_iattr_to_vattr()
182 valid = iattr->ia_valid; in coda_iattr_to_vattr()
184 vattr->va_mode = iattr->ia_mode; in coda_iattr_to_vattr()
187 vattr->va_uid = (vuid_t) from_kuid(&init_user_ns, iattr->ia_uid); in coda_iattr_to_vattr()
190 vattr->va_gid = (vgid_t) from_kgid(&init_user_ns, iattr->ia_gid); in coda_iattr_to_vattr()
193 vattr->va_size = iattr->ia_size; in coda_iattr_to_vattr()
196 vattr->va_atime = timespec64_to_coda(iattr->ia_atime); in coda_iattr_to_vattr()
199 vattr->va_mtime = timespec64_to_coda(iattr->ia_mtime); in coda_iattr_to_vattr()
202 vattr->va_ctime = timespec64_to_coda(iattr->ia_ctime); in coda_iattr_to_vattr()
/Linux-v6.1/fs/xfs/
Dxfs_iops.c632 struct iattr *iattr) in xfs_vn_change_ok() argument
642 return setattr_prepare(mnt_userns, dentry, iattr); in xfs_vn_change_ok()
655 struct iattr *iattr) in xfs_setattr_nonsize() argument
659 int mask = iattr->ia_valid; in xfs_setattr_nonsize()
682 iattr->ia_vfsuid); in xfs_setattr_nonsize()
689 iattr->ia_vfsgid); in xfs_setattr_nonsize()
721 i_uid_needs_update(mnt_userns, iattr, inode)) { in xfs_setattr_nonsize()
726 i_gid_needs_update(mnt_userns, iattr, inode)) { in xfs_setattr_nonsize()
732 setattr_copy(mnt_userns, inode, iattr); in xfs_setattr_nonsize()
783 struct iattr *iattr) in xfs_setattr_size() argument
[all …]
Dxfs_pnfs.c261 struct iattr *iattr) in xfs_fs_commit_blocks() argument
270 ASSERT(iattr->ia_valid & (ATTR_ATIME|ATTR_CTIME|ATTR_MTIME)); in xfs_fs_commit_blocks()
275 if ((iattr->ia_valid & ATTR_SIZE) && iattr->ia_size > size) { in xfs_fs_commit_blocks()
277 size = iattr->ia_size; in xfs_fs_commit_blocks()
322 ASSERT(!(iattr->ia_valid & (ATTR_UID | ATTR_GID))); in xfs_fs_commit_blocks()
323 setattr_copy(&init_user_ns, inode, iattr); in xfs_fs_commit_blocks()
325 i_size_write(inode, iattr->ia_size); in xfs_fs_commit_blocks()
326 ip->i_disk_size = iattr->ia_size; in xfs_fs_commit_blocks()
Dxfs_pnfs.h10 struct iattr *iattr);
/Linux-v6.1/fs/9p/
Dvfs_inode_dotl.c540 struct dentry *dentry, struct iattr *iattr) in v9fs_vfs_setattr_dotl() argument
552 retval = setattr_prepare(&init_user_ns, 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 …]
Dvfs_inode.c1071 struct dentry *dentry, struct iattr *iattr) in v9fs_vfs_setattr() argument
1081 retval = setattr_prepare(&init_user_ns, dentry, iattr); in v9fs_vfs_setattr()
1087 if (iattr->ia_valid & ATTR_FILE) { in v9fs_vfs_setattr()
1088 fid = iattr->ia_file->private_data; in v9fs_vfs_setattr()
1099 if (iattr->ia_valid & ATTR_MODE) in v9fs_vfs_setattr()
1100 wstat.mode = unixmode2p9mode(v9ses, iattr->ia_mode); in v9fs_vfs_setattr()
1102 if (iattr->ia_valid & ATTR_MTIME) in v9fs_vfs_setattr()
1103 wstat.mtime = iattr->ia_mtime.tv_sec; in v9fs_vfs_setattr()
1105 if (iattr->ia_valid & ATTR_ATIME) in v9fs_vfs_setattr()
1106 wstat.atime = iattr->ia_atime.tv_sec; in v9fs_vfs_setattr()
[all …]
Dacl.c276 struct iattr iattr = { 0 }; in v9fs_xattr_set_acl() local
280 &iattr.ia_mode, &acl); in v9fs_xattr_set_acl()
293 iattr.ia_valid = ATTR_MODE; in v9fs_xattr_set_acl()
298 v9fs_vfs_setattr_dotl(&init_user_ns, dentry, &iattr); in v9fs_xattr_set_acl()
/Linux-v6.1/fs/nfsd/
Dblocklayout.c120 struct iattr iattr = { .ia_valid = 0 }; in nfsd4_block_commit_blocks() local
126 iattr.ia_valid |= ATTR_ATIME | ATTR_CTIME | ATTR_MTIME; in nfsd4_block_commit_blocks()
127 iattr.ia_atime = iattr.ia_ctime = iattr.ia_mtime = lcp->lc_mtime; in nfsd4_block_commit_blocks()
130 iattr.ia_valid |= ATTR_SIZE; in nfsd4_block_commit_blocks()
131 iattr.ia_size = new_size; in nfsd4_block_commit_blocks()
135 nr_iomaps, &iattr); in nfsd4_block_commit_blocks()
Dxdr.h17 struct iattr attrs;
43 struct iattr attrs;
68 struct iattr attrs;
/Linux-v6.1/fs/vboxsf/
Dutils.c260 struct iattr *iattr) in vboxsf_setattr() argument
275 if (iattr->ia_valid & ATTR_SIZE) in vboxsf_setattr()
282 #define mode_set(r) ((iattr->ia_mode & (S_##r)) ? SHFL_UNIX_##r : 0) in vboxsf_setattr()
288 if (iattr->ia_valid & (ATTR_MODE | ATTR_ATIME | ATTR_MTIME)) { in vboxsf_setattr()
289 if (iattr->ia_valid & ATTR_MODE) { in vboxsf_setattr()
300 if (iattr->ia_mode & S_IFDIR) in vboxsf_setattr()
306 if (iattr->ia_valid & ATTR_ATIME) in vboxsf_setattr()
308 timespec64_to_ns(&iattr->ia_atime); in vboxsf_setattr()
310 if (iattr->ia_valid & ATTR_MTIME) in vboxsf_setattr()
312 timespec64_to_ns(&iattr->ia_mtime); in vboxsf_setattr()
[all …]
/Linux-v6.1/include/linux/
Dnfs_xdr.h467 struct iattr * attrs; /* UNCHECKED, GUARDED, EXCLUSIVE4_1 */
777 struct iattr * sattr;
790 struct iattr * sattr;
797 struct iattr * iap;
860 struct iattr * sattr;
900 struct iattr * sattr;
920 struct iattr * sattr;
929 struct iattr * sattr;
938 struct iattr * sattr;
946 struct iattr * sattr;
[all …]
Dexportfs.h8 struct iattr;
215 int nr_iomaps, struct iattr *iattr);
Dkernfs.h25 struct iattr;
225 struct kernfs_iattrs *iattr; member
443 int kernfs_setattr(struct kernfs_node *kn, const struct iattr *iattr);
550 const struct iattr *iattr) in kernfs_setattr() argument
/Linux-v6.1/mm/
Dsecretmem.c166 struct dentry *dentry, struct iattr *iattr) in secretmem_setattr() argument
170 unsigned int ia_valid = iattr->ia_valid; in secretmem_setattr()
178 ret = simple_setattr(mnt_userns, dentry, iattr); in secretmem_setattr()

1234567