OSDN Git Service

f2fs: remove unneeded check for error allocating bio_post_read_ctx
authorEric Biggers <ebiggers@google.com>
Tue, 31 Dec 2019 18:14:56 +0000 (12:14 -0600)
committerJaegeuk Kim <jaegeuk@kernel.org>
Sat, 18 Jan 2020 00:48:42 +0000 (16:48 -0800)
commite8ce5749d781ec0ccdf03f4f174cc8f709c0057a
treefa5f397f49a45212b9b6601de66c970f6cdf8621
parentb06af2aff28b41099b0efd4f71c8bb4148bf29b5
f2fs: remove unneeded check for error allocating bio_post_read_ctx

Since allocating an object from a mempool never fails when
__GFP_DIRECT_RECLAIM (which is included in GFP_NOFS) is set, the check
for failure to allocate a bio_post_read_ctx is unnecessary.  Remove it.

Signed-off-by: Eric Biggers <ebiggers@google.com>
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/data.c