mm/writeback: minor clean up for highmem_dirtyable_memory
authorMiaohe Lin <linmiaohe@huawei.com>
Mon, 28 Feb 2022 22:59:51 +0000 (09:59 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 28 Feb 2022 22:59:51 +0000 (09:59 +1100)
commit29203dffe62381d4170b65753f9c072a236e3ba4
tree9318b98762030654d5333ff9d252af7db8953168
parentb9882b403f424c61a5e11b1e0c8e67fc06e22327
mm/writeback: minor clean up for highmem_dirtyable_memory

Since commit a804552b9a15 ("mm/page-writeback.c: fix dirty_balance_reserve
subtraction from dirtyable memory"), local variable x can not be negative.
And it can not overflow when it is the total number of dirtyable highmem
pages.  Thus remove the unneeded comment and overflow check.

Link: https://lkml.kernel.org/r/20220224115416.46089-1-linmiaohe@huawei.com
Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
mm/page-writeback.c