Lines Matching refs:fattr

623 static int decode_fattr3(struct xdr_stream *xdr, struct nfs_fattr *fattr,  in decode_fattr3()  argument
635 fattr->mode = (be32_to_cpup(p++) & ~S_IFMT) | fmode; in decode_fattr3()
636 fattr->nlink = be32_to_cpup(p++); in decode_fattr3()
637 fattr->uid = make_kuid(userns, be32_to_cpup(p++)); in decode_fattr3()
638 if (!uid_valid(fattr->uid)) in decode_fattr3()
640 fattr->gid = make_kgid(userns, be32_to_cpup(p++)); in decode_fattr3()
641 if (!gid_valid(fattr->gid)) in decode_fattr3()
644 p = xdr_decode_size3(p, &fattr->size); in decode_fattr3()
645 p = xdr_decode_size3(p, &fattr->du.nfs3.used); in decode_fattr3()
646 p = xdr_decode_specdata3(p, &fattr->rdev); in decode_fattr3()
648 p = xdr_decode_hyper(p, &fattr->fsid.major); in decode_fattr3()
649 fattr->fsid.minor = 0; in decode_fattr3()
651 p = xdr_decode_fileid3(p, &fattr->fileid); in decode_fattr3()
652 p = xdr_decode_nfstime3(p, &fattr->atime); in decode_fattr3()
653 p = xdr_decode_nfstime3(p, &fattr->mtime); in decode_fattr3()
654 xdr_decode_nfstime3(p, &fattr->ctime); in decode_fattr3()
655 fattr->change_attr = nfs_timespec_to_change_attr(&fattr->ctime); in decode_fattr3()
657 fattr->valid |= NFS_ATTR_FATTR_V3; in decode_fattr3()
677 static int decode_post_op_attr(struct xdr_stream *xdr, struct nfs_fattr *fattr, in decode_post_op_attr() argument
686 return decode_fattr3(xdr, fattr, userns); in decode_post_op_attr()
698 static int decode_wcc_attr(struct xdr_stream *xdr, struct nfs_fattr *fattr) in decode_wcc_attr() argument
706 fattr->valid |= NFS_ATTR_FATTR_PRESIZE in decode_wcc_attr()
711 p = xdr_decode_size3(p, &fattr->pre_size); in decode_wcc_attr()
712 p = xdr_decode_nfstime3(p, &fattr->pre_mtime); in decode_wcc_attr()
713 xdr_decode_nfstime3(p, &fattr->pre_ctime); in decode_wcc_attr()
714 fattr->pre_change_attr = nfs_timespec_to_change_attr(&fattr->pre_ctime); in decode_wcc_attr()
735 static int decode_pre_op_attr(struct xdr_stream *xdr, struct nfs_fattr *fattr) in decode_pre_op_attr() argument
743 return decode_wcc_attr(xdr, fattr); in decode_pre_op_attr()
747 static int decode_wcc_data(struct xdr_stream *xdr, struct nfs_fattr *fattr, in decode_wcc_data() argument
752 error = decode_pre_op_attr(xdr, fattr); in decode_wcc_data()
755 error = decode_post_op_attr(xdr, fattr, userns); in decode_wcc_data()
1488 error = decode_post_op_attr(xdr, result->fattr, userns); in nfs3_xdr_dec_lookup3res()
1531 error = decode_post_op_attr(xdr, result->fattr, rpc_rqst_userns(req)); in nfs3_xdr_dec_access3res()
1650 error = decode_post_op_attr(xdr, result->fattr, rpc_rqst_userns(req)); in nfs3_xdr_dec_read3res()
1721 error = decode_wcc_data(xdr, result->fattr, rpc_rqst_userns(req)); in nfs3_xdr_dec_write3res()
1763 error = decode_post_op_attr(xdr, result->fattr, userns); in decode_create3resok()
1771 result->fattr->valid = 0; in decode_create3resok()
1918 error = decode_post_op_attr(xdr, result->fattr, userns); in nfs3_xdr_dec_link3res()
2003 entry->fattr->valid = 0; in nfs3_decode_dirent()
2004 error = decode_post_op_attr(xdr, entry->fattr, userns); in nfs3_decode_dirent()
2007 if (entry->fattr->valid & NFS_ATTR_FATTR_V3) in nfs3_decode_dirent()
2008 entry->d_type = nfs_umode_to_dtype(entry->fattr->mode); in nfs3_decode_dirent()
2010 if (entry->fattr->fileid != entry->ino) { in nfs3_decode_dirent()
2011 entry->fattr->mounted_on_fileid = entry->ino; in nfs3_decode_dirent()
2012 entry->fattr->valid |= NFS_ATTR_FATTR_MOUNTED_ON_FILEID; in nfs3_decode_dirent()
2161 error = decode_post_op_attr(xdr, result->fattr, rpc_rqst_userns(req)); in nfs3_xdr_dec_fsstat3res()
2237 error = decode_post_op_attr(xdr, result->fattr, rpc_rqst_userns(req)); in nfs3_xdr_dec_fsinfo3res()
2298 error = decode_post_op_attr(xdr, result->fattr, rpc_rqst_userns(req)); in nfs3_xdr_dec_pathconf3res()
2341 error = decode_wcc_data(xdr, result->fattr, rpc_rqst_userns(req)); in nfs3_xdr_dec_commit3res()
2367 error = decode_post_op_attr(xdr, result->fattr, userns); in decode_getacl3resok()