/linux-6.12.1/fs/ |
D | attr.c | 165 unsigned int ia_valid = attr->ia_valid; in setattr_prepare() local 171 if (ia_valid & ATTR_SIZE) { in setattr_prepare() 178 if (ia_valid & ATTR_FORCE) in setattr_prepare() 182 if ((ia_valid & ATTR_UID) && in setattr_prepare() 187 if ((ia_valid & ATTR_GID) && in setattr_prepare() 192 if (ia_valid & ATTR_MODE) { in setattr_prepare() 198 if (ia_valid & ATTR_GID) in setattr_prepare() 209 if (ia_valid & (ATTR_MTIME_SET | ATTR_ATIME_SET | ATTR_TIMES_SET)) { in setattr_prepare() 216 if (ia_valid & ATTR_KILL_PRIV) { in setattr_prepare() 302 unsigned int ia_valid = attr->ia_valid; in setattr_copy() local [all …]
|
D | utimes.c | 40 newattrs.ia_valid = ATTR_CTIME | ATTR_MTIME | ATTR_ATIME; in vfs_utimes() 43 newattrs.ia_valid &= ~ATTR_ATIME; in vfs_utimes() 46 newattrs.ia_valid |= ATTR_ATIME_SET; in vfs_utimes() 50 newattrs.ia_valid &= ~ATTR_MTIME; in vfs_utimes() 53 newattrs.ia_valid |= ATTR_MTIME_SET; in vfs_utimes() 60 newattrs.ia_valid |= ATTR_TIMES_SET; in vfs_utimes() 62 newattrs.ia_valid |= ATTR_TOUCH; in vfs_utimes()
|
/linux-6.12.1/fs/fat/ |
D | file.c | 66 ia.ia_valid = ATTR_MODE | ATTR_CTIME; in fat_ioctl_set_attributes() 103 fsnotify_change(file->f_path.dentry, ia.ia_valid); in fat_ioctl_set_attributes() 485 unsigned int ia_valid; in fat_setattr() local 489 ia_valid = attr->ia_valid; in fat_setattr() 490 if (ia_valid & TIMES_SET_FLAGS) { in fat_setattr() 492 attr->ia_valid &= ~TIMES_SET_FLAGS; in fat_setattr() 496 attr->ia_valid = ia_valid; in fat_setattr() 509 if (attr->ia_valid & ATTR_SIZE) { in fat_setattr() 514 if (error || attr->ia_valid == ATTR_SIZE) in fat_setattr() 516 attr->ia_valid &= ~ATTR_SIZE; in fat_setattr() [all …]
|
/linux-6.12.1/fs/exfat/ |
D | file.c | 287 unsigned int ia_valid; in exfat_setattr() local 293 if ((attr->ia_valid & ATTR_SIZE) && in exfat_setattr() 296 if (error || attr->ia_valid == ATTR_SIZE) in exfat_setattr() 298 attr->ia_valid &= ~ATTR_SIZE; in exfat_setattr() 302 ia_valid = attr->ia_valid; in exfat_setattr() 303 if ((ia_valid & (ATTR_MTIME_SET | ATTR_ATIME_SET | ATTR_TIMES_SET)) && in exfat_setattr() 305 attr->ia_valid &= ~(ATTR_MTIME_SET | ATTR_ATIME_SET | in exfat_setattr() 310 attr->ia_valid = ia_valid; in exfat_setattr() 314 if (((attr->ia_valid & ATTR_UID) && in exfat_setattr() 317 ((attr->ia_valid & ATTR_GID) && in exfat_setattr() [all …]
|
/linux-6.12.1/fs/configfs/ |
D | inode.c | 41 unsigned int ia_valid = iattr->ia_valid; in configfs_setattr() local 67 if (ia_valid & ATTR_UID) in configfs_setattr() 69 if (ia_valid & ATTR_GID) in configfs_setattr() 71 if (ia_valid & ATTR_ATIME) in configfs_setattr() 73 if (ia_valid & ATTR_MTIME) in configfs_setattr() 75 if (ia_valid & ATTR_CTIME) in configfs_setattr() 77 if (ia_valid & ATTR_MODE) { in configfs_setattr()
|
/linux-6.12.1/fs/adfs/ |
D | inode.c | 306 unsigned int ia_valid = attr->ia_valid; in adfs_notify_change() local 315 if ((ia_valid & ATTR_UID && !uid_eq(attr->ia_uid, ADFS_SB(sb)->s_uid)) || in adfs_notify_change() 316 (ia_valid & ATTR_GID && !gid_eq(attr->ia_gid, ADFS_SB(sb)->s_gid))) in adfs_notify_change() 323 if (ia_valid & ATTR_SIZE) in adfs_notify_change() 326 if (ia_valid & ATTR_MTIME && adfs_inode_is_stamped(inode)) { in adfs_notify_change() 336 if (ia_valid & ATTR_ATIME) in adfs_notify_change() 338 if (ia_valid & ATTR_CTIME) in adfs_notify_change() 340 if (ia_valid & ATTR_MODE) { in adfs_notify_change() 349 if (ia_valid & (ATTR_SIZE | ATTR_MTIME | ATTR_MODE)) in adfs_notify_change()
|
/linux-6.12.1/fs/hostfs/ |
D | hostfs_kern.c | 822 attr->ia_valid &= ~ATTR_SIZE; in hostfs_setattr() 824 attrs.ia_valid = 0; in hostfs_setattr() 825 if (attr->ia_valid & ATTR_MODE) { in hostfs_setattr() 826 attrs.ia_valid |= HOSTFS_ATTR_MODE; in hostfs_setattr() 829 if (attr->ia_valid & ATTR_UID) { in hostfs_setattr() 830 attrs.ia_valid |= HOSTFS_ATTR_UID; in hostfs_setattr() 833 if (attr->ia_valid & ATTR_GID) { in hostfs_setattr() 834 attrs.ia_valid |= HOSTFS_ATTR_GID; in hostfs_setattr() 837 if (attr->ia_valid & ATTR_SIZE) { in hostfs_setattr() 838 attrs.ia_valid |= HOSTFS_ATTR_SIZE; in hostfs_setattr() [all …]
|
D | hostfs_user.c | 202 if (attrs->ia_valid & HOSTFS_ATTR_MODE) { in set_attr() 210 if (attrs->ia_valid & HOSTFS_ATTR_UID) { in set_attr() 218 if (attrs->ia_valid & HOSTFS_ATTR_GID) { in set_attr() 226 if (attrs->ia_valid & HOSTFS_ATTR_SIZE) { in set_attr() 241 if (attrs->ia_valid & ma) { in set_attr() 251 if (attrs->ia_valid & HOSTFS_ATTR_ATIME_SET) { in set_attr() 255 if (attrs->ia_valid & HOSTFS_ATTR_MTIME_SET) { in set_attr() 269 if (attrs->ia_valid & (HOSTFS_ATTR_ATIME | HOSTFS_ATTR_MTIME)) { in set_attr()
|
/linux-6.12.1/include/linux/ |
D | fsnotify.h | 427 static inline void fsnotify_change(struct dentry *dentry, unsigned int ia_valid) in fsnotify_change() argument 431 if (ia_valid & ATTR_UID) in fsnotify_change() 433 if (ia_valid & ATTR_GID) in fsnotify_change() 435 if (ia_valid & ATTR_SIZE) in fsnotify_change() 439 if ((ia_valid & (ATTR_ATIME | ATTR_MTIME)) == (ATTR_ATIME | ATTR_MTIME)) in fsnotify_change() 441 else if (ia_valid & ATTR_ATIME) in fsnotify_change() 443 else if (ia_valid & ATTR_MTIME) in fsnotify_change() 446 if (ia_valid & ATTR_MODE) in fsnotify_change()
|
/linux-6.12.1/fs/ramfs/ |
D | file-nommu.c | 165 unsigned int old_ia_valid = ia->ia_valid; in ramfs_nommu_setattr() 174 if (ia->ia_valid & ATTR_SIZE) { in ramfs_nommu_setattr() 179 if (ret < 0 || ia->ia_valid == ATTR_SIZE) in ramfs_nommu_setattr() 185 ia->ia_valid |= ATTR_MTIME|ATTR_CTIME; in ramfs_nommu_setattr() 191 ia->ia_valid = old_ia_valid; in ramfs_nommu_setattr()
|
/linux-6.12.1/fs/kernfs/ |
D | inode.c | 71 unsigned int ia_valid = iattr->ia_valid; in __kernfs_setattr() local 77 if (ia_valid & ATTR_UID) in __kernfs_setattr() 79 if (ia_valid & ATTR_GID) in __kernfs_setattr() 81 if (ia_valid & ATTR_ATIME) in __kernfs_setattr() 83 if (ia_valid & ATTR_MTIME) in __kernfs_setattr() 85 if (ia_valid & ATTR_CTIME) in __kernfs_setattr() 87 if (ia_valid & ATTR_MODE) in __kernfs_setattr()
|
/linux-6.12.1/fs/jfs/ |
D | file.c | 103 if ((iattr->ia_valid & ATTR_UID && !uid_eq(iattr->ia_uid, inode->i_uid)) || in jfs_setattr() 104 (iattr->ia_valid & ATTR_GID && !gid_eq(iattr->ia_gid, inode->i_gid))) { in jfs_setattr() 110 if ((iattr->ia_valid & ATTR_SIZE) && in jfs_setattr() 125 if (iattr->ia_valid & ATTR_MODE) in jfs_setattr()
|
/linux-6.12.1/fs/nfsd/ |
D | nfsproc.c | 87 argp->attrs.ia_valid, (long) argp->attrs.ia_size); in nfsd_proc_setattr() 104 if ((iap->ia_valid & BOTH_TIME_SET) == BOTH_TIME_SET && in nfsd_proc_setattr() 128 iap->ia_valid &= ~BOTH_TIME_SET; in nfsd_proc_setattr() 343 if (attr->ia_valid & ATTR_MODE) { in nfsd_proc_create() 356 attr->ia_valid |= ATTR_SIZE; in nfsd_proc_create() 384 attr->ia_valid |= ATTR_MODE; in nfsd_proc_create() 393 } else if (type == S_IFCHR && !(attr->ia_valid & ATTR_SIZE)) { in nfsd_proc_create() 403 attr->ia_valid &= ~ATTR_SIZE; in nfsd_proc_create() 418 argp->name, attr->ia_valid, (long) attr->ia_size); in nfsd_proc_create() 423 attr->ia_valid &= ATTR_SIZE; in nfsd_proc_create() [all …]
|
D | nfsxdr.c | 140 iap->ia_valid = 0; in svcxdr_decode_sattr() 148 iap->ia_valid |= ATTR_MODE; in svcxdr_decode_sattr() 156 iap->ia_valid |= ATTR_UID; in svcxdr_decode_sattr() 163 iap->ia_valid |= ATTR_GID; in svcxdr_decode_sattr() 168 iap->ia_valid |= ATTR_SIZE; in svcxdr_decode_sattr() 175 iap->ia_valid |= ATTR_ATIME | ATTR_ATIME_SET; in svcxdr_decode_sattr() 183 iap->ia_valid |= ATTR_MTIME | ATTR_MTIME_SET; in svcxdr_decode_sattr() 196 iap->ia_valid &= ~(ATTR_ATIME_SET|ATTR_MTIME_SET); in svcxdr_decode_sattr()
|
D | vfs.c | 390 iap->ia_valid &= ~ATTR_MODE; in nfsd_sanitize_attrs() 393 if (iap->ia_valid & ATTR_MODE) { in nfsd_sanitize_attrs() 400 ((iap->ia_valid & ATTR_UID) || (iap->ia_valid & ATTR_GID))) { in nfsd_sanitize_attrs() 401 iap->ia_valid |= ATTR_KILL_PRIV; in nfsd_sanitize_attrs() 402 if (iap->ia_valid & ATTR_MODE) { in nfsd_sanitize_attrs() 409 iap->ia_valid |= ATTR_KILL_SUID; in nfsd_sanitize_attrs() 410 iap->ia_valid |= in nfsd_sanitize_attrs() 438 if (iap->ia_valid & ATTR_SIZE) { in __nfsd_setattr() 447 .ia_valid = ATTR_SIZE | ATTR_CTIME | ATTR_MTIME, in __nfsd_setattr() 457 iap->ia_valid &= ~ATTR_SIZE; in __nfsd_setattr() [all …]
|
/linux-6.12.1/fs/udf/ |
D | file.c | 224 if ((attr->ia_valid & ATTR_UID) && in udf_setattr() 228 if ((attr->ia_valid & ATTR_GID) && in udf_setattr() 233 if ((attr->ia_valid & ATTR_SIZE) && in udf_setattr() 242 if (attr->ia_valid & ATTR_MODE) in udf_setattr()
|
/linux-6.12.1/fs/smb/client/ |
D | inode.c | 1624 if (attrs->ia_valid & ATTR_ATIME) { in cifs_set_file_info() 1631 if (attrs->ia_valid & ATTR_MTIME) { in cifs_set_file_info() 1644 if (set_time && (attrs->ia_valid & ATTR_CTIME)) { in cifs_set_file_info() 2890 attrs->ia_valid |= ATTR_CTIME | ATTR_MTIME; 2915 direntry, attrs->ia_valid); 2920 attrs->ia_valid |= ATTR_FORCE; 2952 if (attrs->ia_valid & ATTR_SIZE) { 2959 if (attrs->ia_valid & (ATTR_KILL_SUID|ATTR_KILL_SGID)) 2960 attrs->ia_valid &= ~ATTR_MODE; 2969 if (attrs->ia_valid & ATTR_MODE) [all …]
|
/linux-6.12.1/fs/9p/ |
D | vfs_inode_dotl.c | 538 p9attr.valid = v9fs_mapped_iattr_valid(iattr->ia_valid); in v9fs_vfs_setattr_dotl() 539 if (iattr->ia_valid & ATTR_MODE) in v9fs_vfs_setattr_dotl() 541 if (iattr->ia_valid & ATTR_UID) in v9fs_vfs_setattr_dotl() 543 if (iattr->ia_valid & ATTR_GID) in v9fs_vfs_setattr_dotl() 545 if (iattr->ia_valid & ATTR_SIZE) in v9fs_vfs_setattr_dotl() 547 if (iattr->ia_valid & ATTR_ATIME_SET) { in v9fs_vfs_setattr_dotl() 551 if (iattr->ia_valid & ATTR_MTIME_SET) { in v9fs_vfs_setattr_dotl() 556 if (iattr->ia_valid & ATTR_FILE) { in v9fs_vfs_setattr_dotl() 582 if ((iattr->ia_valid & ATTR_SIZE) && iattr->ia_size != in v9fs_vfs_setattr_dotl() 597 if (iattr->ia_valid & ATTR_MODE) { in v9fs_vfs_setattr_dotl()
|
/linux-6.12.1/fs/ecryptfs/ |
D | inode.c | 747 lower_ia->ia_valid &= ~ATTR_SIZE; in truncate_upper() 758 lower_ia->ia_valid &= ~ATTR_SIZE; in truncate_upper() 776 lower_ia->ia_valid |= ATTR_SIZE; in truncate_upper() 813 lower_ia->ia_valid |= ATTR_SIZE; in truncate_upper() 815 lower_ia->ia_valid &= ~ATTR_SIZE; in truncate_upper() 856 struct iattr ia = { .ia_valid = ATTR_SIZE, .ia_size = new_length }; in ecryptfs_truncate() 857 struct iattr lower_ia = { .ia_valid = 0 }; in ecryptfs_truncate() 865 if (!rc && lower_ia.ia_valid & ATTR_SIZE) { in ecryptfs_truncate() 955 if (ia->ia_valid & ATTR_SIZE) { in ecryptfs_setattr() 962 if (ia->ia_valid & ATTR_FILE) in ecryptfs_setattr() [all …]
|
/linux-6.12.1/fs/nfs/ |
D | inode.c | 634 static void nfs_update_timestamps(struct inode *inode, unsigned int ia_valid) in nfs_update_timestamps() argument 639 if (ia_valid & ATTR_MTIME) { in nfs_update_timestamps() 643 if (ia_valid & ATTR_ATIME) { in nfs_update_timestamps() 686 if (attr->ia_valid & (ATTR_KILL_SUID | ATTR_KILL_SGID)) in nfs_setattr() 687 attr->ia_valid &= ~ATTR_MODE; in nfs_setattr() 689 if (attr->ia_valid & ATTR_SIZE) { in nfs_setattr() 697 attr->ia_valid &= ~ATTR_SIZE; in nfs_setattr() 700 if (nfs_have_delegated_mtime(inode) && attr->ia_valid & ATTR_MTIME) { in nfs_setattr() 702 nfs_update_timestamps(inode, attr->ia_valid); in nfs_setattr() 704 attr->ia_valid &= ~(ATTR_MTIME | ATTR_ATIME); in nfs_setattr() [all …]
|
/linux-6.12.1/security/integrity/evm/ |
D | evm_main.c | 889 unsigned int ia_valid = attr->ia_valid; in evm_attr_change() local 893 (!(ia_valid & ATTR_MODE) || attr->ia_mode == inode->i_mode)) in evm_attr_change() 911 unsigned int ia_valid = attr->ia_valid; in evm_inode_setattr() local 923 if (!(ia_valid & (ATTR_MODE | ATTR_UID | ATTR_GID))) in evm_inode_setattr() 961 struct dentry *dentry, int ia_valid) in evm_inode_post_setattr() argument 974 if (ia_valid & (ATTR_MODE | ATTR_UID | ATTR_GID)) in evm_inode_post_setattr()
|
/linux-6.12.1/fs/afs/ |
D | inode.c | 687 if (op->setattr.attr->ia_valid & ATTR_SIZE) { in afs_setattr_success() 700 if (op->setattr.attr->ia_valid & ATTR_SIZE) { in afs_setattr_edit_file() 740 attr->ia_valid); in afs_setattr() 742 if (!(attr->ia_valid & supported)) { in afs_setattr() 748 if (attr->ia_valid & ATTR_SIZE) { in afs_setattr() 757 attr->ia_valid &= ~ATTR_SIZE; in afs_setattr() 765 if ((attr->ia_valid & ATTR_SIZE) && S_ISREG(inode->i_mode)) { in afs_setattr() 778 if (!(attr->ia_valid & (supported & ~ATTR_SIZE & ~ATTR_MTIME)) && in afs_setattr() 790 op = afs_alloc_operation(((attr->ia_valid & ATTR_FILE) ? in afs_setattr() 801 if (attr->ia_valid & ATTR_SIZE) { in afs_setattr()
|
/linux-6.12.1/fs/affs/ |
D | inode.c | 222 pr_debug("notify_change(%lu,0x%x)\n", inode->i_ino, attr->ia_valid); in affs_notify_change() 228 if (((attr->ia_valid & ATTR_UID) && in affs_notify_change() 230 ((attr->ia_valid & ATTR_GID) && in affs_notify_change() 232 ((attr->ia_valid & ATTR_MODE) && in affs_notify_change() 240 if ((attr->ia_valid & ATTR_SIZE) && in affs_notify_change() 253 if (attr->ia_valid & ATTR_MODE) in affs_notify_change()
|
/linux-6.12.1/fs/vboxsf/ |
D | utils.c | 276 if (iattr->ia_valid & ATTR_SIZE) in vboxsf_setattr() 289 if (iattr->ia_valid & (ATTR_MODE | ATTR_ATIME | ATTR_MTIME)) { in vboxsf_setattr() 290 if (iattr->ia_valid & ATTR_MODE) { in vboxsf_setattr() 307 if (iattr->ia_valid & ATTR_ATIME) in vboxsf_setattr() 311 if (iattr->ia_valid & ATTR_MTIME) in vboxsf_setattr() 335 if (iattr->ia_valid & ATTR_SIZE) { in vboxsf_setattr()
|
/linux-6.12.1/fs/orangefs/ |
D | namei.c | 86 iattr.ia_valid |= ATTR_MTIME | ATTR_CTIME; in orangefs_create() 209 iattr.ia_valid |= ATTR_MTIME | ATTR_CTIME; in orangefs_unlink() 294 iattr.ia_valid |= ATTR_MTIME | ATTR_CTIME; in orangefs_symlink() 364 iattr.ia_valid |= ATTR_MTIME | ATTR_CTIME; in orangefs_mkdir() 391 iattr.ia_valid |= ATTR_MTIME | ATTR_CTIME; in orangefs_rename()
|