[pnfs] [PATCH 17/28] fix encode_fsinfo_maxsz
Benny Halevy
bhalevy at panasas.com
Thu Mar 13 09:24:53 EDT 2008
Applied onto the upstream branch
and will be forwarded to Trond.
Thanks!
Benny
On Mar. 11, 2008, 21:31 +0200, Fred Isaman <iisaman at citi.umich.edu> wrote:
> The previous value was not taking into account space for bitmap array size.
>
> Signed-off-by: Fred Isaman <iisaman at citi.umich.edu>
> ---
> fs/nfs/nfs4xdr.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/fs/nfs/nfs4xdr.c b/fs/nfs/nfs4xdr.c
> index d3026ac..8edf687 100644
> --- a/fs/nfs/nfs4xdr.c
> +++ b/fs/nfs/nfs4xdr.c
> @@ -112,7 +112,7 @@ static int nfs4_stat_to_errno(int);
> #define decode_savefh_maxsz (op_decode_hdr_maxsz)
> #define encode_restorefh_maxsz (op_encode_hdr_maxsz)
> #define decode_restorefh_maxsz (op_decode_hdr_maxsz)
> -#define encode_fsinfo_maxsz (op_encode_hdr_maxsz + 2)
> +#define encode_fsinfo_maxsz (encode_getattr_maxsz)
> #define decode_fsinfo_maxsz (op_decode_hdr_maxsz + 11)
> #define encode_renew_maxsz (op_encode_hdr_maxsz + 3)
> #define decode_renew_maxsz (op_decode_hdr_maxsz)
More information about the pNFS
mailing list