Lines Matching refs:fattr
70 nfs_fattr_to_ino_t(struct nfs_fattr *fattr) in nfs_fattr_to_ino_t() argument
72 return nfs_fileid_to_ino_t(fattr->fileid); in nfs_fattr_to_ino_t()
304 struct nfs_fattr *fattr; member
318 struct nfs_fattr *fattr = desc->fattr; in nfs_find_actor() local
320 if (NFS_FILEID(inode) != fattr->fileid) in nfs_find_actor()
322 if (inode_wrong_type(inode, fattr->mode)) in nfs_find_actor()
335 struct nfs_fattr *fattr = desc->fattr; in nfs_init_locked() local
337 set_nfs_fileid(inode, fattr->fileid); in nfs_init_locked()
338 inode->i_mode = fattr->mode; in nfs_init_locked()
351 void nfs_setsecurity(struct inode *inode, struct nfs_fattr *fattr) in nfs_setsecurity() argument
355 if (fattr->label == NULL) in nfs_setsecurity()
358 if ((fattr->valid & NFS_ATTR_FATTR_V4_SECURITY_LABEL) && inode->i_security) { in nfs_setsecurity()
359 error = security_inode_notifysecctx(inode, fattr->label->label, in nfs_setsecurity()
360 fattr->label->len); in nfs_setsecurity()
365 (char *)fattr->label->label, in nfs_setsecurity()
366 fattr->label->len, error); in nfs_setsecurity()
393 void nfs_setsecurity(struct inode *inode, struct nfs_fattr *fattr) in nfs_setsecurity() argument
401 nfs_ilookup(struct super_block *sb, struct nfs_fattr *fattr, struct nfs_fh *fh) in nfs_ilookup() argument
405 .fattr = fattr, in nfs_ilookup()
410 if (!(fattr->valid & NFS_ATTR_FATTR_FILEID) || in nfs_ilookup()
411 !(fattr->valid & NFS_ATTR_FATTR_TYPE)) in nfs_ilookup()
414 hash = nfs_fattr_to_ino_t(fattr); in nfs_ilookup()
443 nfs_fhget(struct super_block *sb, struct nfs_fh *fh, struct nfs_fattr *fattr) in nfs_fhget() argument
447 .fattr = fattr in nfs_fhget()
453 nfs_attr_check_mountpoint(sb, fattr); in nfs_fhget()
455 if (nfs_attr_use_mounted_on_fileid(fattr)) in nfs_fhget()
456 fattr->fileid = fattr->mounted_on_fileid; in nfs_fhget()
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()
462 hash = nfs_fattr_to_ino_t(fattr); in nfs_fhget()
480 inode->i_mode = fattr->mode; 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()
512 init_special_inode(inode, inode->i_mode, fattr->rdev); in nfs_fhget()
526 nfsi->read_cache_jiffies = fattr->time_start; in nfs_fhget()
527 nfsi->attr_gencount = fattr->gencount; in nfs_fhget()
528 if (fattr->valid & NFS_ATTR_FATTR_ATIME) in nfs_fhget()
529 inode->i_atime = fattr->atime; in nfs_fhget()
532 if (fattr->valid & NFS_ATTR_FATTR_MTIME) in nfs_fhget()
533 inode->i_mtime = fattr->mtime; in nfs_fhget()
536 if (fattr->valid & NFS_ATTR_FATTR_CTIME) in nfs_fhget()
537 inode->i_ctime = fattr->ctime; in nfs_fhget()
540 if (fattr->valid & NFS_ATTR_FATTR_CHANGE) in nfs_fhget()
541 inode_set_iversion_raw(inode, fattr->change_attr); in nfs_fhget()
544 if (fattr->valid & NFS_ATTR_FATTR_SIZE) in nfs_fhget()
545 inode->i_size = nfs_size_to_loff_t(fattr->size); in nfs_fhget()
548 if (fattr->valid & NFS_ATTR_FATTR_NLINK) in nfs_fhget()
549 set_nlink(inode, fattr->nlink); in nfs_fhget()
552 if (fattr->valid & NFS_ATTR_FATTR_OWNER) in nfs_fhget()
553 inode->i_uid = fattr->uid; in nfs_fhget()
556 if (fattr->valid & NFS_ATTR_FATTR_GROUP) in nfs_fhget()
557 inode->i_gid = fattr->gid; in nfs_fhget()
560 if (fattr->valid & NFS_ATTR_FATTR_BLOCKS_USED) in nfs_fhget()
561 inode->i_blocks = fattr->du.nfs2.blocks; in nfs_fhget()
563 fattr->size != 0) in nfs_fhget()
565 if (fattr->valid & NFS_ATTR_FATTR_SPACE_USED) { in nfs_fhget()
569 inode->i_blocks = nfs_calc_block_size(fattr->du.nfs3.used); in nfs_fhget()
571 fattr->size != 0) in nfs_fhget()
574 nfs_setsecurity(inode, fattr); in nfs_fhget()
584 int err = nfs_refresh_inode(inode, fattr); in nfs_fhget()
613 struct nfs_fattr *fattr; in nfs_setattr() local
643 fattr = nfs_alloc_fattr_with_label(NFS_SERVER(inode)); in nfs_setattr()
644 if (fattr == NULL) { in nfs_setattr()
649 error = NFS_PROTO(inode)->setattr(dentry, fattr, attr); in nfs_setattr()
651 error = nfs_refresh_inode(inode, fattr); in nfs_setattr()
652 nfs_free_fattr(fattr); in nfs_setattr()
702 struct nfs_fattr *fattr) in nfs_setattr_update_inode() argument
705 nfs_fattr_set_barrier(fattr); in nfs_setattr_update_inode()
708 NFS_I(inode)->attr_gencount = fattr->gencount; in nfs_setattr_update_inode()
733 if (fattr->valid & NFS_ATTR_FATTR_CTIME) in nfs_setattr_update_inode()
734 inode->i_ctime = fattr->ctime; in nfs_setattr_update_inode()
744 if (fattr->valid & NFS_ATTR_FATTR_ATIME) in nfs_setattr_update_inode()
745 inode->i_atime = fattr->atime; in nfs_setattr_update_inode()
751 if (fattr->valid & NFS_ATTR_FATTR_CTIME) in nfs_setattr_update_inode()
752 inode->i_ctime = fattr->ctime; in nfs_setattr_update_inode()
760 if (fattr->valid & NFS_ATTR_FATTR_MTIME) in nfs_setattr_update_inode()
761 inode->i_mtime = fattr->mtime; in nfs_setattr_update_inode()
767 if (fattr->valid & NFS_ATTR_FATTR_CTIME) in nfs_setattr_update_inode()
768 inode->i_ctime = fattr->ctime; in nfs_setattr_update_inode()
773 if (fattr->valid) in nfs_setattr_update_inode()
774 nfs_update_inode(inode, fattr); in nfs_setattr_update_inode()
1188 struct nfs_fattr *fattr = NULL; in __nfs_revalidate_inode() local
1209 fattr = nfs_alloc_fattr_with_label(NFS_SERVER(inode)); in __nfs_revalidate_inode()
1210 if (fattr == NULL) in __nfs_revalidate_inode()
1215 status = NFS_PROTO(inode)->getattr(server, NFS_FH(inode), fattr, inode); in __nfs_revalidate_inode()
1235 status = nfs_refresh_inode(inode, fattr); in __nfs_revalidate_inode()
1246 nfs_setsecurity(inode, fattr); in __nfs_revalidate_inode()
1253 nfs_free_fattr(fattr); in __nfs_revalidate_inode()
1424 static void nfs_wcc_update_inode(struct inode *inode, struct nfs_fattr *fattr) in nfs_wcc_update_inode() argument
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()
1430 && inode_eq_iversion_raw(inode, fattr->pre_change_attr)) { in nfs_wcc_update_inode()
1431 inode_set_iversion_raw(inode, fattr->change_attr); 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()
1441 && timespec64_equal(&ts, &fattr->pre_ctime)) { in nfs_wcc_update_inode()
1442 inode->i_ctime = 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()
1448 && timespec64_equal(&ts, &fattr->pre_mtime)) { in nfs_wcc_update_inode()
1449 inode->i_mtime = 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()
1453 && i_size_read(inode) == nfs_size_to_loff_t(fattr->pre_size) in nfs_wcc_update_inode()
1455 trace_nfs_size_wcc(inode, fattr->size); in nfs_wcc_update_inode()
1456 i_size_write(inode, nfs_size_to_loff_t(fattr->size)); in nfs_wcc_update_inode()
1469 static int nfs_check_inode_attributes(struct inode *inode, struct nfs_fattr *fattr) in nfs_check_inode_attributes() argument
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()
1484 } else if (nfsi->fileid != fattr->fileid) { in nfs_check_inode_attributes()
1486 if ((fattr->valid & NFS_ATTR_FATTR_MOUNTED_ON_FILEID) && in nfs_check_inode_attributes()
1487 nfsi->fileid == 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()
1510 new_isize = nfs_size_to_loff_t(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()
1535 nfsi->read_cache_jiffies = fattr->time_start; in nfs_check_inode_attributes()
1552 void nfs_fattr_init(struct nfs_fattr *fattr) in nfs_fattr_init() argument
1554 fattr->valid = 0; in nfs_fattr_init()
1555 fattr->time_start = jiffies; in nfs_fattr_init()
1556 fattr->gencount = nfs_inc_attr_generation_counter(); in nfs_fattr_init()
1557 fattr->owner_name = NULL; in nfs_fattr_init()
1558 fattr->group_name = NULL; in nfs_fattr_init()
1573 void nfs_fattr_set_barrier(struct nfs_fattr *fattr) in nfs_fattr_set_barrier() argument
1575 fattr->gencount = nfs_inc_attr_generation_counter(); in nfs_fattr_set_barrier()
1580 struct nfs_fattr *fattr; in nfs_alloc_fattr() local
1582 fattr = kmalloc(sizeof(*fattr), GFP_KERNEL); in nfs_alloc_fattr()
1583 if (fattr != NULL) { in nfs_alloc_fattr()
1584 nfs_fattr_init(fattr); in nfs_alloc_fattr()
1585 fattr->label = NULL; in nfs_alloc_fattr()
1587 return fattr; in nfs_alloc_fattr()
1593 struct nfs_fattr *fattr = nfs_alloc_fattr(); in nfs_alloc_fattr_with_label() local
1595 if (!fattr) in nfs_alloc_fattr_with_label()
1598 fattr->label = nfs4_label_alloc(server, GFP_KERNEL); in nfs_alloc_fattr_with_label()
1599 if (IS_ERR(fattr->label)) { in nfs_alloc_fattr_with_label()
1600 kfree(fattr); in nfs_alloc_fattr_with_label()
1604 return fattr; in nfs_alloc_fattr_with_label()
1695 static int nfs_inode_attrs_cmp_generic(const struct nfs_fattr *fattr, in nfs_inode_attrs_cmp_generic() argument
1700 return (long)(fattr->gencount - attr_gencount) > 0 || in nfs_inode_attrs_cmp_generic()
1720 static int nfs_inode_attrs_cmp_monotonic(const struct nfs_fattr *fattr, in nfs_inode_attrs_cmp_monotonic() argument
1723 s64 diff = fattr->change_attr - inode_peek_iversion_raw(inode); in nfs_inode_attrs_cmp_monotonic()
1744 static int nfs_inode_attrs_cmp_strict_monotonic(const struct nfs_fattr *fattr, in nfs_inode_attrs_cmp_strict_monotonic() argument
1747 return nfs_inode_attrs_cmp_monotonic(fattr, inode) > 0 ? 1 : -1; in nfs_inode_attrs_cmp_strict_monotonic()
1760 static int nfs_inode_attrs_cmp(const struct nfs_fattr *fattr, in nfs_inode_attrs_cmp() argument
1763 if (nfs_inode_attrs_cmp_generic(fattr, inode) > 0) in nfs_inode_attrs_cmp()
1769 if (!(fattr->valid & NFS_ATTR_FATTR_CHANGE)) in nfs_inode_attrs_cmp()
1771 return nfs_inode_attrs_cmp_monotonic(fattr, inode); in nfs_inode_attrs_cmp()
1773 if (!(fattr->valid & NFS_ATTR_FATTR_CHANGE)) in nfs_inode_attrs_cmp()
1775 return nfs_inode_attrs_cmp_strict_monotonic(fattr, inode); in nfs_inode_attrs_cmp()
1790 static int nfs_inode_finish_partial_attr_update(const struct nfs_fattr *fattr, in nfs_inode_finish_partial_attr_update() argument
1804 (fattr->valid & NFS_ATTR_FATTR_CHANGE) != 0 && in nfs_inode_finish_partial_attr_update()
1805 nfs_inode_attrs_cmp_monotonic(fattr, inode) == 0) in nfs_inode_finish_partial_attr_update()
1811 struct nfs_fattr *fattr) in nfs_refresh_inode_locked() argument
1813 int attr_cmp = nfs_inode_attrs_cmp(fattr, inode); in nfs_refresh_inode_locked()
1818 if (attr_cmp > 0 || nfs_inode_finish_partial_attr_update(fattr, inode)) in nfs_refresh_inode_locked()
1819 ret = nfs_update_inode(inode, fattr); in nfs_refresh_inode_locked()
1821 ret = nfs_check_inode_attributes(inode, fattr); in nfs_refresh_inode_locked()
1837 int nfs_refresh_inode(struct inode *inode, struct nfs_fattr *fattr) in nfs_refresh_inode() argument
1841 if ((fattr->valid & NFS_ATTR_FATTR) == 0) in nfs_refresh_inode()
1844 status = nfs_refresh_inode_locked(inode, fattr); in nfs_refresh_inode()
1852 struct nfs_fattr *fattr, unsigned int invalid) in nfs_post_op_update_inode_locked() argument
1857 if ((fattr->valid & NFS_ATTR_FATTR) == 0) in nfs_post_op_update_inode_locked()
1859 return nfs_refresh_inode_locked(inode, fattr); in nfs_post_op_update_inode_locked()
1876 int nfs_post_op_update_inode(struct inode *inode, struct nfs_fattr *fattr) in nfs_post_op_update_inode() argument
1881 nfs_fattr_set_barrier(fattr); in nfs_post_op_update_inode()
1882 status = nfs_post_op_update_inode_locked(inode, fattr, in nfs_post_op_update_inode()
1903 int nfs_post_op_update_inode_force_wcc_locked(struct inode *inode, struct nfs_fattr *fattr) in nfs_post_op_update_inode_force_wcc_locked() argument
1905 int attr_cmp = nfs_inode_attrs_cmp(fattr, inode); in nfs_post_op_update_inode_force_wcc_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()
1920 fattr->pre_change_attr = inode_peek_iversion_raw(inode); 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()
1925 fattr->pre_ctime = inode->i_ctime; 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()
1930 fattr->pre_mtime = inode->i_mtime; 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()
1935 fattr->pre_size = i_size_read(inode); 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()
1939 status = nfs_post_op_update_inode_locked(inode, fattr, in nfs_post_op_update_inode_force_wcc_locked()
1958 int nfs_post_op_update_inode_force_wcc(struct inode *inode, struct nfs_fattr *fattr) in nfs_post_op_update_inode_force_wcc() argument
1963 nfs_fattr_set_barrier(fattr); in nfs_post_op_update_inode_force_wcc()
1964 status = nfs_post_op_update_inode_force_wcc_locked(inode, fattr); in nfs_post_op_update_inode_force_wcc()
1983 static int nfs_update_inode(struct inode *inode, struct nfs_fattr *fattr) in nfs_update_inode() argument
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()
2007 } else if (nfsi->fileid != fattr->fileid) { in nfs_update_inode()
2009 if ((fattr->valid & NFS_ATTR_FATTR_MOUNTED_ON_FILEID) && in nfs_update_inode()
2010 nfsi->fileid == fattr->mounted_on_fileid) in nfs_update_inode()
2016 (long long)fattr->fileid); in nfs_update_inode()
2023 if ((fattr->valid & NFS_ATTR_FATTR_TYPE) && inode_wrong_type(inode, fattr->mode)) { in nfs_update_inode()
2028 __func__, inode->i_ino, inode->i_mode, fattr->mode); in nfs_update_inode()
2033 if (S_ISDIR(inode->i_mode) && (fattr->valid & NFS_ATTR_FATTR_FSID) && in nfs_update_inode()
2034 !nfs_fsid_equal(&server->fsid, &fattr->fsid) && in nfs_update_inode()
2036 server->fsid = fattr->fsid; in nfs_update_inode()
2044 nfsi->read_cache_jiffies = fattr->time_start; in nfs_update_inode()
2053 nfs_wcc_update_inode(inode, fattr); in nfs_update_inode()
2065 if (fattr->valid & NFS_ATTR_FATTR_CHANGE) { in nfs_update_inode()
2066 if (!inode_eq_iversion_raw(inode, fattr->change_attr)) { in nfs_update_inode()
2089 inode_set_iversion_raw(inode, fattr->change_attr); in nfs_update_inode()
2099 if (fattr->valid & NFS_ATTR_FATTR_MTIME) in nfs_update_inode()
2100 inode->i_mtime = fattr->mtime; in nfs_update_inode()
2105 if (fattr->valid & NFS_ATTR_FATTR_CTIME) in nfs_update_inode()
2106 inode->i_ctime = fattr->ctime; in nfs_update_inode()
2112 if (fattr->valid & NFS_ATTR_FATTR_SIZE) { in nfs_update_inode()
2113 new_isize = nfs_size_to_loff_t(fattr->size); in nfs_update_inode()
2126 !(fattr->valid & (NFS_ATTR_FATTR_SPACE_USED | in nfs_update_inode()
2128 fattr->du.nfs3.used = 0; 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()
2136 inode->i_atime = fattr->atime; in nfs_update_inode()
2141 if (fattr->valid & NFS_ATTR_FATTR_MODE) { in nfs_update_inode()
2142 if ((inode->i_mode & S_IALLUGO) != (fattr->mode & S_IALLUGO)) { in nfs_update_inode()
2144 newmode |= fattr->mode & S_IALLUGO; in nfs_update_inode()
2153 if (fattr->valid & NFS_ATTR_FATTR_OWNER) { in nfs_update_inode()
2154 if (!uid_eq(inode->i_uid, fattr->uid)) { in nfs_update_inode()
2157 inode->i_uid = fattr->uid; in nfs_update_inode()
2163 if (fattr->valid & NFS_ATTR_FATTR_GROUP) { in nfs_update_inode()
2164 if (!gid_eq(inode->i_gid, fattr->gid)) { in nfs_update_inode()
2167 inode->i_gid = fattr->gid; in nfs_update_inode()
2173 if (fattr->valid & NFS_ATTR_FATTR_NLINK) { in nfs_update_inode()
2174 if (inode->i_nlink != fattr->nlink) in nfs_update_inode()
2175 set_nlink(inode, fattr->nlink); in nfs_update_inode()
2180 if (fattr->valid & NFS_ATTR_FATTR_SPACE_USED) { in nfs_update_inode()
2184 inode->i_blocks = nfs_calc_block_size(fattr->du.nfs3.used); in nfs_update_inode()
2189 if (fattr->valid & NFS_ATTR_FATTR_BLOCKS_USED) in nfs_update_inode()
2190 inode->i_blocks = fattr->du.nfs2.blocks; in nfs_update_inode()
2213 if ((long)(fattr->gencount - nfsi->attr_gencount) > 0) in nfs_update_inode()
2214 nfsi->attr_gencount = fattr->gencount; in nfs_update_inode()