/openbmc/linux/fs/ |
H A D | attr.c | 169 unsigned int ia_valid = attr->ia_valid; in setattr_prepare() local 175 if (ia_valid & ATTR_SIZE) { in setattr_prepare() 182 if (ia_valid & ATTR_FORCE) in setattr_prepare() 186 if ((ia_valid & ATTR_UID) && in setattr_prepare() 191 if ((ia_valid & ATTR_GID) && in setattr_prepare() 196 if (ia_valid & ATTR_MODE) { in setattr_prepare() 202 if (ia_valid & ATTR_GID) in setattr_prepare() 213 if (ia_valid & (ATTR_MTIME_SET | ATTR_ATIME_SET | ATTR_TIMES_SET)) { in setattr_prepare() 220 if (ia_valid & ATTR_KILL_PRIV) { in setattr_prepare() 306 unsigned int ia_valid = attr->ia_valid; in setattr_copy() local [all …]
|
H A 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()
|
/openbmc/linux/fs/exfat/ |
H A D | file.c | 249 unsigned int ia_valid; in exfat_setattr() local 252 if ((attr->ia_valid & ATTR_SIZE) && in exfat_setattr() 255 if (error || attr->ia_valid == ATTR_SIZE) in exfat_setattr() 257 attr->ia_valid &= ~ATTR_SIZE; in exfat_setattr() 261 ia_valid = attr->ia_valid; in exfat_setattr() 262 if ((ia_valid & (ATTR_MTIME_SET | ATTR_ATIME_SET | ATTR_TIMES_SET)) && in exfat_setattr() 264 attr->ia_valid &= ~(ATTR_MTIME_SET | ATTR_ATIME_SET | in exfat_setattr() 269 attr->ia_valid = ia_valid; in exfat_setattr() 273 if (((attr->ia_valid & ATTR_UID) && in exfat_setattr() 275 ((attr->ia_valid & ATTR_GID) && in exfat_setattr() [all …]
|
/openbmc/linux/fs/fat/ |
H A 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 …]
|
/openbmc/linux/fs/configfs/ |
H A 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()
|
/openbmc/linux/fs/adfs/ |
H A D | inode.c | 302 unsigned int ia_valid = attr->ia_valid; in adfs_notify_change() local 311 if ((ia_valid & ATTR_UID && !uid_eq(attr->ia_uid, ADFS_SB(sb)->s_uid)) || in adfs_notify_change() 312 (ia_valid & ATTR_GID && !gid_eq(attr->ia_gid, ADFS_SB(sb)->s_gid))) in adfs_notify_change() 319 if (ia_valid & ATTR_SIZE) in adfs_notify_change() 322 if (ia_valid & ATTR_MTIME && adfs_inode_is_stamped(inode)) { in adfs_notify_change() 331 if (ia_valid & ATTR_ATIME) in adfs_notify_change() 333 if (ia_valid & ATTR_CTIME) in adfs_notify_change() 335 if (ia_valid & ATTR_MODE) { in adfs_notify_change() 344 if (ia_valid & (ATTR_SIZE | ATTR_MTIME | ATTR_MODE)) in adfs_notify_change()
|
/openbmc/linux/include/linux/ |
H A D | fsnotify.h | 364 static inline void fsnotify_change(struct dentry *dentry, unsigned int ia_valid) in fsnotify_change() argument 368 if (ia_valid & ATTR_UID) in fsnotify_change() 370 if (ia_valid & ATTR_GID) in fsnotify_change() 372 if (ia_valid & ATTR_SIZE) in fsnotify_change() 376 if ((ia_valid & (ATTR_ATIME | ATTR_MTIME)) == (ATTR_ATIME | ATTR_MTIME)) in fsnotify_change() 378 else if (ia_valid & ATTR_ATIME) in fsnotify_change() 380 else if (ia_valid & ATTR_MTIME) in fsnotify_change() 383 if (ia_valid & ATTR_MODE) in fsnotify_change()
|
/openbmc/linux/fs/hostfs/ |
H A D | hostfs_kern.c | 818 attr->ia_valid &= ~ATTR_SIZE; in hostfs_setattr() 820 attrs.ia_valid = 0; in hostfs_setattr() 821 if (attr->ia_valid & ATTR_MODE) { in hostfs_setattr() 822 attrs.ia_valid |= HOSTFS_ATTR_MODE; in hostfs_setattr() 825 if (attr->ia_valid & ATTR_UID) { in hostfs_setattr() 826 attrs.ia_valid |= HOSTFS_ATTR_UID; in hostfs_setattr() 829 if (attr->ia_valid & ATTR_GID) { in hostfs_setattr() 830 attrs.ia_valid |= HOSTFS_ATTR_GID; in hostfs_setattr() 833 if (attr->ia_valid & ATTR_SIZE) { in hostfs_setattr() 834 attrs.ia_valid |= HOSTFS_ATTR_SIZE; in hostfs_setattr() [all …]
|
H A 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()
|
/openbmc/linux/fs/ramfs/ |
H A 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()
|
/openbmc/linux/fs/kernfs/ |
H A 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()
|
/openbmc/linux/fs/jfs/ |
H A 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()
|
/openbmc/linux/fs/nfsd/ |
H A D | nfsproc.c | 61 argp->attrs.ia_valid, (long) argp->attrs.ia_size); in nfsd_proc_setattr() 78 if ((iap->ia_valid & BOTH_TIME_SET) == BOTH_TIME_SET && in nfsd_proc_setattr() 102 iap->ia_valid &= ~BOTH_TIME_SET; in nfsd_proc_setattr() 312 if (attr->ia_valid & ATTR_MODE) { in nfsd_proc_create() 325 attr->ia_valid |= ATTR_SIZE; in nfsd_proc_create() 352 attr->ia_valid |= ATTR_MODE; in nfsd_proc_create() 361 } else if (type == S_IFCHR && !(attr->ia_valid & ATTR_SIZE)) { in nfsd_proc_create() 371 attr->ia_valid &= ~ATTR_SIZE; in nfsd_proc_create() 386 argp->name, attr->ia_valid, (long) attr->ia_size); in nfsd_proc_create() 391 attr->ia_valid &= ATTR_SIZE; in nfsd_proc_create() [all …]
|
H A 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()
|
H A D | vfs.c | 373 iap->ia_valid &= ~ATTR_MODE; in nfsd_sanitize_attrs() 376 if (iap->ia_valid & ATTR_MODE) { in nfsd_sanitize_attrs() 383 ((iap->ia_valid & ATTR_UID) || (iap->ia_valid & ATTR_GID))) { in nfsd_sanitize_attrs() 384 iap->ia_valid |= ATTR_KILL_PRIV; in nfsd_sanitize_attrs() 385 if (iap->ia_valid & ATTR_MODE) { in nfsd_sanitize_attrs() 392 iap->ia_valid |= ATTR_KILL_SUID; in nfsd_sanitize_attrs() 393 iap->ia_valid |= in nfsd_sanitize_attrs() 420 if (iap->ia_valid & ATTR_SIZE) { in __nfsd_setattr() 429 .ia_valid = ATTR_SIZE | ATTR_CTIME | ATTR_MTIME, in __nfsd_setattr() 439 iap->ia_valid &= ~ATTR_SIZE; in __nfsd_setattr() [all …]
|
/openbmc/linux/security/integrity/evm/ |
H A D | evm_main.c | 787 unsigned int ia_valid = attr->ia_valid; in evm_attr_change() local 791 (!(ia_valid & ATTR_MODE) || attr->ia_mode == inode->i_mode)) in evm_attr_change() 809 unsigned int ia_valid = attr->ia_valid; in evm_inode_setattr() local 818 if (!(ia_valid & (ATTR_MODE | ATTR_UID | ATTR_GID))) in evm_inode_setattr() 853 void evm_inode_post_setattr(struct dentry *dentry, int ia_valid) in evm_inode_post_setattr() argument 863 if (ia_valid & (ATTR_MODE | ATTR_UID | ATTR_GID)) in evm_inode_post_setattr()
|
/openbmc/linux/fs/udf/ |
H A 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()
|
/openbmc/linux/fs/smb/client/ |
H A D | inode.c | 1640 if (attrs->ia_valid & ATTR_ATIME) { in cifs_set_file_info() 1647 if (attrs->ia_valid & ATTR_MTIME) { in cifs_set_file_info() 1660 if (set_time && (attrs->ia_valid & ATTR_CTIME)) { in cifs_set_file_info() 2916 attrs->ia_valid |= ATTR_CTIME | ATTR_MTIME; 2941 direntry, attrs->ia_valid); 2946 attrs->ia_valid |= ATTR_FORCE; 2978 if (attrs->ia_valid & ATTR_SIZE) { 2985 if (attrs->ia_valid & (ATTR_KILL_SUID|ATTR_KILL_SGID)) 2986 attrs->ia_valid &= ~ATTR_MODE; 2995 if (attrs->ia_valid & ATTR_MODE) [all …]
|
/openbmc/linux/fs/ecryptfs/ |
H A D | inode.c | 745 lower_ia->ia_valid &= ~ATTR_SIZE; in truncate_upper() 756 lower_ia->ia_valid &= ~ATTR_SIZE; in truncate_upper() 774 lower_ia->ia_valid |= ATTR_SIZE; in truncate_upper() 811 lower_ia->ia_valid |= ATTR_SIZE; in truncate_upper() 813 lower_ia->ia_valid &= ~ATTR_SIZE; in truncate_upper() 854 struct iattr ia = { .ia_valid = ATTR_SIZE, .ia_size = new_length }; in ecryptfs_truncate() 855 struct iattr lower_ia = { .ia_valid = 0 }; in ecryptfs_truncate() 863 if (!rc && lower_ia.ia_valid & ATTR_SIZE) { in ecryptfs_truncate() 953 if (ia->ia_valid & ATTR_SIZE) { in ecryptfs_setattr() 960 if (ia->ia_valid & ATTR_FILE) in ecryptfs_setattr() [all …]
|
/openbmc/linux/fs/9p/ |
H A D | vfs_inode_dotl.c | 555 p9attr.valid = v9fs_mapped_iattr_valid(iattr->ia_valid); in v9fs_vfs_setattr_dotl() 556 if (iattr->ia_valid & ATTR_MODE) in v9fs_vfs_setattr_dotl() 558 if (iattr->ia_valid & ATTR_UID) in v9fs_vfs_setattr_dotl() 560 if (iattr->ia_valid & ATTR_GID) in v9fs_vfs_setattr_dotl() 562 if (iattr->ia_valid & ATTR_SIZE) in v9fs_vfs_setattr_dotl() 564 if (iattr->ia_valid & ATTR_ATIME_SET) { in v9fs_vfs_setattr_dotl() 568 if (iattr->ia_valid & ATTR_MTIME_SET) { in v9fs_vfs_setattr_dotl() 573 if (iattr->ia_valid & ATTR_FILE) { in v9fs_vfs_setattr_dotl() 599 if ((iattr->ia_valid & ATTR_SIZE) && iattr->ia_size != in v9fs_vfs_setattr_dotl() 614 if (iattr->ia_valid & ATTR_MODE) { in v9fs_vfs_setattr_dotl()
|
/openbmc/linux/fs/affs/ |
H A D | inode.c | 225 pr_debug("notify_change(%lu,0x%x)\n", inode->i_ino, attr->ia_valid); in affs_notify_change() 231 if (((attr->ia_valid & ATTR_UID) && in affs_notify_change() 233 ((attr->ia_valid & ATTR_GID) && in affs_notify_change() 235 ((attr->ia_valid & ATTR_MODE) && in affs_notify_change() 243 if ((attr->ia_valid & ATTR_SIZE) && in affs_notify_change() 256 if (attr->ia_valid & ATTR_MODE) in affs_notify_change()
|
/openbmc/linux/fs/afs/ |
H A D | inode.c | 858 if (op->setattr.attr->ia_valid & ATTR_SIZE) { in afs_setattr_success() 870 if (op->setattr.attr->ia_valid & ATTR_SIZE) { in afs_setattr_edit_file() 906 attr->ia_valid); in afs_setattr() 908 if (!(attr->ia_valid & supported)) { in afs_setattr() 914 if (attr->ia_valid & ATTR_SIZE) { in afs_setattr() 923 attr->ia_valid &= ~ATTR_SIZE; in afs_setattr() 931 if ((attr->ia_valid & ATTR_SIZE) && S_ISREG(inode->i_mode)) { in afs_setattr() 944 if (!(attr->ia_valid & (supported & ~ATTR_SIZE & ~ATTR_MTIME)) && in afs_setattr() 956 op = afs_alloc_operation(((attr->ia_valid & ATTR_FILE) ? in afs_setattr() 967 if (attr->ia_valid & ATTR_SIZE) { in afs_setattr()
|
/openbmc/linux/fs/vboxsf/ |
H A D | utils.c | 275 if (iattr->ia_valid & ATTR_SIZE) in vboxsf_setattr() 288 if (iattr->ia_valid & (ATTR_MODE | ATTR_ATIME | ATTR_MTIME)) { in vboxsf_setattr() 289 if (iattr->ia_valid & ATTR_MODE) { in vboxsf_setattr() 306 if (iattr->ia_valid & ATTR_ATIME) in vboxsf_setattr() 310 if (iattr->ia_valid & ATTR_MTIME) in vboxsf_setattr() 334 if (iattr->ia_valid & ATTR_SIZE) { in vboxsf_setattr()
|
/openbmc/linux/fs/orangefs/ |
H A D | namei.c | 87 iattr.ia_valid |= ATTR_MTIME | ATTR_CTIME; in orangefs_create() 212 iattr.ia_valid |= ATTR_MTIME | ATTR_CTIME; in orangefs_unlink() 299 iattr.ia_valid |= ATTR_MTIME | ATTR_CTIME; in orangefs_symlink() 370 iattr.ia_valid |= ATTR_MTIME | ATTR_CTIME; in orangefs_mkdir() 397 iattr.ia_valid |= ATTR_MTIME | ATTR_CTIME; in orangefs_rename()
|
/openbmc/linux/mm/ |
H A D | secretmem.c | 172 unsigned int ia_valid = iattr->ia_valid; in secretmem_setattr() local 177 if ((ia_valid & ATTR_SIZE) && inode->i_size) in secretmem_setattr()
|