Lines Matching refs:fattr
621 static int decode_fattr3(struct xdr_stream *xdr, struct nfs_fattr *fattr, in decode_fattr3() argument
633 fattr->mode = (be32_to_cpup(p++) & ~S_IFMT) | fmode; in decode_fattr3()
634 fattr->nlink = be32_to_cpup(p++); in decode_fattr3()
635 fattr->uid = make_kuid(userns, be32_to_cpup(p++)); in decode_fattr3()
636 if (!uid_valid(fattr->uid)) in decode_fattr3()
638 fattr->gid = make_kgid(userns, be32_to_cpup(p++)); in decode_fattr3()
639 if (!gid_valid(fattr->gid)) in decode_fattr3()
642 p = xdr_decode_size3(p, &fattr->size); in decode_fattr3()
643 p = xdr_decode_size3(p, &fattr->du.nfs3.used); in decode_fattr3()
644 p = xdr_decode_specdata3(p, &fattr->rdev); in decode_fattr3()
646 p = xdr_decode_hyper(p, &fattr->fsid.major); in decode_fattr3()
647 fattr->fsid.minor = 0; in decode_fattr3()
649 p = xdr_decode_fileid3(p, &fattr->fileid); in decode_fattr3()
650 p = xdr_decode_nfstime3(p, &fattr->atime); in decode_fattr3()
651 p = xdr_decode_nfstime3(p, &fattr->mtime); in decode_fattr3()
652 xdr_decode_nfstime3(p, &fattr->ctime); in decode_fattr3()
653 fattr->change_attr = nfs_timespec_to_change_attr(&fattr->ctime); in decode_fattr3()
655 fattr->valid |= NFS_ATTR_FATTR_V3; in decode_fattr3()
675 static int decode_post_op_attr(struct xdr_stream *xdr, struct nfs_fattr *fattr, in decode_post_op_attr() argument
684 return decode_fattr3(xdr, fattr, userns); in decode_post_op_attr()
696 static int decode_wcc_attr(struct xdr_stream *xdr, struct nfs_fattr *fattr) in decode_wcc_attr() argument
704 fattr->valid |= NFS_ATTR_FATTR_PRESIZE in decode_wcc_attr()
709 p = xdr_decode_size3(p, &fattr->pre_size); in decode_wcc_attr()
710 p = xdr_decode_nfstime3(p, &fattr->pre_mtime); in decode_wcc_attr()
711 xdr_decode_nfstime3(p, &fattr->pre_ctime); in decode_wcc_attr()
712 fattr->pre_change_attr = nfs_timespec_to_change_attr(&fattr->pre_ctime); in decode_wcc_attr()
733 static int decode_pre_op_attr(struct xdr_stream *xdr, struct nfs_fattr *fattr) in decode_pre_op_attr() argument
741 return decode_wcc_attr(xdr, fattr); in decode_pre_op_attr()
745 static int decode_wcc_data(struct xdr_stream *xdr, struct nfs_fattr *fattr, in decode_wcc_data() argument
750 error = decode_pre_op_attr(xdr, fattr); in decode_wcc_data()
753 error = decode_post_op_attr(xdr, fattr, userns); in decode_wcc_data()
1484 error = decode_post_op_attr(xdr, result->fattr, userns); in nfs3_xdr_dec_lookup3res()
1527 error = decode_post_op_attr(xdr, result->fattr, rpc_rqst_userns(req)); in nfs3_xdr_dec_access3res()
1646 error = decode_post_op_attr(xdr, result->fattr, rpc_rqst_userns(req)); in nfs3_xdr_dec_read3res()
1717 error = decode_wcc_data(xdr, result->fattr, rpc_rqst_userns(req)); in nfs3_xdr_dec_write3res()
1759 error = decode_post_op_attr(xdr, result->fattr, userns); in decode_create3resok()
1767 result->fattr->valid = 0; in decode_create3resok()
1914 error = decode_post_op_attr(xdr, result->fattr, userns); in nfs3_xdr_dec_link3res()
1999 entry->fattr->valid = 0; in nfs3_decode_dirent()
2000 error = decode_post_op_attr(xdr, entry->fattr, userns); in nfs3_decode_dirent()
2003 if (entry->fattr->valid & NFS_ATTR_FATTR_V3) in nfs3_decode_dirent()
2004 entry->d_type = nfs_umode_to_dtype(entry->fattr->mode); in nfs3_decode_dirent()
2006 if (entry->fattr->fileid != entry->ino) { in nfs3_decode_dirent()
2007 entry->fattr->mounted_on_fileid = entry->ino; in nfs3_decode_dirent()
2008 entry->fattr->valid |= NFS_ATTR_FATTR_MOUNTED_ON_FILEID; in nfs3_decode_dirent()
2158 error = decode_post_op_attr(xdr, result->fattr, rpc_rqst_userns(req)); in nfs3_xdr_dec_fsstat3res()
2232 error = decode_post_op_attr(xdr, result->fattr, rpc_rqst_userns(req)); in nfs3_xdr_dec_fsinfo3res()
2293 error = decode_post_op_attr(xdr, result->fattr, rpc_rqst_userns(req)); in nfs3_xdr_dec_pathconf3res()
2336 error = decode_wcc_data(xdr, result->fattr, rpc_rqst_userns(req)); in nfs3_xdr_dec_commit3res()
2362 error = decode_post_op_attr(xdr, result->fattr, userns); in decode_getacl3resok()