commit | 386bc35a2d548c28a5083b2e162a20251b37cab5 | [log] [tgz] |
---|---|---|
author | Anna Leuschner <anna.m.leuschner@gmail.com> | Mon Oct 22 21:53:36 2012 +0200 |
committer | Jens Axboe <axboe@kernel.dk> | Mon Oct 22 22:00:26 2012 +0200 |
tree | 14d3f0ac36cd9b56b535c3e5aa3c6ed152d6cf6b | |
parent | 65c77fd9e8a1c8c3da0bbbea6b7efa3d6ef265f8 [diff] |
vfs: fix: don't increase bio_slab_max if krealloc() fails 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>