From patchwork Tue Jun 4 11:48: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: 13685094 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 14CA4C27C50 for ; Tue, 4 Jun 2024 11:49:07 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id A606A6B00B7; Tue, 4 Jun 2024 07:49:06 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 968A26B00BD; Tue, 4 Jun 2024 07:49:06 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 7E2AC6B00BB; Tue, 4 Jun 2024 07:49:06 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id 494676B00B7 for ; Tue, 4 Jun 2024 07:49:06 -0400 (EDT) Received: from smtpin23.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay05.hostedemail.com (Postfix) with ESMTP id F147940AE7 for ; Tue, 4 Jun 2024 11:49:05 +0000 (UTC) X-FDA: 82193035050.23.CE3DD2D Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by imf15.hostedemail.com (Postfix) with ESMTP id E013EA000B for ; Tue, 4 Jun 2024 11:49:02 +0000 (UTC) Authentication-Results: imf15.hostedemail.com; dkim=none; dmarc=pass (policy=quarantine) header.from=huawei.com; spf=pass (imf15.hostedemail.com: domain of wangkefeng.wang@huawei.com designates 45.249.212.188 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=1717501744; 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=l1e6C2xDh6OAMQcOeLxRDAiB6JfMQkCRgjTehPm/naA=; b=iKPM1HZA86aHTHlz5p5+59OVzGk7aPrEUxKi1m8IHuSkU+XAiQOqAkClG09HcUwm0Pd0Zf 3AqfrWJ+yVvMjF04F1+wlMm+Yye94cFdtL+d5ZLCgA25VRtCSi/OM5LkDus+FIcCTR6/Oe dEHE9dcmKuzLsnDFlEJPkk/Zzi4paEY= ARC-Authentication-Results: i=1; imf15.hostedemail.com; dkim=none; dmarc=pass (policy=quarantine) header.from=huawei.com; spf=pass (imf15.hostedemail.com: domain of wangkefeng.wang@huawei.com designates 45.249.212.188 as permitted sender) smtp.mailfrom=wangkefeng.wang@huawei.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1717501744; a=rsa-sha256; cv=none; b=4IPMhA4+2PBT6rMHdCvpiYkIM9NUPdKjdfp4jE6J/lK/7Mtbnua4o0ysTQeoRliJaonJjs 3BQmHfwyY71iUQwzscw0Grhxp4SulLnPCN2ReDSm0E1YS3VDkZh/cYugQooBRJ0yn/AEle 4KI1g+9UTK3u9bbOkzh6N9hRctktHBw= Received: from mail.maildlp.com (unknown [172.19.163.252]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4VtpfL3rxZzmX6C; Tue, 4 Jun 2024 19:44:26 +0800 (CST) Received: from dggpemm100001.china.huawei.com (unknown [7.185.36.93]) by mail.maildlp.com (Postfix) with ESMTPS id 4ABE6180069; Tue, 4 Jun 2024 19:48:58 +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.39; Tue, 4 Jun 2024 19:48:57 +0800 From: Kefeng Wang To: Andrew Morton CC: Helge Deller , Daniel Vetter , David Hildenbrand , Matthew Wilcox , , Jonathan Corbet , Kefeng Wang Subject: [PATCH 0/4] mm: remove page_maybe_dma_pinned() and page_mkclean() Date: Tue, 4 Jun 2024 19:48:18 +0800 Message-ID: <20240604114822.2089819-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: dggems705-chm.china.huawei.com (10.3.19.182) To dggpemm100001.china.huawei.com (7.185.36.93) X-Rspamd-Queue-Id: E013EA000B X-Stat-Signature: sbgaqn931ojbw4csspr1o3u764wsc1yk X-Rspam-User: X-Rspamd-Server: rspam11 X-HE-Tag: 1717501742-762448 X-HE-Meta: U2FsdGVkX19jh3oFtkh3/pZ4SdMlx9LHA0HlTQ1nLY/jA1sya8UGlUPYB3C4dv2zPpQzLXgSf2Firm3CU+EhC+0MndVtzOCKYVMBsOHL6MUYLo51PPrklxZzL5qn4p0iJwqazxIOQ4I/qgoxC6OngOeK0+FTt9AimjexbrhiixgUIPBu7RF4/m2rNWvQv59hr/PadarydAmTrSGhm6PhRvVYOI3TiLF6nNUFf36sYcyqR8EBqZ3yZFzAtJgea/aBUFtHvFrSGbBfEOWZmoDGvF/Kq9SZlzlt9jFymwafTeWb7Wi5NtGTbHab6Nb+4nLAzETQCkmraOlexI3R/JNaqjJXZXj6zkjFBjupAWKsV/Ckr6k44yf3Algb0c1nMWkiAAhu8fho1CpwnUs0GoLKL0AsidhUD0ng1N4QeCsJdAluLp932QocWE/EKaISUw2ITii+WI6QL+oMtxmDaRyLPNd9k8XK+ZKaKTh19BM/eIOQyRwniyWNQ+8NM6btm5AzR9+1mss68Bj0ETWyfBii8cPYgXhdssq5jnS/Z1l1Bkq1RwOFk6VmE1cJ+1BVTmBeKJfMUljxPGRqIYmR7t/ehNyK4xJSLZr9zrt5GzAu41nrEAd26Z647/sf6d8eAo8sJcCroKkQWDq8v9c9BGBMI4sQzVnqHNYiszlK2bJ/THJEOX9Ku+cdsppUt6BhsVFXG8aIYgOBVSk6bFZwvcJifNTBtxP5idy8m9v8eogJuXcK9QUJY5V47c49652blBIwnoFLw5yylzhEmVkrVLyvq1Rbn2p5fxBySEYy94/CEIWzQObdCRhiQnAl8Dm/36iJ/upq7q5pNgrPdZIBAcybY/gQkuUcLgM1g5hScJRhfgZemdePZuyhwXhU22cGd4KFd+qNqKHP7xYCJu0XwlOg+UcQXxqgEX9sG9mujXLRFE9upsl3TFMGxv8cknLblaeV2Td2DAVCbLbFb3rOrhe PNy9h8HP tIWCenXJTmu7mGgJ9msSPoZl9jp5emG2YLlKPUfCgPxgfi0x2RNLMKlQcoaT+mPzIEQPVyvnNONvm6P6+1qETpDvj3oQuP2m7kzQp0Y0SwtFFX2hsy9+aO4V8h1Sh54yzwfLxDCjC7hXYbwgBYDynQBvbgUr0PzqYTLRDmXICjSoiKNQ= 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: Most page_maybe_dma_pinned() and page_mkclean() callers have been converted to the folio equivalents, after two more convertsions, remove them and update the comment and documention. Kefeng Wang (4): fs/proc/task_mmu: use folio API in pte_is_pinned() mm: remove page_maybe_dma_pinned() fb_defio: use a folio in fb_deferred_io_work() mm: remove page_mkclean() Documentation/core-api/pin_user_pages.rst | 16 ++++++++-------- drivers/video/fbdev/core/fb_defio.c | 13 +++++++------ fs/proc/task_mmu.c | 8 ++++---- include/linux/mm.h | 11 +++-------- include/linux/rmap.h | 4 ---- mm/gup.c | 2 +- mm/mremap.c | 2 +- 7 files changed, 24 insertions(+), 32 deletions(-)