Home
last modified time | relevance | path

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

123456

/fs/orangefs/
Dnamei.c27 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 …]
Dacl.c122 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_setattr(inode, &iattr); in orangefs_set_acl()
159 struct iattr iattr; in orangefs_init_acl() local
184 memset(&iattr, 0, sizeof iattr); in orangefs_init_acl()
186 iattr.ia_mode = mode; in orangefs_init_acl()
187 iattr.ia_valid |= ATTR_MODE; in orangefs_init_acl()
188 __orangefs_setattr(inode, &iattr); in orangefs_init_acl()
Dinode.c795 static int orangefs_setattr_size(struct inode *inode, struct iattr *iattr) in orangefs_setattr_size() argument
808 iattr->ia_size); in orangefs_setattr_size()
822 truncate_pagecache(inode, iattr->ia_size); in orangefs_setattr_size()
823 i_size_write(inode, iattr->ia_size); in orangefs_setattr_size()
824 if (iattr->ia_size > orig_size) in orangefs_setattr_size()
825 pagecache_isize_extended(inode, orig_size, iattr->ia_size); in orangefs_setattr_size()
832 new_op->upcall.req.truncate.size = (__s64) iattr->ia_size; in orangefs_setattr_size()
850 iattr->ia_valid |= ATTR_CTIME | ATTR_MTIME; in orangefs_setattr_size()
855 int __orangefs_setattr(struct inode *inode, struct iattr *iattr) in __orangefs_setattr() argument
859 if (iattr->ia_valid & ATTR_MODE) { in __orangefs_setattr()
[all …]
/fs/kernfs/
Dinode.c40 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()
57 ret = kn->iattr; in __kernfs_iattrs()
[all …]
Dkernfs-internal.h91 int kernfs_iop_setattr(struct dentry *dentry, struct iattr *iattr);
95 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()
/fs/configfs/
Dinode.c43 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 = timestamp_truncate(iattr->ia_atime, in configfs_setattr()
82 sd_iattr->ia_mtime = timestamp_truncate(iattr->ia_mtime, in configfs_setattr()
85 sd_iattr->ia_ctime = timestamp_truncate(iattr->ia_ctime, in configfs_setattr()
[all …]
Dconfigfs_internal.h42 struct iattr * s_iattr;
82 extern int configfs_setattr(struct dentry *dentry, struct iattr *iattr);
/fs/jfs/
Dfile.c88 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 …]
/fs/xfs/
Dxfs_iops.c566 struct iattr *iattr) in xfs_setattr_mode() argument
569 umode_t mode = iattr->ia_mode; in xfs_setattr_mode()
580 struct iattr *iattr) in xfs_setattr_time() argument
586 if (iattr->ia_valid & ATTR_ATIME) in xfs_setattr_time()
587 inode->i_atime = iattr->ia_atime; in xfs_setattr_time()
588 if (iattr->ia_valid & ATTR_CTIME) in xfs_setattr_time()
589 inode->i_ctime = iattr->ia_ctime; in xfs_setattr_time()
590 if (iattr->ia_valid & ATTR_MTIME) in xfs_setattr_time()
591 inode->i_mtime = iattr->ia_mtime; in xfs_setattr_time()
597 struct iattr *iattr) in xfs_vn_change_ok() argument
[all …]
Dxfs_iops.h21 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);
Dxfs_pnfs.c230 struct iattr *iattr) in xfs_fs_commit_blocks() argument
239 ASSERT(iattr->ia_valid & (ATTR_ATIME|ATTR_CTIME|ATTR_MTIME)); in xfs_fs_commit_blocks()
244 if ((iattr->ia_valid & ATTR_SIZE) && iattr->ia_size > size) { in xfs_fs_commit_blocks()
246 size = iattr->ia_size; in xfs_fs_commit_blocks()
291 xfs_setattr_time(ip, iattr); in xfs_fs_commit_blocks()
293 i_size_write(inode, iattr->ia_size); in xfs_fs_commit_blocks()
294 ip->i_d.di_size = iattr->ia_size; in xfs_fs_commit_blocks()
Dxfs_acl.c217 struct iattr iattr; in xfs_set_mode() local
219 iattr.ia_valid = ATTR_MODE | ATTR_CTIME; in xfs_set_mode()
220 iattr.ia_mode = mode; in xfs_set_mode()
221 iattr.ia_ctime = current_time(inode); in xfs_set_mode()
223 error = xfs_setattr_nonsize(XFS_I(inode), &iattr, XFS_ATTR_NOACL); in xfs_set_mode()
Dxfs_pnfs.h10 struct iattr *iattr);
/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 …]
/fs/coda/
Dcoda_linux.c143 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()
/fs/nfsd/
Dblocklayout.c124 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()
Dvfs.h51 struct iattr *, int, time_t);
62 char *name, int len, struct iattr *attrs,
65 char *name, int len, struct iattr *attrs,
70 char *name, int len, struct iattr *attrs,
Dxdr.h17 struct iattr attrs;
44 struct iattr attrs;
74 struct iattr attrs;
Dxdr3.h15 struct iattr attrs;
52 struct iattr attrs;
62 struct iattr attrs;
92 struct iattr attrs;
/fs/9p/
Dvfs_inode_dotl.c540 int v9fs_vfs_setattr_dotl(struct dentry *dentry, struct iattr *iattr) in v9fs_vfs_setattr_dotl() argument
549 retval = setattr_prepare(dentry, iattr); in v9fs_vfs_setattr_dotl()
553 p9attr.valid = v9fs_mapped_iattr_valid(iattr->ia_valid); in v9fs_vfs_setattr_dotl()
554 p9attr.mode = iattr->ia_mode; in v9fs_vfs_setattr_dotl()
555 p9attr.uid = iattr->ia_uid; in v9fs_vfs_setattr_dotl()
556 p9attr.gid = iattr->ia_gid; in v9fs_vfs_setattr_dotl()
557 p9attr.size = iattr->ia_size; in v9fs_vfs_setattr_dotl()
558 p9attr.atime_sec = iattr->ia_atime.tv_sec; in v9fs_vfs_setattr_dotl()
559 p9attr.atime_nsec = iattr->ia_atime.tv_nsec; in v9fs_vfs_setattr_dotl()
560 p9attr.mtime_sec = iattr->ia_mtime.tv_sec; in v9fs_vfs_setattr_dotl()
[all …]
Dvfs_inode.c1089 static int v9fs_vfs_setattr(struct dentry *dentry, struct iattr *iattr) in v9fs_vfs_setattr() argument
1097 retval = setattr_prepare(dentry, iattr); in v9fs_vfs_setattr()
1108 if (iattr->ia_valid & ATTR_MODE) in v9fs_vfs_setattr()
1109 wstat.mode = unixmode2p9mode(v9ses, iattr->ia_mode); in v9fs_vfs_setattr()
1111 if (iattr->ia_valid & ATTR_MTIME) in v9fs_vfs_setattr()
1112 wstat.mtime = iattr->ia_mtime.tv_sec; in v9fs_vfs_setattr()
1114 if (iattr->ia_valid & ATTR_ATIME) in v9fs_vfs_setattr()
1115 wstat.atime = iattr->ia_atime.tv_sec; in v9fs_vfs_setattr()
1117 if (iattr->ia_valid & ATTR_SIZE) in v9fs_vfs_setattr()
1118 wstat.length = iattr->ia_size; in v9fs_vfs_setattr()
[all …]
Dacl.c280 struct iattr iattr = { 0 }; in v9fs_xattr_set_acl() local
283 retval = posix_acl_update_mode(inode, &iattr.ia_mode, &acl); in v9fs_xattr_set_acl()
296 iattr.ia_valid = ATTR_MODE; in v9fs_xattr_set_acl()
301 v9fs_vfs_setattr_dotl(dentry, &iattr); in v9fs_xattr_set_acl()
/fs/
Dattr.c61 int setattr_prepare(struct dentry *dentry, struct iattr *attr) in setattr_prepare()
178 void setattr_copy(struct inode *inode, const struct iattr *attr) in setattr_copy()
229 int notify_change2(struct vfsmount *mnt, struct dentry * dentry, struct iattr * attr, struct inode … in notify_change2()
353 int notify_change(struct dentry * dentry, struct iattr * attr, struct inode **delegated_inode) in notify_change()
/fs/ext2/
Dinode.c1670 int ext2_setattr(struct dentry *dentry, struct iattr *iattr) in ext2_setattr() argument
1675 error = setattr_prepare(dentry, iattr); in ext2_setattr()
1679 if (is_quota_modification(inode, iattr)) { in ext2_setattr()
1684 if ((iattr->ia_valid & ATTR_UID && !uid_eq(iattr->ia_uid, inode->i_uid)) || in ext2_setattr()
1685 (iattr->ia_valid & ATTR_GID && !gid_eq(iattr->ia_gid, inode->i_gid))) { in ext2_setattr()
1686 error = dquot_transfer(inode, iattr); in ext2_setattr()
1690 if (iattr->ia_valid & ATTR_SIZE && iattr->ia_size != inode->i_size) { in ext2_setattr()
1691 error = ext2_setsize(inode, iattr->ia_size); in ext2_setattr()
1695 setattr_copy(inode, iattr); in ext2_setattr()
1696 if (iattr->ia_valid & ATTR_MODE) in ext2_setattr()

123456