Home
last modified time | relevance | path

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

/linux-4.19.296/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()
547 struct iattr newattrs; in chmod_common() local
558 newattrs.ia_mode = (mode & S_IALLUGO) | (inode->i_mode & ~S_IALLUGO); in chmod_common()
559 newattrs.ia_valid = ATTR_MODE | ATTR_CTIME; in chmod_common()
[all …]
Dinode.c1806 struct iattr newattrs; in __remove_privs() local
1808 newattrs.ia_valid = ATTR_FORCE | kill; in __remove_privs()
1813 return notify_change(dentry, &newattrs, NULL); in __remove_privs()
/linux-4.19.296/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-4.19.296/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-4.19.296/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-4.19.296/fs/sysfs/
Dfile.c396 struct iattr newattrs; in sysfs_chmod_file() local
403 newattrs.ia_mode = (mode & S_IALLUGO) | (kn->mode & ~S_IALLUGO); in sysfs_chmod_file()
404 newattrs.ia_valid = ATTR_MODE; in sysfs_chmod_file()
406 rc = kernfs_setattr(kn, &newattrs); in sysfs_chmod_file()
/linux-4.19.296/fs/reiserfs/
Dxattr.c589 struct iattr newattrs = { in reiserfs_xattr_set_handle() local
598 err = reiserfs_setattr(dentry, &newattrs); in reiserfs_xattr_set_handle()