Re: [PATCH 22/50] nfsd4: use xdr_truncate_encode

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Ah, here we got the helper for most of the error handling I asked for
earlier.  Might be worth mentioning in that patch that this gets further
improvements soons.

>  	if (nfserr) {
> -		xdr->p -= 2;
> -		xdr->iov->iov_len -= 8;
> +		xdr->buf->page_len = 0;
> +		xdr_truncate_encode(xdr, starting_len);

Why do we still need to manually set the page_len?

--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Filesystem Development]     [Linux USB Development]     [Linux Media Development]     [Video for Linux]     [Linux NILFS]     [Linux Audio Users]     [Yosemite Info]     [Linux SCSI]

  Powered by Linux