]> git.baikalelectronics.ru Git - kernel.git/commit
mm/writeback: minor clean up for highmem_dirtyable_memory
authorMiaohe Lin <linmiaohe@huawei.com>
Tue, 22 Mar 2022 21:39:31 +0000 (14:39 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 22 Mar 2022 22:57:01 +0000 (15:57 -0700)
commit9b198f0b1309306464a11c2aca272aa8f694cc5e
treea3c354c12aa52b92c3bd151776cb682de0aa4961
parentdfeb45a4e2917b3c501d3d79fcacade4f6c1dd06
mm/writeback: minor clean up for highmem_dirtyable_memory

Since commit 004c8e9da47f ("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: Linus Torvalds <torvalds@linux-foundation.org>
mm/page-writeback.c