nfsd4: tweak nfsd4_encode_getattr to take xdr_stream
[firefly-linux-kernel-4.4.55.git] / fs / nfsd / nfs4proc.c
index 6d94adf6c963741f4adc2db2b0127904248386a8..94ef528bb1dd50e1e57f51eabced182b6a1119d8 100644 (file)
@@ -1061,10 +1061,10 @@ _nfsd4_verify(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate,
                return nfserr_jukebox;
 
        p = buf;
-       status = nfsd4_encode_fattr(&cstate->current_fh,
+       status = nfsd4_encode_fattr_to_buf(&p, count, &cstate->current_fh,
                                    cstate->current_fh.fh_export,
-                                   cstate->current_fh.fh_dentry, &p,
-                                   count, verify->ve_bmval,
+                                   cstate->current_fh.fh_dentry,
+                                   verify->ve_bmval,
                                    rqstp, 0);
        /*
         * If nfsd4_encode_fattr() ran out of space, assume that's because