Home
last modified time | relevance | path

Searched refs:newattrs (Results 1 – 9 of 9) sorted by relevance

/Linux-v4.19/fs/
Dutimes.c51 struct iattr newattrs; in utimes_common() local
63 newattrs.ia_valid = ATTR_CTIME | ATTR_MTIME | ATTR_ATIME; in utimes_common()
66 newattrs.ia_valid &= ~ATTR_ATIME; in utimes_common()
68 newattrs.ia_atime.tv_sec = times[0].tv_sec; in utimes_common()
69 newattrs.ia_atime.tv_nsec = times[0].tv_nsec; in utimes_common()
70 newattrs.ia_valid |= ATTR_ATIME_SET; in utimes_common()
74 newattrs.ia_valid &= ~ATTR_MTIME; in utimes_common()
76 newattrs.ia_mtime.tv_sec = times[1].tv_sec; in utimes_common()
77 newattrs.ia_mtime.tv_nsec = times[1].tv_nsec; in utimes_common()
78 newattrs.ia_valid |= ATTR_MTIME_SET; in utimes_common()
[all …]
Dopen.c41 struct iattr newattrs; in do_truncate() local
47 newattrs.ia_size = length; in do_truncate()
48 newattrs.ia_valid = ATTR_SIZE | time_attrs; in do_truncate()
50 newattrs.ia_file = filp; in do_truncate()
51 newattrs.ia_valid |= ATTR_FILE; in do_truncate()
59 newattrs.ia_valid |= ret | ATTR_FORCE; in do_truncate()
63 ret = notify_change(dentry, &newattrs, NULL); in do_truncate()
528 struct iattr newattrs; in chmod_common() local
539 newattrs.ia_mode = (mode & S_IALLUGO) | (inode->i_mode & ~S_IALLUGO); in chmod_common()
540 newattrs.ia_valid = ATTR_MODE | ATTR_CTIME; in chmod_common()
[all …]
Dinode.c1799 struct iattr newattrs; in __remove_privs() local
1801 newattrs.ia_valid = ATTR_FORCE | kill; in __remove_privs()
1806 return notify_change(dentry, &newattrs, NULL); in __remove_privs()
/Linux-v4.19/drivers/base/
Ddevtmpfs.c213 struct iattr newattrs; in handle_create() local
215 newattrs.ia_mode = mode; in handle_create()
216 newattrs.ia_uid = uid; in handle_create()
217 newattrs.ia_gid = gid; in handle_create()
218 newattrs.ia_valid = ATTR_MODE|ATTR_UID|ATTR_GID; in handle_create()
220 notify_change(dentry, &newattrs, NULL); in handle_create()
316 struct iattr newattrs; in handle_remove() local
321 newattrs.ia_uid = GLOBAL_ROOT_UID; in handle_remove()
322 newattrs.ia_gid = GLOBAL_ROOT_GID; in handle_remove()
323 newattrs.ia_mode = stat.mode & ~0777; in handle_remove()
[all …]
/Linux-v4.19/fs/ceph/
Dacl.c103 struct iattr newattrs; in ceph_set_acl() local
147 newattrs.ia_ctime = current_time(inode); in ceph_set_acl()
148 newattrs.ia_mode = new_mode; in ceph_set_acl()
149 newattrs.ia_valid = ATTR_MODE | ATTR_CTIME; in ceph_set_acl()
150 ret = __ceph_setattr(inode, &newattrs); in ceph_set_acl()
158 newattrs.ia_ctime = old_ctime; in ceph_set_acl()
159 newattrs.ia_mode = old_mode; in ceph_set_acl()
160 newattrs.ia_valid = ATTR_MODE | ATTR_CTIME; in ceph_set_acl()
161 __ceph_setattr(inode, &newattrs); in ceph_set_acl()
/Linux-v4.19/security/integrity/evm/
Devm_secfs.c183 struct iattr newattrs; in evm_write_xattrs() local
219 newattrs.ia_mode = S_IFREG | 0440; in evm_write_xattrs()
220 newattrs.ia_valid = ATTR_MODE; in evm_write_xattrs()
223 err = simple_setattr(evm_xattrs, &newattrs); in evm_write_xattrs()
/Linux-v4.19/fs/cachefiles/
Dinterface.c439 struct iattr newattrs; in cachefiles_attr_changed() local
475 newattrs.ia_valid = ATTR_SIZE; in cachefiles_attr_changed()
476 newattrs.ia_size = oi_size & PAGE_MASK; in cachefiles_attr_changed()
477 ret = notify_change(object->backer, &newattrs, NULL); in cachefiles_attr_changed()
482 newattrs.ia_valid = ATTR_SIZE; in cachefiles_attr_changed()
483 newattrs.ia_size = ni_size; in cachefiles_attr_changed()
484 ret = notify_change(object->backer, &newattrs, NULL); in cachefiles_attr_changed()
/Linux-v4.19/fs/sysfs/
Dfile.c395 struct iattr newattrs; in sysfs_chmod_file() local
402 newattrs.ia_mode = (mode & S_IALLUGO) | (kn->mode & ~S_IALLUGO); in sysfs_chmod_file()
403 newattrs.ia_valid = ATTR_MODE; in sysfs_chmod_file()
405 rc = kernfs_setattr(kn, &newattrs); in sysfs_chmod_file()
/Linux-v4.19/fs/reiserfs/
Dxattr.c578 struct iattr newattrs = { in reiserfs_xattr_set_handle() local
587 err = reiserfs_setattr(dentry, &newattrs); in reiserfs_xattr_set_handle()