]> git.baikalelectronics.ru Git - kernel.git/commit
mm/page_counter: remove an incorrect call to propagate_protected_usage()
authorDonghai Qiao <dqiao@redhat.com>
Fri, 14 Jan 2022 22:05:32 +0000 (14:05 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 15 Jan 2022 14:30:27 +0000 (16:30 +0200)
commit6c3946dd46eeb30c323d1af80b1696b56c10a739
treeb09577a328ca8d4c1563dde98bc71a9018cbd453
parent42dff2a03e03f9e8cc16e0c9325ac5b161d20b09
mm/page_counter: remove an incorrect call to propagate_protected_usage()

propagate_protected_usage() is called to propagate the usage change in
the page_counter structure.  But there is a call to this function from
page_counter_try_charge() when there is actually no usage change.  Hence
this call should be removed.

Link: https://lkml.kernel.org/r/20211118181125.3918222-1-dqiao@redhat.com
Signed-off-by: Donghai Qiao <dqiao@redhat.com>
Reviewed-by: Roman Gushchin <guro@fb.com>
Cc: Michal Hocko <mhocko@kernel.org>
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_counter.c