Searched refs:newattrs (Results 1 – 8 of 8) sorted by relevance
/fs/ |
D | utimes.c | 54 struct iattr newattrs; in utimes_common() local 65 newattrs.ia_valid = ATTR_CTIME | ATTR_MTIME | ATTR_ATIME; in utimes_common() 68 newattrs.ia_valid &= ~ATTR_ATIME; in utimes_common() 70 newattrs.ia_atime.tv_sec = times[0].tv_sec; in utimes_common() 71 newattrs.ia_atime.tv_nsec = times[0].tv_nsec; in utimes_common() 72 newattrs.ia_valid |= ATTR_ATIME_SET; in utimes_common() 76 newattrs.ia_valid &= ~ATTR_MTIME; in utimes_common() 78 newattrs.ia_mtime.tv_sec = times[1].tv_sec; in utimes_common() 79 newattrs.ia_mtime.tv_nsec = times[1].tv_nsec; in utimes_common() 80 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() 57 newattrs.ia_valid |= ret | ATTR_FORCE; in do_truncate2() 60 ret = notify_change2(mnt, dentry, &newattrs); in do_truncate2() 480 struct iattr newattrs; in chmod_common() local 490 newattrs.ia_mode = (mode & S_IALLUGO) | (inode->i_mode & ~S_IALLUGO); in chmod_common() 491 newattrs.ia_valid = ATTR_MODE | ATTR_CTIME; in chmod_common() [all …]
|
D | inode.c | 1639 struct iattr newattrs; in __remove_suid() local 1641 newattrs.ia_valid = ATTR_FORCE | kill; in __remove_suid() 1642 return notify_change2(mnt, dentry, &newattrs); in __remove_suid()
|
/fs/sdcardfs/ |
D | derived_perm.c | 176 struct iattr newattrs; in fixup_lower_ownership() local 243 newattrs.ia_valid = ATTR_GID | ATTR_UID | ATTR_FORCE; in fixup_lower_ownership() 244 newattrs.ia_uid = make_kuid(current_user_ns(), uid); in fixup_lower_ownership() 245 newattrs.ia_gid = make_kgid(current_user_ns(), gid); in fixup_lower_ownership() 247 newattrs.ia_valid |= in fixup_lower_ownership() 250 error = security_path_chown(&path, newattrs.ia_uid, newattrs.ia_gid); in fixup_lower_ownership() 252 error = notify_change2(path.mnt, path.dentry, &newattrs); in fixup_lower_ownership()
|
/fs/cachefiles/ |
D | interface.c | 382 struct iattr newattrs; in cachefiles_attr_changed() local 418 newattrs.ia_valid = ATTR_SIZE; in cachefiles_attr_changed() 419 newattrs.ia_size = oi_size & PAGE_MASK; in cachefiles_attr_changed() 420 ret = notify_change(object->backer, &newattrs); in cachefiles_attr_changed() 425 newattrs.ia_valid = ATTR_SIZE; in cachefiles_attr_changed() 426 newattrs.ia_size = ni_size; in cachefiles_attr_changed() 427 ret = notify_change(object->backer, &newattrs); in cachefiles_attr_changed()
|
/fs/sysfs/ |
D | file.c | 630 struct iattr newattrs; in sysfs_chmod_file() local 645 newattrs.ia_mode = (mode & S_IALLUGO) | (sd->s_mode & ~S_IALLUGO); in sysfs_chmod_file() 646 newattrs.ia_valid = ATTR_MODE; in sysfs_chmod_file() 647 rc = sysfs_sd_setattr(sd, &newattrs); in sysfs_chmod_file()
|
/fs/hpfs/ |
D | namei.c | 406 struct iattr newattrs; in hpfs_unlink() local 408 newattrs.ia_size = 0; in hpfs_unlink() 409 newattrs.ia_valid = ATTR_SIZE | ATTR_CTIME; in hpfs_unlink() 410 err = notify_change(dentry, &newattrs); in hpfs_unlink()
|
/fs/reiserfs/ |
D | xattr.c | 562 struct iattr newattrs = { in reiserfs_xattr_set_handle() local 573 err = reiserfs_setattr(dentry, &newattrs); in reiserfs_xattr_set_handle()
|