From patchwork Mon Dec 11 16:22:11 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matthew Wilcox X-Patchwork-Id: 13487537 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 01393C4167B for ; Mon, 11 Dec 2023 16:22:43 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 68F4B6B0160; Mon, 11 Dec 2023 11:22:41 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 5ECAF6B0162; Mon, 11 Dec 2023 11:22:41 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 48D766B0163; Mon, 11 Dec 2023 11:22:41 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id 3851E6B0160 for ; Mon, 11 Dec 2023 11:22:41 -0500 (EST) Received: from smtpin21.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id F3FE2140779 for ; Mon, 11 Dec 2023 16:22:40 +0000 (UTC) X-FDA: 81555055722.21.0F1AFF0 Received: from casper.infradead.org (casper.infradead.org [90.155.50.34]) by imf09.hostedemail.com (Postfix) with ESMTP id 28F8014000E for ; Mon, 11 Dec 2023 16:22:38 +0000 (UTC) Authentication-Results: imf09.hostedemail.com; dkim=pass header.d=infradead.org header.s=casper.20170209 header.b=Lr2CTRVJ; spf=none (imf09.hostedemail.com: domain of willy@infradead.org has no SPF policy when checking 90.155.50.34) smtp.mailfrom=willy@infradead.org; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1702311759; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=33KUUF/ySimUhV9jASeOjZ5zL4N9XyyJWR+2KJrx5Hk=; b=f6QtW8wvWEjL4USPrdX6kdfmz3DvVHHo/RWFpV9r9pZFjj5r/w9J7xRba6TfaxVES7TkhM omqPwmSpQ4zhAYWl2RFNJ3t+bEhmnJBPiUTi0XvVhPxzMBDqtQ6QDu+IKD6UwHvMvua+7C /cypiIhL4cFmIdNCvhn9+utj/rL3SuU= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1702311759; a=rsa-sha256; cv=none; b=imKGu+xrRyxUKnXdPdClbcffbp4xVY2JiL0uu032WQXuUvb/0pQg8P045HcyQtkGfxIZHw 0QqH86Xx11USmQx4qgdxRYqc9Hjk+kIEH8b9nuzfAzZBmLfYhqG0/6GBWKbekOmKe9MX+n a1DlCbyh6FjWWR5fptpfXUqU80rE7wM= ARC-Authentication-Results: i=1; imf09.hostedemail.com; dkim=pass header.d=infradead.org header.s=casper.20170209 header.b=Lr2CTRVJ; spf=none (imf09.hostedemail.com: domain of willy@infradead.org has no SPF policy when checking 90.155.50.34) smtp.mailfrom=willy@infradead.org; dmarc=none DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:MIME-Version: References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type:Content-ID:Content-Description; bh=33KUUF/ySimUhV9jASeOjZ5zL4N9XyyJWR+2KJrx5Hk=; b=Lr2CTRVJADfs0+EaFov/fgR9Oe gSco9XGKb22BcedR5gqVmkPqCXQw3cGatZt4b3B7HnMrhBIrC/xsltH1dpGvEgowmuXr9P9p3lltY ygoAXrYCubX6QKuQD0bxj5eq70HF5Ax2j2+FngC2VsYkeZgQBdCXkf30rkexFMgTEvi0dc8ybbJoT HneM6bMuMG7BTAY7+5rUMHP5ISyDf0FtrXNkqzFDt7LzTJ99vx/B/N47H7deLxUHcO8BGsVeAVovh IPzm7hW96KcM1D5vRCXA7N8zTbYnOd8ZICgo+VWmxAJ4NS/6FOJBFziGKKaWvc9wrTdju9tPyZLsf Rt1ntwOA==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1rCj2u-0090JT-F2; Mon, 11 Dec 2023 16:22:16 +0000 From: "Matthew Wilcox (Oracle)" To: Andrew Morton Cc: "Matthew Wilcox (Oracle)" , linux-mm@kvack.org Subject: [PATCH 6/9] mm: Remove references to page_add_new_anon_rmap in comments Date: Mon, 11 Dec 2023 16:22:11 +0000 Message-Id: <20231211162214.2146080-7-willy@infradead.org> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20231211162214.2146080-1-willy@infradead.org> References: <20231211162214.2146080-1-willy@infradead.org> MIME-Version: 1.0 X-Rspamd-Queue-Id: 28F8014000E X-Rspam-User: X-Stat-Signature: ptmad136wdqnah8kd133ncks478x45q9 X-Rspamd-Server: rspam03 X-HE-Tag: 1702311758-802506 X-HE-Meta: U2FsdGVkX1/wn02higJFVHHwFdLcXaLWLdZvny6rsCS0uS8KfIUUaJxDjvoLx4behIz33ITUj5SzZFNTKBqPkt7aFOevXpANcw3kmxSf6asUQDx6vW1KvWZu0BI6l+xjK3UD0ZZp+KlFZRaJH0NcQmYGNYYoJHOiN232x50zdTILF+jN3PrHWe5F8projFbp+zOerDgQsrSTrSKIvPKByxvzyBnoMISWq1HS54UcglVoHX/bTnyvMpy8pNHlYNpC+GkLZqoL+51Jmt2JglFIHsHwpzWa3IYpWmbdhqv9plSeltZJaCccAA/W3b5iEvr5A7EPrjJ7hBeqGE6QdABmX28SbGXKpI/cdnn1I6zjtBhwFLnHsmcwcENGU/cypGa9pg7I50KiTZdu5jmGYm4EoHXAHelnlMkhDV8Vo1lgNC1QgGhELQa1H4PFaam3IqyywceElseSoJyk5Vg7mad6oAChPxB48xxwhYK4V6fxWBiGSKis9BG1nWe6A4tZXUKzz1ob9c67tr43b9JJqwQwJr/ZEaft8zWDjZxC720NqM9sFNf/wrJnxeDSera6C73nqU6gezhc96FHrl5WSZbP/9oZnkGmXZHnyQUwx4uSr8Pw6Ea4xTdjTDYTFvNL/bCPa9iEV0EWFWkGk2+HazY7Oz3gTFHpVfToNy9cFksQ+eGZJz3Mrii1eiq7gAKFETfEs5+SoBoIWALpPzwhPzyFCf7+lSgxGZFAsKpscFMYc3RXYEWj3xSv9X1MB6dpMONtXXNKcWt907pyzR5br/k1nFHOSRqWMyQj8Om++Xcq5koUR1VdU3AWjmOcGKVykKiWl3HS1kJzcBIWW165pwSftCf5/Alnzs2My3Ldg2b2a36rjt5On0ILloKEYtw6lJrEbzMIjVR25Vt2NEKWqScDw/i2/Pz/BFIPrWp0diNYqbFvoVnB5CVMAPeyYaeTEYBZT608YybqTpBQHak34mS sinNjVjd E4pgd5ALwhsCQjkfyRz0Wc1yIup8rGsHBqIYctr7wcjy4fOdWRvHS9B/ly9LrmOvzuXdpCxNdV+MXjZ8PqL66y2RGzNZWY1SMYBA5l0ZuMeTsZ3+xwnGZL82fyGeyy7iMW0LE6rCjGL91BTv/k1fp0o/ryWkG7hYAlCZ9SBj6AZOqE8W1poATFFw9GtpsoK7GxW+aNcIZ2aw90aS7A+NWrBC4TA3BdfRfciTFo7DJZhhEVHAoshXL//9z7uP1RvUHoyL2 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: Refer to folio_add_new_anon_rmap() instead. Signed-off-by: Matthew Wilcox (Oracle) Reviewed-by: David Hildenbrand --- mm/rmap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mm/rmap.c b/mm/rmap.c index de9426ad0f1b..f3d49ec197ef 100644 --- a/mm/rmap.c +++ b/mm/rmap.c @@ -1231,9 +1231,9 @@ static void __page_check_anon_rmap(struct folio *folio, struct page *page, * We have exclusion against page_add_anon_rmap because the caller * always holds the page locked. * - * We have exclusion against page_add_new_anon_rmap because those pages + * We have exclusion against folio_add_new_anon_rmap because those pages * are initially only visible via the pagetables, and the pte is locked - * over the call to page_add_new_anon_rmap. + * over the call to folio_add_new_anon_rmap. */ VM_BUG_ON_FOLIO(folio_anon_vma(folio)->root != vma->anon_vma->root, folio);