diff options
author | Xianting Tian <[email protected]> | 2020-10-20 16:22:01 +0800 |
---|---|---|
committer | Theodore Ts'o <[email protected]> | 2020-12-03 09:15:29 -0500 |
commit | 46bac5352929f75c1ec0c2395b06dcbc0fbaee69 (patch) | |
tree | 0032b3c1a5e0b90a4089c0ec4d59837efc77e472 | |
parent | 7b721e6d334c9699fcd94553a7fe073ec717d926 (diff) |
ext4: remove the null check of bio_vec page
bv_page can't be NULL in a valid bio_vec, so we can remove the NULL check,
as we did in other places when calling bio_for_each_segment_all() to go
through all bio_vec of a bio.
Reviewed-by: Jan Kara <[email protected]>
Signed-off-by: Xianting Tian <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Theodore Ts'o <[email protected]>
-rw-r--r-- | fs/ext4/page-io.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/fs/ext4/page-io.c b/fs/ext4/page-io.c index defd2e10dfd1..cb135a94482d 100644 --- a/fs/ext4/page-io.c +++ b/fs/ext4/page-io.c @@ -111,9 +111,6 @@ static void ext4_finish_bio(struct bio *bio) unsigned under_io = 0; unsigned long flags; - if (!page) - continue; - if (fscrypt_is_bounce_page(page)) { bounce_page = page; page = fscrypt_pagecache_page(bounce_page); |