OSDN Git Service

Merge tag 'nfsd-6.2' of git://git.kernel.org/pub/scm/linux/kernel/git/cel/linux
[tomoyo/tomoyo-test1.git] / fs / nfsd / nfs2acl.c
index c43c25a..1457f59 100644 (file)
@@ -246,7 +246,6 @@ nfsaclsvc_encode_getaclres(struct svc_rqst *rqstp, struct xdr_stream *xdr)
        struct nfsd3_getaclres *resp = rqstp->rq_resp;
        struct dentry *dentry = resp->fh.fh_dentry;
        struct inode *inode;
-       int w;
 
        if (!svcxdr_encode_stat(xdr, resp->status))
                return false;
@@ -260,15 +259,6 @@ nfsaclsvc_encode_getaclres(struct svc_rqst *rqstp, struct xdr_stream *xdr)
        if (xdr_stream_encode_u32(xdr, resp->mask) < 0)
                return false;
 
-       rqstp->rq_res.page_len = w = nfsacl_size(
-               (resp->mask & NFS_ACL)   ? resp->acl_access  : NULL,
-               (resp->mask & NFS_DFACL) ? resp->acl_default : NULL);
-       while (w > 0) {
-               if (!*(rqstp->rq_next_page++))
-                       return true;
-               w -= PAGE_SIZE;
-       }
-
        if (!nfs_stream_encode_acl(xdr, inode, resp->acl_access,
                                   resp->mask & NFS_ACL, 0))
                return false;