Re: [NFS] [PATCH 009 of 11] knfsd: Allow max size of NFSd payload to be configured.

Neil Brown
2006-09-29T02:00:09Z

On Thursday September 28, hugh@veritas.com wrote:
> >
> > I'll submit a patch which uses
> > 12 - PAGE_SHIFT
> > in a little while.
>
> I haven't seen your context; but "12 - PAGE_SHIFT" sounds like a
> bad idea on all those architectures with PAGE_SHIFT 13 or more;
> you'll be on much safer ground working with "PAGE_SHIFT - 12".

Ahhh yes... of course. Thanks.

totalram <<= PAGE_SHIFT - 12;

Is what I want to convert a number of pages to 1/4096 the number of
bytes.

Thanks :-)

NeilBrown