[PATCH 1/1] vfs: bio.c: fix: increment capacity only if krealloc() succeeded

2012-09-08 Thread Anna Leuschner
Fix: only increment bio_slab_max if bio_slabs reallocation succeeded Signed-off-by: Anna Leuschner --- fs/bio.c |6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/fs/bio.c b/fs/bio.c index 71072ab..58707ff 100644 --- a/fs/bio.c +++ b/fs/bio.c @@ -74,6 +74,7 @@ static

[PATCH] vfs: fix: don't increase bio_slab_max if krealloc() fails

2012-10-21 Thread Anna Leuschner
bio.c: fix: don't increase bio_slab_max if krealloc() of bio_slabs fails Signed-off-by: Anna Leuschner --- fs/bio.c |6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/fs/bio.c b/fs/bio.c index 9298c65..b96fc6c 100644 --- a/fs/bio.c +++ b/fs/bio.c @@ -75,6

[PATCH v2] vfs: fix: don't increase bio_slab_max if krealloc() fails

2012-10-22 Thread Anna Leuschner
Without the patch, bio_slab_max, representing bio_slabs capacity, is increased before krealloc() of bio_slabs. If krealloc() fails, bio_slab_max is too high. Fix that by only updating bio_slab_max if krealloc() is successful. Signed-off-by: Anna Leuschner --- v2 changes: - describe