vfs: fix: don't increase bio_slab_max if krealloc() fails
authorAnna Leuschner <anna.m.leuschner@gmail.com>
Mon, 22 Oct 2012 19:53:36 +0000 (21:53 +0200)
committerJens Axboe <axboe@kernel.dk>
Mon, 22 Oct 2012 20:00:26 +0000 (22:00 +0200)
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 <anna.m.leuschner@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/bio.c

diff --cc fs/bio.c
Simple merge