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

/linux-4.4.14/fs/
H A Dutimes.c54 struct iattr newattrs; utimes_common() local
66 newattrs.ia_valid = ATTR_CTIME | ATTR_MTIME | ATTR_ATIME; utimes_common()
69 newattrs.ia_valid &= ~ATTR_ATIME; utimes_common()
71 newattrs.ia_atime.tv_sec = times[0].tv_sec; utimes_common()
72 newattrs.ia_atime.tv_nsec = times[0].tv_nsec; utimes_common()
73 newattrs.ia_valid |= ATTR_ATIME_SET; utimes_common()
77 newattrs.ia_valid &= ~ATTR_MTIME; utimes_common()
79 newattrs.ia_mtime.tv_sec = times[1].tv_sec; utimes_common()
80 newattrs.ia_mtime.tv_nsec = times[1].tv_nsec; utimes_common()
81 newattrs.ia_valid |= ATTR_MTIME_SET; utimes_common()
88 newattrs.ia_valid |= ATTR_TIMES_SET; utimes_common()
107 error = notify_change(path->dentry, &newattrs, &delegated_inode); utimes_common()
H A Dopen.c41 struct iattr newattrs; do_truncate() local
47 newattrs.ia_size = length; do_truncate()
48 newattrs.ia_valid = ATTR_SIZE | time_attrs; do_truncate()
50 newattrs.ia_file = filp; do_truncate()
51 newattrs.ia_valid |= ATTR_FILE; do_truncate()
59 newattrs.ia_valid |= ret | ATTR_FORCE; do_truncate()
63 ret = notify_change(dentry, &newattrs, NULL); do_truncate()
506 struct iattr newattrs; chmod_common() local
517 newattrs.ia_mode = (mode & S_IALLUGO) | (inode->i_mode & ~S_IALLUGO); chmod_common()
518 newattrs.ia_valid = ATTR_MODE | ATTR_CTIME; chmod_common()
519 error = notify_change(path->dentry, &newattrs, &delegated_inode); chmod_common()
572 struct iattr newattrs; chown_common() local
580 newattrs.ia_valid = ATTR_CTIME; chown_common()
584 newattrs.ia_valid |= ATTR_UID; chown_common()
585 newattrs.ia_uid = uid; chown_common()
590 newattrs.ia_valid |= ATTR_GID; chown_common()
591 newattrs.ia_gid = gid; chown_common()
594 newattrs.ia_valid |= chown_common()
599 error = notify_change(path->dentry, &newattrs, &delegated_inode); chown_common()
H A Dinode.c1720 struct iattr newattrs; __remove_privs() local
1722 newattrs.ia_valid = ATTR_FORCE | kill; __remove_privs()
1727 return notify_change(dentry, &newattrs, NULL); __remove_privs()
/linux-4.4.14/fs/ceph/
H A Dacl.c89 struct iattr newattrs; ceph_set_acl() local
131 newattrs.ia_mode = new_mode; ceph_set_acl()
132 newattrs.ia_valid = ATTR_MODE; ceph_set_acl()
133 ret = ceph_setattr(dentry, &newattrs); ceph_set_acl()
141 newattrs.ia_mode = old_mode; ceph_set_acl()
142 newattrs.ia_valid = ATTR_MODE; ceph_set_acl()
143 ceph_setattr(dentry, &newattrs); ceph_set_acl()
/linux-4.4.14/drivers/base/
H A Ddevtmpfs.c212 struct iattr newattrs; handle_create() local
214 newattrs.ia_mode = mode; handle_create()
215 newattrs.ia_uid = uid; handle_create()
216 newattrs.ia_gid = gid; handle_create()
217 newattrs.ia_valid = ATTR_MODE|ATTR_UID|ATTR_GID; handle_create()
219 notify_change(dentry, &newattrs, NULL); handle_create()
314 struct iattr newattrs; handle_remove() local
319 newattrs.ia_uid = GLOBAL_ROOT_UID; handle_remove()
320 newattrs.ia_gid = GLOBAL_ROOT_GID; handle_remove()
321 newattrs.ia_mode = stat.mode & ~0777; handle_remove()
322 newattrs.ia_valid = handle_remove()
325 notify_change(dentry, &newattrs, NULL); handle_remove()
/linux-4.4.14/fs/cachefiles/
H A Dinterface.c420 struct iattr newattrs; cachefiles_attr_changed() local
456 newattrs.ia_valid = ATTR_SIZE; cachefiles_attr_changed()
457 newattrs.ia_size = oi_size & PAGE_MASK; cachefiles_attr_changed()
458 ret = notify_change(object->backer, &newattrs, NULL); cachefiles_attr_changed()
463 newattrs.ia_valid = ATTR_SIZE; cachefiles_attr_changed()
464 newattrs.ia_size = ni_size; cachefiles_attr_changed()
465 ret = notify_change(object->backer, &newattrs, NULL); cachefiles_attr_changed()
/linux-4.4.14/fs/sysfs/
H A Dfile.c385 struct iattr newattrs; sysfs_chmod_file() local
392 newattrs.ia_mode = (mode & S_IALLUGO) | (kn->mode & ~S_IALLUGO); sysfs_chmod_file()
393 newattrs.ia_valid = ATTR_MODE; sysfs_chmod_file()
395 rc = kernfs_setattr(kn, &newattrs); sysfs_chmod_file()
/linux-4.4.14/fs/reiserfs/
H A Dxattr.c577 struct iattr newattrs = { reiserfs_xattr_set_handle() local
586 err = reiserfs_setattr(dentry, &newattrs); reiserfs_xattr_set_handle()

Completed in 265 milliseconds