]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm/memcg: revise the using condition of lock_page_lruvec function series
authorAlex Shi <alex.shi@linux.alibaba.com>
Thu, 31 Dec 2020 22:04:07 +0000 (22:04 +0000)
committerJohannes Weiner <hannes@cmpxchg.org>
Thu, 31 Dec 2020 22:04:07 +0000 (22:04 +0000)
commitde3dc4b7861cf1b86df58884501b8f320b62235c
treec40ebed96e68765e7859ac8dd26348e1cfa66e20
parent04d8e61269d35f27b24c3bceb1d1278134ba68b6
mm/memcg: revise the using condition of lock_page_lruvec function series

lock_page_lruvec() and its variants are safe to use under the same
conditions as commit_charge(): add lock_page_memcg() to the comment.

Polished with Hugh Dickins' suggestions, thanks!

Link: https://lkml.kernel.org/r/1608614453-10739-1-git-send-email-alex.shi@linux.alibaba.com
Signed-off-by: Alex Shi <alex.shi@linux.alibaba.com>
Acked-by: Hugh Dickins <hughd@google.com>
Cc: Hugh Dickins <hughd@google.com>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Michal Hocko <mhocko@kernel.org>
Cc: Vladimir Davydov <vdavydov.dev@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/memcontrol.c