On Mon, 29 Oct 2012 07:49:42 -0700 Linus Torvalds
wrote:
> Because there's no reason to believe that '9' is in any way a worse
> random number than something page-shift-related, is there?
9 is much better than PAGE_SHIFT. PAGE_SIZE can vary by a factor of
16, depending on config.
Everyone
* J. Bruce Fields (bfie...@fieldses.org) wrote:
> On Mon, Oct 29, 2012 at 11:13:43AM -0400, Mathieu Desnoyers wrote:
> > * Linus Torvalds (torva...@linux-foundation.org) wrote:
> > > On Mon, Oct 29, 2012 at 5:42 AM, Mathieu Desnoyers
> > > wrote:
> > > >
> > > > So defining e.g.:
> > > >
> > > >
On Mon, Oct 29, 2012 at 11:13:43AM -0400, Mathieu Desnoyers wrote:
> * Linus Torvalds (torva...@linux-foundation.org) wrote:
> > On Mon, Oct 29, 2012 at 5:42 AM, Mathieu Desnoyers
> > wrote:
> > >
> > > So defining e.g.:
> > >
> > > #include
> > >
> > > #define DFR_HASH_BITS (PAGE_SHIFT -
* Linus Torvalds (torva...@linux-foundation.org) wrote:
> On Mon, Oct 29, 2012 at 5:42 AM, Mathieu Desnoyers
> wrote:
> >
> > So defining e.g.:
> >
> > #include
> >
> > #define DFR_HASH_BITS (PAGE_SHIFT - ilog2(BITS_PER_LONG))
> >
> > would keep the intended behavior in all cases: use one page
On Mon, Oct 29, 2012 at 5:42 AM, Mathieu Desnoyers
wrote:
>
> So defining e.g.:
>
> #include
>
> #define DFR_HASH_BITS (PAGE_SHIFT - ilog2(BITS_PER_LONG))
>
> would keep the intended behavior in all cases: use one page for the hash
> array.
Well, since that wasn't true before either because of
* Sasha Levin (levinsasha...@gmail.com) wrote:
> Switch cache to use the new hashtable implementation. This reduces the amount
> of
> generic unrelated code in the cache implementation.
>
> Signed-off-by: Sasha Levin
> ---
> net/sunrpc/cache.c | 20 +---
> 1 file changed, 9
* Sasha Levin (levinsasha...@gmail.com) wrote:
Switch cache to use the new hashtable implementation. This reduces the amount
of
generic unrelated code in the cache implementation.
Signed-off-by: Sasha Levin levinsasha...@gmail.com
---
net/sunrpc/cache.c | 20 +---
1 file
On Mon, Oct 29, 2012 at 5:42 AM, Mathieu Desnoyers
mathieu.desnoy...@efficios.com wrote:
So defining e.g.:
#include linux/log2.h
#define DFR_HASH_BITS (PAGE_SHIFT - ilog2(BITS_PER_LONG))
would keep the intended behavior in all cases: use one page for the hash
array.
Well, since that
* Linus Torvalds (torva...@linux-foundation.org) wrote:
On Mon, Oct 29, 2012 at 5:42 AM, Mathieu Desnoyers
mathieu.desnoy...@efficios.com wrote:
So defining e.g.:
#include linux/log2.h
#define DFR_HASH_BITS (PAGE_SHIFT - ilog2(BITS_PER_LONG))
would keep the intended behavior in
On Mon, Oct 29, 2012 at 11:13:43AM -0400, Mathieu Desnoyers wrote:
* Linus Torvalds (torva...@linux-foundation.org) wrote:
On Mon, Oct 29, 2012 at 5:42 AM, Mathieu Desnoyers
mathieu.desnoy...@efficios.com wrote:
So defining e.g.:
#include linux/log2.h
#define DFR_HASH_BITS
* J. Bruce Fields (bfie...@fieldses.org) wrote:
On Mon, Oct 29, 2012 at 11:13:43AM -0400, Mathieu Desnoyers wrote:
* Linus Torvalds (torva...@linux-foundation.org) wrote:
On Mon, Oct 29, 2012 at 5:42 AM, Mathieu Desnoyers
mathieu.desnoy...@efficios.com wrote:
So defining e.g.:
On Mon, 29 Oct 2012 07:49:42 -0700 Linus Torvalds
torva...@linux-foundation.org wrote:
Because there's no reason to believe that '9' is in any way a worse
random number than something page-shift-related, is there?
9 is much better than PAGE_SHIFT. PAGE_SIZE can vary by a factor of
16,
Switch cache to use the new hashtable implementation. This reduces the amount of
generic unrelated code in the cache implementation.
Signed-off-by: Sasha Levin
---
net/sunrpc/cache.c | 20 +---
1 file changed, 9 insertions(+), 11 deletions(-)
diff --git a/net/sunrpc/cache.c
Switch cache to use the new hashtable implementation. This reduces the amount of
generic unrelated code in the cache implementation.
Signed-off-by: Sasha Levin levinsasha...@gmail.com
---
net/sunrpc/cache.c | 20 +---
1 file changed, 9 insertions(+), 11 deletions(-)
diff --git
14 matches
Mail list logo