Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
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
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment