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
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
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
3 matches
Mail list logo