]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit326c47a679c81140a0a72d2d2e1a80653befb395
treea457f8a0c1ada4276a18ae9b4f7764e85eafaca1
parentd4ac66e9a474dcf5386ff1e0720d671b735af9af
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