diff options
| author | Matt Mackall <mpm@selenic.com> | 2005-03-07 18:03:54 -0800 |
|---|---|---|
| committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-03-07 18:03:54 -0800 |
| commit | c4c62e9417148d205a0de3e18d26cffd4b9678a3 (patch) | |
| tree | 8eb13b34da2a6c07ac7bdba3771e8d88ecd06eca /kernel | |
| parent | 7ad226a285b751f486b657b2ab16204c2a33e925 (diff) | |
[PATCH] base-small: shrink UID hash
CONFIG_BASE_SMALL reduce UID lookup hash
Signed-off-by: Matt Mackall <mpm@selenic.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'kernel')
| -rw-r--r-- | kernel/user.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/user.c b/kernel/user.c index 18f63146602a..734575d55769 100644 --- a/kernel/user.c +++ b/kernel/user.c @@ -18,7 +18,8 @@ * UID task count cache, to get fast user lookup in "alloc_uid" * when changing user ID's (ie setuid() and friends). */ -#define UIDHASH_BITS 8 + +#define UIDHASH_BITS (CONFIG_BASE_SMALL ? 3 : 8) #define UIDHASH_SZ (1 << UIDHASH_BITS) #define UIDHASH_MASK (UIDHASH_SZ - 1) #define __uidhashfn(uid) (((uid >> UIDHASH_BITS) + uid) & UIDHASH_MASK) |
