Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp723796ybg; Fri, 18 Oct 2019 06:29:56 -0700 (PDT) X-Google-Smtp-Source: APXvYqzzOSgdnp8kHcYKBqCMZ/YejuHTB9qMe4AtNy0//a0CPNR1RTczPzGoAKohXRr9QAtAaeH/ X-Received: by 2002:a50:ee81:: with SMTP id f1mr9634421edr.243.1571405396436; Fri, 18 Oct 2019 06:29:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571405396; cv=none; d=google.com; s=arc-20160816; b=gnZg2QbAmTM674/2bUDL+MrflONWWiRB9JV//YkD8KQp+cY5AdL4Dp+6MdcWxX2tx1 SscaoxdZ2JiSkDQ1YdWN7SNGUQy0KsgpBfamw8oRs1rhIUHxjUWTQEV2gZLFcbijKan8 /85YY67J0rvXe1jbhMghHpbbQJK2luZ57hqefSistw5SMwLNeR8fRtPvjcTct4g7hT16 SlSTebw1ahJi9weLeR2gud01ldItaBfFZGU2SV/rLlXCfeo6+BFhmMSJy9djjMOa0GPw tVasWiaO7AJ1yMzl5jrS1SuAanEG/XfpDTSBYBdY7vPznwR9KDYvtsfD61Ppq3zkWUlf N5Cg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=q3pJX2MrXfytbSyDJ57AL3C/ZoFlOwRX3odmA2EJuZI=; b=eyyXHkk844AI8EmHoMcm6TCLFIRhUANrq4gP3HS/NaHELOjjt1yNE7ZuVo1YXkhJ9/ rzc6xwAE1Bta7VHeEhVYQLMBS5E4n8kmRwkoxf1QGFnS/ghPrMJUtb2HtsgLn0ttTWyV r5hyktoH/LNyVl8NJ963gnGN5fyJi1vKbRWt3zZ+1lFK3IQFP54qDdF+sZVk78EqftG7 86lebRsIyaUUC0mIs3ZwCzwahA1rjoGwwRvZxWFR8m1FjQtILSh2GZW1W2NDTQR2273o LJ3uBmnZq2M5RxWFM7e7opfztA025499fVhYIrAt8xuLbv3XrNmGu7rsCoCQT2UxfxOm K6TA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v27si3276097ejb.182.2019.10.18.06.29.20; Fri, 18 Oct 2019 06:29:56 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2393801AbfJQJgB (ORCPT + 99 others); Thu, 17 Oct 2019 05:36:01 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:26991 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1728150AbfJQJgA (ORCPT ); Thu, 17 Oct 2019 05:36:00 -0400 X-UUID: 15178ac1fc394488bdb40d713119e40e-20191017 X-UUID: 15178ac1fc394488bdb40d713119e40e-20191017 Received: from mtkexhb01.mediatek.inc [(172.21.101.102)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 424564879; Thu, 17 Oct 2019 17:35:56 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs06n1.mediatek.inc (172.21.101.129) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Thu, 17 Oct 2019 17:35:55 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by MTKCAS06.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Thu, 17 Oct 2019 17:35:53 +0800 From: Miles Chen To: Andrew Morton CC: , , , , Miles Chen Subject: [PATCH] mm: fix outdated comment in page_get_anon_vma() Date: Thu, 17 Oct 2019 17:35:54 +0800 Message-ID: <20191017093554.22562-1-miles.chen@mediatek.com> X-Mailer: git-send-email 2.18.0 MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Replace DESTROY_BY_RCU with SLAB_TYPESAFE_BY_RCU because SLAB_DESTROY_BY_RCU has been renamed to SLAB_TYPESAFE_BY_RCU by commit 5f0d5a3ae7cf ("mm: Rename SLAB_DESTROY_BY_RCU to SLAB_TYPESAFE_BY_RCU") Signed-off-by: Miles Chen --- mm/rmap.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/mm/rmap.c b/mm/rmap.c index d9a23bb773bf..bdb20f2bbe9f 100644 --- a/mm/rmap.c +++ b/mm/rmap.c @@ -457,9 +457,10 @@ void __init anon_vma_init(void) * chain and verify that the page in question is indeed mapped in it * [ something equivalent to page_mapped_in_vma() ]. * - * Since anon_vma's slab is DESTROY_BY_RCU and we know from page_remove_rmap() - * that the anon_vma pointer from page->mapping is valid if there is a - * mapcount, we can dereference the anon_vma after observing those. + * Since anon_vma's slab is SLAB_TYPESAFE_BY_RCU and we know from + * page_remove_rmap() that the anon_vma pointer from page->mapping is valid + * if there is a mapcount, we can dereference the anon_vma after observing + * those. */ struct anon_vma *page_get_anon_vma(struct page *page) { -- 2.18.0