Lines Matching refs:valid

363 	if ((fattr->valid & NFS_ATTR_FATTR_V4_SECURITY_LABEL) && inode->i_security) {  in nfs_setsecurity()
415 if (!(fattr->valid & NFS_ATTR_FATTR_FILEID) || in nfs_ilookup()
416 !(fattr->valid & NFS_ATTR_FATTR_TYPE)) in nfs_ilookup()
462 else if ((fattr->valid & NFS_ATTR_FATTR_FILEID) == 0) in nfs_fhget()
464 if ((fattr->valid & NFS_ATTR_FATTR_TYPE) == 0) in nfs_fhget()
487 if ((fattr->valid & NFS_ATTR_FATTR_MODE) == 0 in nfs_fhget()
505 if (fattr->valid & NFS_ATTR_FATTR_MOUNTPOINT || in nfs_fhget()
506 fattr->valid & NFS_ATTR_FATTR_V4_REFERRAL) { in nfs_fhget()
507 if (fattr->valid & NFS_ATTR_FATTR_V4_REFERRAL) in nfs_fhget()
534 if (fattr->valid & NFS_ATTR_FATTR_ATIME) in nfs_fhget()
538 if (fattr->valid & NFS_ATTR_FATTR_MTIME) in nfs_fhget()
542 if (fattr->valid & NFS_ATTR_FATTR_CTIME) in nfs_fhget()
546 if (fattr->valid & NFS_ATTR_FATTR_CHANGE) in nfs_fhget()
550 if (fattr->valid & NFS_ATTR_FATTR_SIZE) in nfs_fhget()
554 if (fattr->valid & NFS_ATTR_FATTR_NLINK) in nfs_fhget()
558 if (fattr->valid & NFS_ATTR_FATTR_OWNER) in nfs_fhget()
562 if (fattr->valid & NFS_ATTR_FATTR_GROUP) in nfs_fhget()
566 if (fattr->valid & NFS_ATTR_FATTR_BLOCKS_USED) in nfs_fhget()
571 if (fattr->valid & NFS_ATTR_FATTR_SPACE_USED) { in nfs_fhget()
619 fattr->valid &= ~(NFS_ATTR_FATTR_PRECTIME | in nfs_fattr_fixup_delegated()
623 fattr->valid &= ~(NFS_ATTR_FATTR_PREMTIME | in nfs_fattr_fixup_delegated()
627 fattr->valid &= ~NFS_ATTR_FATTR_ATIME; in nfs_fattr_fixup_delegated()
630 fattr->valid &= ~NFS_ATTR_FATTR_ATIME; in nfs_fattr_fixup_delegated()
813 if (fattr->valid & NFS_ATTR_FATTR_CTIME) in nfs_setattr_update_inode()
824 if (fattr->valid & NFS_ATTR_FATTR_ATIME) in nfs_setattr_update_inode()
831 if (fattr->valid & NFS_ATTR_FATTR_CTIME) in nfs_setattr_update_inode()
840 if (fattr->valid & NFS_ATTR_FATTR_MTIME) in nfs_setattr_update_inode()
847 if (fattr->valid & NFS_ATTR_FATTR_CTIME) in nfs_setattr_update_inode()
853 if (fattr->valid) in nfs_setattr_update_inode()
1528 if ((fattr->valid & NFS_ATTR_FATTR_PRECHANGE) in nfs_wcc_update_inode()
1529 && (fattr->valid & NFS_ATTR_FATTR_CHANGE) in nfs_wcc_update_inode()
1539 if ((fattr->valid & NFS_ATTR_FATTR_PRECTIME) in nfs_wcc_update_inode()
1540 && (fattr->valid & NFS_ATTR_FATTR_CTIME) in nfs_wcc_update_inode()
1546 if ((fattr->valid & NFS_ATTR_FATTR_PREMTIME) in nfs_wcc_update_inode()
1547 && (fattr->valid & NFS_ATTR_FATTR_MTIME) in nfs_wcc_update_inode()
1551 if ((fattr->valid & NFS_ATTR_FATTR_PRESIZE) in nfs_wcc_update_inode()
1552 && (fattr->valid & NFS_ATTR_FATTR_SIZE) in nfs_wcc_update_inode()
1579 if (!(fattr->valid & NFS_ATTR_FATTR_FILEID)) { in nfs_check_inode_attributes()
1581 if (fattr->valid & NFS_ATTR_FATTR_MOUNTED_ON_FILEID) in nfs_check_inode_attributes()
1586 if ((fattr->valid & NFS_ATTR_FATTR_MOUNTED_ON_FILEID) && in nfs_check_inode_attributes()
1591 if ((fattr->valid & NFS_ATTR_FATTR_TYPE) && inode_wrong_type(inode, fattr->mode)) in nfs_check_inode_attributes()
1597 …if ((fattr->valid & NFS_ATTR_FATTR_CHANGE) != 0 && !inode_eq_iversion_raw(inode, fattr->change_att… in nfs_check_inode_attributes()
1601 if ((fattr->valid & NFS_ATTR_FATTR_MTIME) && !timespec64_equal(&ts, &fattr->mtime)) in nfs_check_inode_attributes()
1605 if ((fattr->valid & NFS_ATTR_FATTR_CTIME) && !timespec64_equal(&ts, &fattr->ctime)) in nfs_check_inode_attributes()
1608 if (fattr->valid & NFS_ATTR_FATTR_SIZE) { in nfs_check_inode_attributes()
1617 …if ((fattr->valid & NFS_ATTR_FATTR_MODE) && (inode->i_mode & S_IALLUGO) != (fattr->mode & S_IALLUG… in nfs_check_inode_attributes()
1619 if ((fattr->valid & NFS_ATTR_FATTR_OWNER) && !uid_eq(inode->i_uid, fattr->uid)) in nfs_check_inode_attributes()
1621 if ((fattr->valid & NFS_ATTR_FATTR_GROUP) && !gid_eq(inode->i_gid, fattr->gid)) in nfs_check_inode_attributes()
1625 if ((fattr->valid & NFS_ATTR_FATTR_NLINK) && inode->i_nlink != fattr->nlink) in nfs_check_inode_attributes()
1629 if ((fattr->valid & NFS_ATTR_FATTR_ATIME) && !timespec64_equal(&ts, &fattr->atime)) in nfs_check_inode_attributes()
1654 fattr->valid = 0; in nfs_fattr_init()
1870 if (!(fattr->valid & NFS_ATTR_FATTR_CHANGE)) in nfs_inode_attrs_cmp()
1874 if (!(fattr->valid & NFS_ATTR_FATTR_CHANGE)) in nfs_inode_attrs_cmp()
1905 (fattr->valid & NFS_ATTR_FATTR_CHANGE) != 0 && in nfs_inode_finish_partial_attr_update()
1964 if ((fattr->valid & NFS_ATTR_FATTR_CHANGE) && in nfs_ooo_record()
1965 (fattr->valid & NFS_ATTR_FATTR_PRECHANGE)) in nfs_ooo_record()
2006 if ((fattr->valid & NFS_ATTR_FATTR) == 0) in nfs_refresh_inode()
2022 if ((fattr->valid & NFS_ATTR_FATTR) == 0) in nfs_post_op_update_inode_locked()
2076 if ((fattr->valid & NFS_ATTR_FATTR) == 0 || !attr_cmp) { in nfs_post_op_update_inode_force_wcc_locked()
2079 fattr->valid &= ~(NFS_ATTR_FATTR_PRECHANGE in nfs_post_op_update_inode_force_wcc_locked()
2085 if ((fattr->valid & NFS_ATTR_FATTR_CHANGE) != 0 && in nfs_post_op_update_inode_force_wcc_locked()
2086 (fattr->valid & NFS_ATTR_FATTR_PRECHANGE) == 0) { in nfs_post_op_update_inode_force_wcc_locked()
2088 fattr->valid |= NFS_ATTR_FATTR_PRECHANGE; in nfs_post_op_update_inode_force_wcc_locked()
2090 if ((fattr->valid & NFS_ATTR_FATTR_CTIME) != 0 && in nfs_post_op_update_inode_force_wcc_locked()
2091 (fattr->valid & NFS_ATTR_FATTR_PRECTIME) == 0) { in nfs_post_op_update_inode_force_wcc_locked()
2093 fattr->valid |= NFS_ATTR_FATTR_PRECTIME; in nfs_post_op_update_inode_force_wcc_locked()
2095 if ((fattr->valid & NFS_ATTR_FATTR_MTIME) != 0 && in nfs_post_op_update_inode_force_wcc_locked()
2096 (fattr->valid & NFS_ATTR_FATTR_PREMTIME) == 0) { in nfs_post_op_update_inode_force_wcc_locked()
2098 fattr->valid |= NFS_ATTR_FATTR_PREMTIME; in nfs_post_op_update_inode_force_wcc_locked()
2100 if ((fattr->valid & NFS_ATTR_FATTR_SIZE) != 0 && in nfs_post_op_update_inode_force_wcc_locked()
2101 (fattr->valid & NFS_ATTR_FATTR_PRESIZE) == 0) { in nfs_post_op_update_inode_force_wcc_locked()
2103 fattr->valid |= NFS_ATTR_FATTR_PRESIZE; in nfs_post_op_update_inode_force_wcc_locked()
2167 atomic_read(&inode->i_count), fattr->valid); in nfs_update_inode()
2169 if (!(fattr->valid & NFS_ATTR_FATTR_FILEID)) { in nfs_update_inode()
2171 if (fattr->valid & NFS_ATTR_FATTR_MOUNTED_ON_FILEID) in nfs_update_inode()
2176 if ((fattr->valid & NFS_ATTR_FATTR_MOUNTED_ON_FILEID) && in nfs_update_inode()
2190 if ((fattr->valid & NFS_ATTR_FATTR_TYPE) && inode_wrong_type(inode, fattr->mode)) { in nfs_update_inode()
2200 if (S_ISDIR(inode->i_mode) && (fattr->valid & NFS_ATTR_FATTR_FSID) && in nfs_update_inode()
2235 if (fattr->valid & NFS_ATTR_FATTR_CHANGE) { in nfs_update_inode()
2281 if (fattr->valid & NFS_ATTR_FATTR_MTIME) in nfs_update_inode()
2287 if (fattr->valid & NFS_ATTR_FATTR_CTIME) in nfs_update_inode()
2294 if (fattr->valid & NFS_ATTR_FATTR_SIZE) { in nfs_update_inode()
2308 !(fattr->valid & (NFS_ATTR_FATTR_SPACE_USED | in nfs_update_inode()
2311 fattr->valid |= NFS_ATTR_FATTR_SPACE_USED; in nfs_update_inode()
2317 if (fattr->valid & NFS_ATTR_FATTR_ATIME) in nfs_update_inode()
2323 if (fattr->valid & NFS_ATTR_FATTR_MODE) { in nfs_update_inode()
2335 if (fattr->valid & NFS_ATTR_FATTR_OWNER) { in nfs_update_inode()
2345 if (fattr->valid & NFS_ATTR_FATTR_GROUP) { in nfs_update_inode()
2355 if (fattr->valid & NFS_ATTR_FATTR_NLINK) { in nfs_update_inode()
2362 if (fattr->valid & NFS_ATTR_FATTR_SPACE_USED) { in nfs_update_inode()
2371 if (fattr->valid & NFS_ATTR_FATTR_BLOCKS_USED) in nfs_update_inode()