Re: [PATCH v1 14/42] NFSD: Update the NFSv3 PATHCONF3res encoder to use struct xdr_stream

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

 



On Mon, Mar 01, 2021 at 10:16:43AM -0500, Chuck Lever wrote:
> +	*p++ = resp->p_no_trunc ? xdr_one : xdr_zero;
> +	*p++ = resp->p_chown_restricted ? xdr_one : xdr_zero;
> +	*p++ = resp->p_case_insensitive ? xdr_one : xdr_zero;
> +	*p = resp->p_case_preserving ? xdr_one : xdr_zero;

Wouldn't a little xdr_encode_bool helper for this common pattern be
nice?



[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