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/buffer.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/buffer.c')
-rw-r--r-- | fs/buffer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/buffer.c b/fs/buffer.c index 5f525b3c6d9f..6ed59497fd4d 100644 --- a/fs/buffer.c +++ b/fs/buffer.c | |||
@@ -3115,7 +3115,7 @@ void __init buffer_init(void) | |||
3115 | 3115 | ||
3116 | bh_cachep = kmem_cache_create("buffer_head", | 3116 | bh_cachep = kmem_cache_create("buffer_head", |
3117 | sizeof(struct buffer_head), 0, | 3117 | sizeof(struct buffer_head), 0, |
3118 | SLAB_PANIC, init_buffer_head, NULL); | 3118 | SLAB_RECLAIM_ACCOUNT|SLAB_PANIC, init_buffer_head, NULL); |
3119 | 3119 | ||
3120 | /* | 3120 | /* |
3121 | * Limit the bh occupancy to 10% of ZONE_NORMAL | 3121 | * Limit the bh occupancy to 10% of ZONE_NORMAL |