ext4: remove unneeded check for error allocating bio_post_read_ctx
authorEric Biggers <ebiggers@google.com>
Tue, 31 Dec 2019 18:12:56 +0000 (12:12 -0600)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 17 Jan 2020 21:24:54 +0000 (16:24 -0500)
commitfd5fe2535642982af695f2f77bb7dba5d4aa6aa5
treea457f8a0c1ada4276a18ae9b4f7764e85eafaca1
parent68e45330e341dad2d3a0a3f8ef2ec46a2a0a3bbc
ext4: 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.

Also remove the redundant assignment to ->bi_private.

Signed-off-by: Eric Biggers <ebiggers@google.com>
Link: https://lore.kernel.org/r/20191231181256.47770-1-ebiggers@kernel.org
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/readpage.c