]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: remove the null check of bio_vec page
authorXianting Tian <tian.xianting@h3c.com>
Tue, 20 Oct 2020 08:22:01 +0000 (16:22 +0800)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 3 Dec 2020 14:15:29 +0000 (09:15 -0500)
commit367a142089a6b9f20f1bab65fceb32e31af4a7a7
tree0032b3c1a5e0b90a4089c0ec4d59837efc77e472
parent10b50937739e4b092464ad0f370faff8172a02b7
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 <jack@suse.cz>
Signed-off-by: Xianting Tian <tian.xianting@h3c.com>
Link: https://lore.kernel.org/r/20201020082201.34257-1-tian.xianting@h3c.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/page-io.c