Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Commit 386bc35a authored by Anna Leuschner's avatar Anna Leuschner Committed by Jens Axboe
Browse files

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: default avatarAnna Leuschner <anna.m.leuschner@gmail.com>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 65c77fd9
Branches
Tags
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment