diff options
author | Nick Piggin <npiggin@suse.de> | 2006-06-23 02:03:22 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-06-23 07:42:49 -0700 |
commit | cfd9b7df4abd3257c9e381b0e445817b26a51c0c (patch) | |
tree | cd419f98fbf555fbcd92baf7ca41d45a8744f071 /lib/radix-tree.c | |
parent | 612d6c19db2fd0dc97b0fa370613ecd4a305ffc3 (diff) | |
download | kernel_samsung_smdk4412-cfd9b7df4abd3257c9e381b0e445817b26a51c0c.zip kernel_samsung_smdk4412-cfd9b7df4abd3257c9e381b0e445817b26a51c0c.tar.gz kernel_samsung_smdk4412-cfd9b7df4abd3257c9e381b0e445817b26a51c0c.tar.bz2 |
[PATCH] radix-tree: small
Reduce radix tree node memory usage by about a factor of 4 for small files
(< 64K). There are pointer traversal and memory usage costs for large
files with dense pagecache.
Signed-off-by: Nick Piggin <npiggin@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'lib/radix-tree.c')
-rw-r--r-- | lib/radix-tree.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/radix-tree.c b/lib/radix-tree.c index 35a2d93..7cbdada 100644 --- a/lib/radix-tree.c +++ b/lib/radix-tree.c @@ -33,7 +33,7 @@ #ifdef __KERNEL__ -#define RADIX_TREE_MAP_SHIFT 6 +#define RADIX_TREE_MAP_SHIFT (CONFIG_BASE_SMALL ? 4 : 6) #else #define RADIX_TREE_MAP_SHIFT 3 /* For more stressful testing */ #endif |