Lines Matching refs:fattr

647 static int decode_fattr3(struct xdr_stream *xdr, struct nfs_fattr *fattr)  in decode_fattr3()  argument
658 fattr->mode = (be32_to_cpup(p++) & ~S_IFMT) | fmode; in decode_fattr3()
659 fattr->nlink = be32_to_cpup(p++); in decode_fattr3()
660 fattr->uid = make_kuid(&init_user_ns, be32_to_cpup(p++)); in decode_fattr3()
661 if (!uid_valid(fattr->uid)) in decode_fattr3()
663 fattr->gid = make_kgid(&init_user_ns, be32_to_cpup(p++)); in decode_fattr3()
664 if (!gid_valid(fattr->gid)) in decode_fattr3()
667 p = xdr_decode_size3(p, &fattr->size); in decode_fattr3()
668 p = xdr_decode_size3(p, &fattr->du.nfs3.used); in decode_fattr3()
669 p = xdr_decode_specdata3(p, &fattr->rdev); in decode_fattr3()
671 p = xdr_decode_hyper(p, &fattr->fsid.major); in decode_fattr3()
672 fattr->fsid.minor = 0; in decode_fattr3()
674 p = xdr_decode_fileid3(p, &fattr->fileid); in decode_fattr3()
675 p = xdr_decode_nfstime3(p, &fattr->atime); in decode_fattr3()
676 p = xdr_decode_nfstime3(p, &fattr->mtime); in decode_fattr3()
677 xdr_decode_nfstime3(p, &fattr->ctime); in decode_fattr3()
678 fattr->change_attr = nfs_timespec_to_change_attr(&fattr->ctime); in decode_fattr3()
680 fattr->valid |= NFS_ATTR_FATTR_V3; in decode_fattr3()
703 static int decode_post_op_attr(struct xdr_stream *xdr, struct nfs_fattr *fattr) in decode_post_op_attr() argument
711 return decode_fattr3(xdr, fattr); in decode_post_op_attr()
726 static int decode_wcc_attr(struct xdr_stream *xdr, struct nfs_fattr *fattr) in decode_wcc_attr() argument
734 fattr->valid |= NFS_ATTR_FATTR_PRESIZE in decode_wcc_attr()
739 p = xdr_decode_size3(p, &fattr->pre_size); in decode_wcc_attr()
740 p = xdr_decode_nfstime3(p, &fattr->pre_mtime); in decode_wcc_attr()
741 xdr_decode_nfstime3(p, &fattr->pre_ctime); in decode_wcc_attr()
742 fattr->pre_change_attr = nfs_timespec_to_change_attr(&fattr->pre_ctime); in decode_wcc_attr()
766 static int decode_pre_op_attr(struct xdr_stream *xdr, struct nfs_fattr *fattr) in decode_pre_op_attr() argument
774 return decode_wcc_attr(xdr, fattr); in decode_pre_op_attr()
781 static int decode_wcc_data(struct xdr_stream *xdr, struct nfs_fattr *fattr) in decode_wcc_data() argument
785 error = decode_pre_op_attr(xdr, fattr); in decode_wcc_data()
788 error = decode_post_op_attr(xdr, fattr); in decode_wcc_data()
1476 error = decode_post_op_attr(xdr, result->fattr); in nfs3_xdr_dec_lookup3res()
1518 error = decode_post_op_attr(xdr, result->fattr); in nfs3_xdr_dec_access3res()
1637 error = decode_post_op_attr(xdr, result->fattr); in nfs3_xdr_dec_read3res()
1710 error = decode_wcc_data(xdr, result->fattr); in nfs3_xdr_dec_write3res()
1751 error = decode_post_op_attr(xdr, result->fattr); in decode_create3resok()
1759 result->fattr->valid = 0; in decode_create3resok()
1899 error = decode_post_op_attr(xdr, result->fattr); in nfs3_xdr_dec_link3res()
1984 entry->fattr->valid = 0; in nfs3_decode_dirent()
1985 error = decode_post_op_attr(xdr, entry->fattr); in nfs3_decode_dirent()
1988 if (entry->fattr->valid & NFS_ATTR_FATTR_V3) in nfs3_decode_dirent()
1989 entry->d_type = nfs_umode_to_dtype(entry->fattr->mode); in nfs3_decode_dirent()
1991 if (entry->fattr->fileid != entry->ino) { in nfs3_decode_dirent()
1992 entry->fattr->mounted_on_fileid = entry->ino; in nfs3_decode_dirent()
1993 entry->fattr->valid |= NFS_ATTR_FATTR_MOUNTED_ON_FILEID; in nfs3_decode_dirent()
2151 error = decode_post_op_attr(xdr, result->fattr); in nfs3_xdr_dec_fsstat3res()
2227 error = decode_post_op_attr(xdr, result->fattr); in nfs3_xdr_dec_fsinfo3res()
2290 error = decode_post_op_attr(xdr, result->fattr); in nfs3_xdr_dec_pathconf3res()
2331 error = decode_wcc_data(xdr, result->fattr); in nfs3_xdr_dec_commit3res()
2354 error = decode_post_op_attr(xdr, result->fattr); in decode_getacl3resok()