filemap: minor cleanup for filemap_write_and_wait_range
authorMiaohe Lin <linmiaohe@huawei.com>
Mon, 27 Jun 2022 13:23:51 +0000 (21:23 +0800)
committerakpm <akpm@linux-foundation.org>
Sat, 30 Jul 2022 01:07:14 +0000 (18:07 -0700)
commitccac11da679bc283a5fe3db694d9f4f40245a07e
tree4bfd681823e2f89286d24ac5546bca5015df21ae
parent7f82f922319ede486540e8746769865b9508d2c2
filemap: minor cleanup for filemap_write_and_wait_range

Restructure the logic in filemap_write_and_wait_range to simplify the code
and make it more consistent with file_write_and_wait_range. No functional
change intended.

Link: https://lkml.kernel.org/r/20220627132351.55680-1-linmiaohe@huawei.com
Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
Reviewed-by: Muchun Song <songmuchun@bytedance.com>
Cc: Matthew Wilcox <willy@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/filemap.c