Lines Matching refs:valid

358 	if ((fattr->valid & NFS_ATTR_FATTR_V4_SECURITY_LABEL) && inode->i_security) {  in nfs_setsecurity()
410 if (!(fattr->valid & NFS_ATTR_FATTR_FILEID) || in nfs_ilookup()
411 !(fattr->valid & NFS_ATTR_FATTR_TYPE)) in nfs_ilookup()
457 else if ((fattr->valid & NFS_ATTR_FATTR_FILEID) == 0) in nfs_fhget()
459 if ((fattr->valid & NFS_ATTR_FATTR_TYPE) == 0) in nfs_fhget()
482 if ((fattr->valid & NFS_ATTR_FATTR_MODE) == 0 in nfs_fhget()
499 if (fattr->valid & NFS_ATTR_FATTR_MOUNTPOINT || in nfs_fhget()
500 fattr->valid & NFS_ATTR_FATTR_V4_REFERRAL) { in nfs_fhget()
501 if (fattr->valid & NFS_ATTR_FATTR_V4_REFERRAL) in nfs_fhget()
528 if (fattr->valid & NFS_ATTR_FATTR_ATIME) in nfs_fhget()
532 if (fattr->valid & NFS_ATTR_FATTR_MTIME) in nfs_fhget()
536 if (fattr->valid & NFS_ATTR_FATTR_CTIME) in nfs_fhget()
540 if (fattr->valid & NFS_ATTR_FATTR_CHANGE) in nfs_fhget()
544 if (fattr->valid & NFS_ATTR_FATTR_SIZE) in nfs_fhget()
548 if (fattr->valid & NFS_ATTR_FATTR_NLINK) in nfs_fhget()
552 if (fattr->valid & NFS_ATTR_FATTR_OWNER) in nfs_fhget()
556 if (fattr->valid & NFS_ATTR_FATTR_GROUP) in nfs_fhget()
560 if (fattr->valid & NFS_ATTR_FATTR_BLOCKS_USED) in nfs_fhget()
565 if (fattr->valid & NFS_ATTR_FATTR_SPACE_USED) { in nfs_fhget()
733 if (fattr->valid & NFS_ATTR_FATTR_CTIME) in nfs_setattr_update_inode()
744 if (fattr->valid & NFS_ATTR_FATTR_ATIME) in nfs_setattr_update_inode()
751 if (fattr->valid & NFS_ATTR_FATTR_CTIME) in nfs_setattr_update_inode()
760 if (fattr->valid & NFS_ATTR_FATTR_MTIME) in nfs_setattr_update_inode()
767 if (fattr->valid & NFS_ATTR_FATTR_CTIME) in nfs_setattr_update_inode()
773 if (fattr->valid) in nfs_setattr_update_inode()
1428 if ((fattr->valid & NFS_ATTR_FATTR_PRECHANGE) in nfs_wcc_update_inode()
1429 && (fattr->valid & NFS_ATTR_FATTR_CHANGE) in nfs_wcc_update_inode()
1439 if ((fattr->valid & NFS_ATTR_FATTR_PRECTIME) in nfs_wcc_update_inode()
1440 && (fattr->valid & NFS_ATTR_FATTR_CTIME) in nfs_wcc_update_inode()
1446 if ((fattr->valid & NFS_ATTR_FATTR_PREMTIME) in nfs_wcc_update_inode()
1447 && (fattr->valid & NFS_ATTR_FATTR_MTIME) in nfs_wcc_update_inode()
1451 if ((fattr->valid & NFS_ATTR_FATTR_PRESIZE) in nfs_wcc_update_inode()
1452 && (fattr->valid & NFS_ATTR_FATTR_SIZE) in nfs_wcc_update_inode()
1479 if (!(fattr->valid & NFS_ATTR_FATTR_FILEID)) { in nfs_check_inode_attributes()
1481 if (fattr->valid & NFS_ATTR_FATTR_MOUNTED_ON_FILEID) in nfs_check_inode_attributes()
1486 if ((fattr->valid & NFS_ATTR_FATTR_MOUNTED_ON_FILEID) && in nfs_check_inode_attributes()
1491 if ((fattr->valid & NFS_ATTR_FATTR_TYPE) && inode_wrong_type(inode, fattr->mode)) in nfs_check_inode_attributes()
1497 …if ((fattr->valid & NFS_ATTR_FATTR_CHANGE) != 0 && !inode_eq_iversion_raw(inode, fattr->change_att… in nfs_check_inode_attributes()
1501 if ((fattr->valid & NFS_ATTR_FATTR_MTIME) && !timespec64_equal(&ts, &fattr->mtime)) in nfs_check_inode_attributes()
1505 if ((fattr->valid & NFS_ATTR_FATTR_CTIME) && !timespec64_equal(&ts, &fattr->ctime)) in nfs_check_inode_attributes()
1508 if (fattr->valid & NFS_ATTR_FATTR_SIZE) { in nfs_check_inode_attributes()
1517 …if ((fattr->valid & NFS_ATTR_FATTR_MODE) && (inode->i_mode & S_IALLUGO) != (fattr->mode & S_IALLUG… in nfs_check_inode_attributes()
1519 if ((fattr->valid & NFS_ATTR_FATTR_OWNER) && !uid_eq(inode->i_uid, fattr->uid)) in nfs_check_inode_attributes()
1521 if ((fattr->valid & NFS_ATTR_FATTR_GROUP) && !gid_eq(inode->i_gid, fattr->gid)) in nfs_check_inode_attributes()
1525 if ((fattr->valid & NFS_ATTR_FATTR_NLINK) && inode->i_nlink != fattr->nlink) in nfs_check_inode_attributes()
1529 if ((fattr->valid & NFS_ATTR_FATTR_ATIME) && !timespec64_equal(&ts, &fattr->atime)) in nfs_check_inode_attributes()
1554 fattr->valid = 0; in nfs_fattr_init()
1769 if (!(fattr->valid & NFS_ATTR_FATTR_CHANGE)) in nfs_inode_attrs_cmp()
1773 if (!(fattr->valid & NFS_ATTR_FATTR_CHANGE)) in nfs_inode_attrs_cmp()
1804 (fattr->valid & NFS_ATTR_FATTR_CHANGE) != 0 && in nfs_inode_finish_partial_attr_update()
1841 if ((fattr->valid & NFS_ATTR_FATTR) == 0) in nfs_refresh_inode()
1857 if ((fattr->valid & NFS_ATTR_FATTR) == 0) in nfs_post_op_update_inode_locked()
1911 if ((fattr->valid & NFS_ATTR_FATTR) == 0 || !attr_cmp) { in nfs_post_op_update_inode_force_wcc_locked()
1912 fattr->valid &= ~(NFS_ATTR_FATTR_PRECHANGE in nfs_post_op_update_inode_force_wcc_locked()
1918 if ((fattr->valid & NFS_ATTR_FATTR_CHANGE) != 0 && in nfs_post_op_update_inode_force_wcc_locked()
1919 (fattr->valid & NFS_ATTR_FATTR_PRECHANGE) == 0) { in nfs_post_op_update_inode_force_wcc_locked()
1921 fattr->valid |= NFS_ATTR_FATTR_PRECHANGE; in nfs_post_op_update_inode_force_wcc_locked()
1923 if ((fattr->valid & NFS_ATTR_FATTR_CTIME) != 0 && in nfs_post_op_update_inode_force_wcc_locked()
1924 (fattr->valid & NFS_ATTR_FATTR_PRECTIME) == 0) { in nfs_post_op_update_inode_force_wcc_locked()
1926 fattr->valid |= NFS_ATTR_FATTR_PRECTIME; in nfs_post_op_update_inode_force_wcc_locked()
1928 if ((fattr->valid & NFS_ATTR_FATTR_MTIME) != 0 && in nfs_post_op_update_inode_force_wcc_locked()
1929 (fattr->valid & NFS_ATTR_FATTR_PREMTIME) == 0) { in nfs_post_op_update_inode_force_wcc_locked()
1931 fattr->valid |= NFS_ATTR_FATTR_PREMTIME; in nfs_post_op_update_inode_force_wcc_locked()
1933 if ((fattr->valid & NFS_ATTR_FATTR_SIZE) != 0 && in nfs_post_op_update_inode_force_wcc_locked()
1934 (fattr->valid & NFS_ATTR_FATTR_PRESIZE) == 0) { in nfs_post_op_update_inode_force_wcc_locked()
1936 fattr->valid |= NFS_ATTR_FATTR_PRESIZE; in nfs_post_op_update_inode_force_wcc_locked()
2000 atomic_read(&inode->i_count), fattr->valid); in nfs_update_inode()
2002 if (!(fattr->valid & NFS_ATTR_FATTR_FILEID)) { in nfs_update_inode()
2004 if (fattr->valid & NFS_ATTR_FATTR_MOUNTED_ON_FILEID) in nfs_update_inode()
2009 if ((fattr->valid & NFS_ATTR_FATTR_MOUNTED_ON_FILEID) && in nfs_update_inode()
2023 if ((fattr->valid & NFS_ATTR_FATTR_TYPE) && inode_wrong_type(inode, fattr->mode)) { in nfs_update_inode()
2033 if (S_ISDIR(inode->i_mode) && (fattr->valid & NFS_ATTR_FATTR_FSID) && in nfs_update_inode()
2065 if (fattr->valid & NFS_ATTR_FATTR_CHANGE) { in nfs_update_inode()
2099 if (fattr->valid & NFS_ATTR_FATTR_MTIME) in nfs_update_inode()
2105 if (fattr->valid & NFS_ATTR_FATTR_CTIME) in nfs_update_inode()
2112 if (fattr->valid & NFS_ATTR_FATTR_SIZE) { in nfs_update_inode()
2126 !(fattr->valid & (NFS_ATTR_FATTR_SPACE_USED | in nfs_update_inode()
2129 fattr->valid |= NFS_ATTR_FATTR_SPACE_USED; in nfs_update_inode()
2135 if (fattr->valid & NFS_ATTR_FATTR_ATIME) in nfs_update_inode()
2141 if (fattr->valid & NFS_ATTR_FATTR_MODE) { in nfs_update_inode()
2153 if (fattr->valid & NFS_ATTR_FATTR_OWNER) { in nfs_update_inode()
2163 if (fattr->valid & NFS_ATTR_FATTR_GROUP) { in nfs_update_inode()
2173 if (fattr->valid & NFS_ATTR_FATTR_NLINK) { in nfs_update_inode()
2180 if (fattr->valid & NFS_ATTR_FATTR_SPACE_USED) { in nfs_update_inode()
2189 if (fattr->valid & NFS_ATTR_FATTR_BLOCKS_USED) in nfs_update_inode()