From patchwork Fri May 24 05:36:18 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kefeng Wang X-Patchwork-Id: 13672726 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 28A6DC25B74 for ; Fri, 24 May 2024 05:36:30 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id A228E6B0085; Fri, 24 May 2024 01:36:29 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 9D3216B0088; Fri, 24 May 2024 01:36:29 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 8C34F6B0089; Fri, 24 May 2024 01:36:29 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0010.hostedemail.com [216.40.44.10]) by kanga.kvack.org (Postfix) with ESMTP id 6D1996B0085 for ; Fri, 24 May 2024 01:36:29 -0400 (EDT) Received: from smtpin21.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id 14A34A0878 for ; Fri, 24 May 2024 05:36:29 +0000 (UTC) X-FDA: 82152179298.21.514AC88 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by imf20.hostedemail.com (Postfix) with ESMTP id 0C9DA1C000B for ; Fri, 24 May 2024 05:36:26 +0000 (UTC) Authentication-Results: imf20.hostedemail.com; dkim=none; dmarc=pass (policy=quarantine) header.from=huawei.com; spf=pass (imf20.hostedemail.com: domain of wangkefeng.wang@huawei.com designates 45.249.212.187 as permitted sender) smtp.mailfrom=wangkefeng.wang@huawei.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1716528987; 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-type: content-transfer-encoding:content-transfer-encoding:in-reply-to: references; bh=/OBT11y8QsTbpUsKsV/QpLYK0Cm7+CIiMWinDpwBTlA=; b=5x4BVXjLXDH340nX9V9s4NCPD3c5akiJcXMiJLBiBja/WtU3GA//6CJEi2qfgQrawQRheh XU8tiW0ybFGtROiszScKUZXKj5RZl6B7Lba0LMmvm6tQfFr5BjDlYXp80Kl+eo3piEQeEP D3YLKayaM3lprfWMy5wa5JpOlKDzM+E= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1716528987; a=rsa-sha256; cv=none; b=YKIj1DHsUSjXZeK3gMpNBXOiqrADLyjSP7H2PPmr8gqxh4+UjwGHkpcH5TxITW1SzCI5x6 Cfg6T0gTf/LiPuwHLCcFJcHYZa5sovt6Xatgkks/7OF4rYNy4FtDAsKkMBCHRC2xaVqS6Q PxuhwmjvBnGYRh/i7Bz9ZKnqJ1v4wMM= ARC-Authentication-Results: i=1; imf20.hostedemail.com; dkim=none; dmarc=pass (policy=quarantine) header.from=huawei.com; spf=pass (imf20.hostedemail.com: domain of wangkefeng.wang@huawei.com designates 45.249.212.187 as permitted sender) smtp.mailfrom=wangkefeng.wang@huawei.com Received: from mail.maildlp.com (unknown [172.19.163.48]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4VltwW1YDHzwPKN; Fri, 24 May 2024 13:32:43 +0800 (CST) Received: from dggpemm100001.china.huawei.com (unknown [7.185.36.93]) by mail.maildlp.com (Postfix) with ESMTPS id C580418007E; Fri, 24 May 2024 13:36:23 +0800 (CST) Received: from localhost.localdomain (10.175.112.125) by dggpemm100001.china.huawei.com (7.185.36.93) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.35; Fri, 24 May 2024 13:36:23 +0800 From: Kefeng Wang To: Andrew Morton CC: , David Hildenbrand , Alex Shi , Matthew Wilcox , Kefeng Wang Subject: [PATCH] rmap: remove DEFINE_PAGE_VMA_WALK() Date: Fri, 24 May 2024 13:36:18 +0800 Message-ID: <20240524053618.208895-1-wangkefeng.wang@huawei.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 X-Originating-IP: [10.175.112.125] X-ClientProxiedBy: dggems704-chm.china.huawei.com (10.3.19.181) To dggpemm100001.china.huawei.com (7.185.36.93) X-Stat-Signature: 999ed7863cfwr8jdig5bezcdxgu99w6z X-Rspamd-Queue-Id: 0C9DA1C000B X-Rspam-User: X-Rspamd-Server: rspam01 X-HE-Tag: 1716528986-418564 X-HE-Meta: U2FsdGVkX1+uRSdt8rKhpOoF6NcQjE89yoK1DS64AtXNeMk+r38AaA8HD6LGPg7WRdz9eGcs+SmEXj5ZBbLbCT8+GDrLIpUY3c0ZV2Pkh6aUiDlwH3/7u9FoJASCMNSwwB7J2+7BMebqqVxUS0qvoqJDmojuXvEk1UCh4CdYXd/XyX9jeJq/qw/Wh+4Q9xMpcODThZlq5oh1QWq9f0ciaD7z4/oDT6NjAu+wuXc2igOsbAQvCbwVpZZzoXHoUphUQimfjwU9RRFblZOpqyb3o94vssxabMmywprqwQ5rjHUMZ3+BNnfqqVl2fUEYL1Bti7WjdjemhWAwUOYLHp/Zjq8z9Ot1wjslwo4k8xLyjx/AqRouygO5E9+AgNSVqpZV0AdstqFygyQIkanaUMajHtGdh8rJEdgIl4mR3P/cPfaA/6q29k7QijTYvbMn0cjou1V4lkpZh064Ic6stHc6xrCWfsYMFrBpaVDxVYkKhjpnzvKJYBpWiO/hMoFCRuA41/biBAUbLv+n1mt+gldScrDCzsvMP8Phd4ZKiY9XLtHr/7ptDTS+rHacxGhKm/YfU+wFKqoaKgSQIX+TRa3h52FB3n3CM2vmp9bIFajHblqgdGxH1/iLM3fQkPLlgEjMO533IINaapop+ix+2t0tVCfmSpy56LTCguFFWE/MiXZM8RynU2xtuj6/zVsMSbHwhJ4UUHNcAM+vARrnn7V6ik2U6YHes/uPS86x34/OGNz9JxgrsX2XKtgrYL5BIYBoqKFK5gcmVe891Iy0pfI9PtVjqZa0uhtpjTMfOFDyfN3uPDvH8SWvki0Ml9nlMc/wOhkvRkn90nHQ8ZZgVYhftglgMON7Zcnu+eJGYhP5SU2Ey+3iFT8L0buIUyPXkNXyc2/v+0qzye8prvNvblLDhZCYVNHHWw7MWC8FCflzRzjKSH2vvZi+1C8KgQtWDp1fgxYsY/RGcStHXjpIf7Z OJ8wRqNG KOgn7c37VY9Iac8CVYR5dxDfNPEescc36CPjgT19GiInWDvKcVihV8KnCnwbmpS9FCcfGHsVaWkEoJbk0jSpLgQSW2OjBLK68y3Mse5vfJrbYuqKuV0ozTgk8xV7wXARhwHquZIvpfKbLFCI+dNU0+bfeazX1ygFbVH4BhDGX6gXmXeGw+sXUcwFpoSxjevOhiTtk 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: This is no more user since commit 40d707f33db5 ("mm/ksm: use folio in write_protect_page"), so remove DEFINE_PAGE_VMA_WALK(). Signed-off-by: Kefeng Wang Reviewed-by: David Hildenbrand --- include/linux/rmap.h | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/include/linux/rmap.h b/include/linux/rmap.h index 7229b9baf20d..628790d30b3a 100644 --- a/include/linux/rmap.h +++ b/include/linux/rmap.h @@ -681,16 +681,6 @@ struct page_vma_mapped_walk { unsigned int flags; }; -#define DEFINE_PAGE_VMA_WALK(name, _page, _vma, _address, _flags) \ - struct page_vma_mapped_walk name = { \ - .pfn = page_to_pfn(_page), \ - .nr_pages = compound_nr(_page), \ - .pgoff = page_to_pgoff(_page), \ - .vma = _vma, \ - .address = _address, \ - .flags = _flags, \ - } - #define DEFINE_FOLIO_VMA_WALK(name, _folio, _vma, _address, _flags) \ struct page_vma_mapped_walk name = { \ .pfn = folio_pfn(_folio), \