Merge tag 'nfs-for-5.11-1' of git://git.linux-nfs.org/projects/trondmy/linux-nfs
[linux-2.6-microblaze.git] / fs / nfs / nfs4xdr.c
index de69276..ac6b79e 100644 (file)
@@ -6409,10 +6409,8 @@ nfs4_xdr_dec_getacl(struct rpc_rqst *rqstp, struct xdr_stream *xdr,
        struct compound_hdr hdr;
        int status;
 
-       if (res->acl_scratch != NULL) {
-               void *p = page_address(res->acl_scratch);
-               xdr_set_scratch_buffer(xdr, p, PAGE_SIZE);
-       }
+       if (res->acl_scratch != NULL)
+               xdr_set_scratch_page(xdr, res->acl_scratch);
        status = decode_compound_hdr(xdr, &hdr);
        if (status)
                goto out;