Messages in this thread | | | From | David Stevens <> | Date | Wed, 22 Feb 2023 13:03:55 +0900 | Subject | Re: [PATCH] mm/khugepaged: alloc_charge_hpage() take care of mem charge errors |
| |
On Wed, Feb 22, 2023 at 6:43 AM Peter Xu <peterx@redhat.com> wrote: > > If memory charge failed, the caller shouldn't call mem_cgroup_uncharge(). > Let alloc_charge_hpage() handle the error itself and clear hpage properly > if mem charge fails. > > Cc: Johannes Weiner <hannes@cmpxchg.org> > Cc: Yang Shi <shy828301@gmail.com> > Cc: David Stevens <stevensd@chromium.org> > Cc: stable@vger.kernel.org > Fixes: 9d82c69438d0 ("mm: memcontrol: convert anon and file-thp to new mem_cgroup_charge() API") > Signed-off-by: Peter Xu <peterx@redhat.com>
Reviewed-by: David Stevens <stevensd@chromium.org>
| |