Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp451432ybz; Tue, 21 Apr 2020 12:15:25 -0700 (PDT) X-Google-Smtp-Source: APiQypJwl9SbkaupFkN4syrwmVgzy8PpATRKOlbPeXwijPs5bTVs/V49Jc6BfzG8WXqRJPcTpAxG X-Received: by 2002:aa7:d3d3:: with SMTP id o19mr20231047edr.76.1587496525751; Tue, 21 Apr 2020 12:15:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587496525; cv=none; d=google.com; s=arc-20160816; b=OJhmjPdj16f0vGwzcjE6TYufCqNQ/x2Hk/EcyvnS41L/WHq4BVXGnC5iuSp8PMqaT2 I+otJZtFvCtOOCmYUAa1q6OgE9cRuVIzb/IOs1SAwjnpoNnilUu7Ict+QqhaOyZf8gSk gWh87oxa57NSMkkgg2C9GYGhjM0Mytf5axpIjyd/B+lResUA3p5PlAT1gAzc/E5nIohI QyEe09JqZjDqgFx/NBNZhUmUnwro2HVrT+EuTzG/2lyAspk04VEfg4KV+rh+QiylpwYc xdJnegh8JtfnORGRnozVzaWsynIWOm+eHN1NUD9r0N63BKqqkCNK8VU/lHUqJYZ5iXjZ z9/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=a/+YOMpTdK2B7DWfew1yvduwiCraaW2/kuntapldYZ0=; b=Lp4d1vdbdSqlwYmBw6CZuJCHzLbl7H+4w0CDtVOGVWh3eU4EeiCFV95TDSLFdJjq+q yNlsP9gNIHSNjuBQnxv/dq/U3mB4E5s5yOXJ7yfw/KXJvT2E+DLZ6PlMzFoeztWpEqIA 1nG93IlBPXaZ2qUI37YDj7HuAsvC53vK7V3QZVAao4nfUvJ0M+LeGQkpxGUTkKaeZON7 01jiGbPm8PpiEl7aFPyjVhuoA0yz1K88pFKXy0NS5jSxFdxHPzsiEYMYuG6u0cB9w53O NuSFRtf9ABkrwR3YxaNYIJmNnRGbdRktm4WCzYOg2IbVi7Jzesgz2bWHGPriv+x3wjl5 GtOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=bUWoO33Y; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e7si2100282edv.284.2020.04.21.12.15.02; Tue, 21 Apr 2020 12:15:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=bUWoO33Y; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726055AbgDUTNs (ORCPT + 99 others); Tue, 21 Apr 2020 15:13:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36312 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726001AbgDUTNs (ORCPT ); Tue, 21 Apr 2020 15:13:48 -0400 Received: from mail-lj1-x241.google.com (mail-lj1-x241.google.com [IPv6:2a00:1450:4864:20::241]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A34F8C0610D6 for ; Tue, 21 Apr 2020 12:13:47 -0700 (PDT) Received: by mail-lj1-x241.google.com with SMTP id n6so11824622ljg.12 for ; Tue, 21 Apr 2020 12:13:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=a/+YOMpTdK2B7DWfew1yvduwiCraaW2/kuntapldYZ0=; b=bUWoO33YlTxWoYWiORjP3cfd0fXYcJlwyVFVKaoJXnsvHiP4GSzVRDCjxFF08py8lN 5ZUrKIqEk822Szjrlp1a4M6EooH0kyC/WpUqGiVwtSTYmjBfkxKXaIUk0OCxAPeXkyQt /6fuXhRJIF6ZD/CXoAAPg2r9Quv9ZDfp9xAv0Cx9MdvuVu74+9KjyhWDEj5qnLon4d8u nXYnLbO9ypaVJ5RXViyX+EC3kVxDVZ/QAZZ0OD1acVRZBUPXSJSR2gBVHUcVu1xrfS9Y rXdzeb62flwCVklON1DT44s3z++HTQophQ/mY77/dUZF7wNPPJZa/MEoe1DHqIarJdWt LZ4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=a/+YOMpTdK2B7DWfew1yvduwiCraaW2/kuntapldYZ0=; b=UBLcTE6xXggZdz51AO489mkKpQdRMfjQ6v4ll3e7+6QCUppnBZ9s7MBsg/v4kLGbZN LIWPvyJ9uuB3mvTD/x73woGig7p6WdhH/g2eKkNcSQ29rcossw9tDjUNgWuVay1RpR7A zt4SeslQ9bQ6RxIEQCkzxaznWGecXmisex/SKyaQINT+BKqRIXgwYDukC+GIv2pfvevk 6u9yKgW3Q5VqLiXMf2zUkwb5PvbY0SgNINN21J0N/MNN7zpV4m5/Dpm2p70SYmHDVGi6 2ISIVTqBOYdYTtgewJ+owGZww+N0mh0+T/2m/CP7gT52Z1ZDQST4kIWAm8WukummKxG3 4/CQ== X-Gm-Message-State: AGi0PuZwA7dA5LE13D6zfK9jw2S8E+HbXJpj7Jg2T2yykcrj7DTxmpfP 6PMmupWUSb9ouRXs4pHv1aMP3gln/WOExvtLgG7J5g== X-Received: by 2002:a05:651c:1209:: with SMTP id i9mr12984953lja.250.1587496425813; Tue, 21 Apr 2020 12:13:45 -0700 (PDT) MIME-Version: 1.0 References: <20200420221126.341272-1-hannes@cmpxchg.org> <20200420221126.341272-2-hannes@cmpxchg.org> In-Reply-To: <20200420221126.341272-2-hannes@cmpxchg.org> From: Shakeel Butt Date: Tue, 21 Apr 2020 12:13:34 -0700 Message-ID: Subject: Re: [PATCH 01/18] mm: fix NUMA node file count error in replace_page_cache() To: Johannes Weiner Cc: Joonsoo Kim , Alex Shi , Hugh Dickins , Michal Hocko , "Kirill A. Shutemov" , Roman Gushchin , Linux MM , Cgroups , LKML , Kernel Team Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Apr 20, 2020 at 3:11 PM Johannes Weiner wrote: > > When replacing one page with another one in the cache, we have to > decrease the file count of the old page's NUMA node and increase the > one of the new NUMA node, otherwise the old node leaks the count and > the new node eventually underflows its counter. > > Fixes: 74d609585d8b ("page cache: Add and replace pages using the XArray") > Signed-off-by: Johannes Weiner Reviewed-by: Shakeel Butt