Searched refs:newattrs (Results 1 – 8 of 8) sorted by relevance
/fs/ |
D | utimes.c | 51 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 …]
|
D | open.c | 41 struct iattr newattrs; in do_truncate2() local 47 newattrs.ia_size = length; in do_truncate2() 48 newattrs.ia_valid = ATTR_SIZE | time_attrs; in do_truncate2() 50 newattrs.ia_file = filp; in do_truncate2() 51 newattrs.ia_valid |= ATTR_FILE; in do_truncate2() 59 newattrs.ia_valid |= ret | ATTR_FORCE; in do_truncate2() 63 ret = notify_change2(mnt, dentry, &newattrs, NULL); in do_truncate2() 550 struct iattr newattrs; in chmod_common() local 561 newattrs.ia_mode = (mode & S_IALLUGO) | (inode->i_mode & ~S_IALLUGO); in chmod_common() 562 newattrs.ia_valid = ATTR_MODE | ATTR_CTIME; in chmod_common() [all …]
|
D | inode.c | 1807 struct iattr newattrs; in __remove_privs() local 1809 newattrs.ia_valid = ATTR_FORCE | kill; in __remove_privs() 1814 return notify_change2(mnt, dentry, &newattrs, NULL); in __remove_privs()
|
/fs/ceph/ |
D | acl.c | 91 struct iattr newattrs; in ceph_set_acl() local 134 newattrs.ia_ctime = current_time(inode); in ceph_set_acl() 135 newattrs.ia_mode = new_mode; in ceph_set_acl() 136 newattrs.ia_valid = ATTR_MODE; in ceph_set_acl() 137 ret = __ceph_setattr(inode, &newattrs); in ceph_set_acl() 145 newattrs.ia_mode = old_mode; in ceph_set_acl() 146 newattrs.ia_valid = ATTR_MODE; in ceph_set_acl() 147 __ceph_setattr(inode, &newattrs); in ceph_set_acl()
|
/fs/sdcardfs/ |
D | derived_perm.c | 179 struct iattr newattrs; in fixup_lower_ownership() local 247 newattrs.ia_valid = ATTR_GID | ATTR_UID | ATTR_FORCE; in fixup_lower_ownership() 248 newattrs.ia_uid = make_kuid(current_user_ns(), uid); in fixup_lower_ownership() 249 newattrs.ia_gid = make_kgid(current_user_ns(), gid); in fixup_lower_ownership() 251 newattrs.ia_valid |= in fixup_lower_ownership() 254 error = security_path_chown(&path, newattrs.ia_uid, newattrs.ia_gid); in fixup_lower_ownership() 256 error = notify_change2(path.mnt, path.dentry, &newattrs, &delegated_inode); in fixup_lower_ownership()
|
/fs/cachefiles/ |
D | interface.c | 419 struct iattr newattrs; in cachefiles_attr_changed() local 455 newattrs.ia_valid = ATTR_SIZE; in cachefiles_attr_changed() 456 newattrs.ia_size = oi_size & PAGE_MASK; in cachefiles_attr_changed() 457 ret = notify_change(object->backer, &newattrs, NULL); in cachefiles_attr_changed() 462 newattrs.ia_valid = ATTR_SIZE; in cachefiles_attr_changed() 463 newattrs.ia_size = ni_size; in cachefiles_attr_changed() 464 ret = notify_change(object->backer, &newattrs, NULL); in cachefiles_attr_changed()
|
/fs/sysfs/ |
D | file.c | 393 struct iattr newattrs; in sysfs_chmod_file() local 400 newattrs.ia_mode = (mode & S_IALLUGO) | (kn->mode & ~S_IALLUGO); in sysfs_chmod_file() 401 newattrs.ia_valid = ATTR_MODE; in sysfs_chmod_file() 403 rc = kernfs_setattr(kn, &newattrs); in sysfs_chmod_file()
|
/fs/reiserfs/ |
D | xattr.c | 589 struct iattr newattrs = { in reiserfs_xattr_set_handle() local 598 err = reiserfs_setattr(dentry, &newattrs); in reiserfs_xattr_set_handle()
|