diff options
author | Andrea Arcangeli <andrea@suse.de> | 2005-05-05 19:15:04 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-05-05 19:36:30 -0400 |
commit | e422fd2c965ad1b0e4eadaabd0adb77e8a93e74e (patch) | |
tree | a29a10773141fb0da142abb45ac618f2913f981d /fs/inode.c | |
parent | f48d9663f19afb88ac0e45b825da523180f1f9c0 (diff) |
[PATCH] avoid -ENOMEM due reclaimable slab caches
This makes sure that reclaimable buffer headers and reclaimable inodes
are accounted properly during the overcommit checks.
Signed-off-by: Andrea Arcangeli <andrea@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'fs/inode.c')
-rw-r--r-- | fs/inode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/inode.c b/fs/inode.c index af8fd78d2099..90a110feb713 100644 --- a/fs/inode.c +++ b/fs/inode.c | |||
@@ -1336,7 +1336,7 @@ void __init inode_init(unsigned long mempages) | |||
1336 | 1336 | ||
1337 | /* inode slab cache */ | 1337 | /* inode slab cache */ |
1338 | inode_cachep = kmem_cache_create("inode_cache", sizeof(struct inode), | 1338 | inode_cachep = kmem_cache_create("inode_cache", sizeof(struct inode), |
1339 | 0, SLAB_PANIC, init_once, NULL); | 1339 | 0, SLAB_RECLAIM_ACCOUNT|SLAB_PANIC, init_once, NULL); |
1340 | set_shrinker(DEFAULT_SEEKS, shrink_icache_memory); | 1340 | set_shrinker(DEFAULT_SEEKS, shrink_icache_memory); |
1341 | 1341 | ||
1342 | /* Hash may have been set up in inode_init_early */ | 1342 | /* Hash may have been set up in inode_init_early */ |