Commit 91485ae8 authored by Kohei Enju's avatar Kohei Enju Committed by Carlos Llamas
Browse files

UPSTREAM: f2fs: remove unnecessary null checking



When __GFP_DIRECT_RECLAIM (included in both GFP_NOIO and GFP_KERNEL) is
specified, bio_alloc_bioset() never fails to allocate a bio.
Commit 67883ade ("f2fs: remove FAULT_ALLOC_BIO") replaced
f2fs_bio_alloc() with bio_alloc_bioset(), but null checking after
bio_alloc_bioset() was still left.

Fixes: 67883ade ("f2fs: remove FAULT_ALLOC_BIO")
Change-Id: I7d7ff97a71e5031b86b21e8798c20f226a5b0b1b
Signed-off-by: default avatarKohei Enju <enjuk@amazon.com>
Reviewed-by: default avatarJens Axboe <axboe@kernel.dk>
Reviewed-by: default avatarChao Yu <chao@kernel.org>
Signed-off-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>
(cherry picked from commit 53333cdf)
parent c1d2ba6f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment