From nobody Thu Apr 2 15:41:20 2026 Received: from mail-pg1-f176.google.com (mail-pg1-f176.google.com [209.85.215.176]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CE75E373BE6 for ; Sat, 28 Mar 2026 07:58:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.176 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774684720; cv=none; b=nvGBpOh57B7fguvs+CQHx0qlHV6pSWUOtX8qMysgAGjOZBESfm2g/W/9Ay86uAHSfqFHPegbCw7HycnmuCTLyB7ptcYn2QYEzzT9Ig2EQ6cl/bNqIPOFngjCbFMH9FomrSOyW0H7WFnh8wsSjB83UfTmjit/Tx6DH1onVtL/1Yc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774684720; c=relaxed/simple; bh=VGYr9QL8KedU2uGP4M1/9xYgs+NqdfqvLklxyTJjkU0=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=Z+MtFQxoCxiFzoOXmRyOUFW+DZbptdhg5211Vgkt+NtmnTTweH+1WVnLos/nQ3qL07lGFH0zDM+0iLRBgQLRFVjRuvU06oeV2t6fOUf5+gb8oOT2PfGxVmP4csYVxjGXi4q4MhaOWddMCzJjABbf1pJzeBJODm9LJ7vEFCbBMbI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=ao3JQYMx; arc=none smtp.client-ip=209.85.215.176 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="ao3JQYMx" Received: by mail-pg1-f176.google.com with SMTP id 41be03b00d2f7-c6e2355739dso1211485a12.2 for ; Sat, 28 Mar 2026 00:58:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1774684718; x=1775289518; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=VXhhgvgv1HNQy5Jtoy0WEWOi+G2ao/2SwUeB+IPvwPk=; b=ao3JQYMxWvjTows9kdHjn/0poxcODSIIa4RTPhwB3tHdsgEI7HVz6wZovvSI7HbK9d B0eYCKSSZhtg7wMq7iGPtTCbhKyCOvyoDwFfnqE3iWXIjwoyKEmba/+EanIbDeOdXjON mIDYu5lKvuZ3WCK/5gFc5zPbbLuwKxWpy83WOmxFEeBG6wSuYvnmIHOWOtEpcN4hhNPL IXmQVnIcrUemWNmECPcKJE+TxqUfOmMPxrWUV+CT3c4urkCmsMjSHiyoB3knKn2kwgB7 uu6gje2GEdxg3ITeTSh3ePjgU9C1D55i5CVTUe6ONHyC6Zat80rA/CFp7WnzXFXwvJ9V CTcQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1774684718; x=1775289518; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=VXhhgvgv1HNQy5Jtoy0WEWOi+G2ao/2SwUeB+IPvwPk=; b=Gc5U0qe/JVNIL5EGUgR+Z+SmOdcC1w2WUGCCOrDDqnzHmwSHztpQl6/7BbYiGSeWle u4Ag5N6RE4+kPlIPi8h4W70siIXr0Yoxvy3FEpZ0GMiPt/jeKUY02YK7euvjLs5Lm/Ns Lf4pLSTKhIDQb1U1uwOouA1fTznphtiHa1A3ChtuCVXfIpsIa3134gcq6vsdlNER+Nzm CX/2a2236HhKclCXxXVaOr90FHlD6LAEnQNA11S87h1VUREyH0ir6dwz2H2BxflLKGRw 1NaHxFA9NL0ZlL6zikFgEJzbMGcIwm0n7mKqtELq/orkb4r7FoTEJUjk5v/XA/gqOtiK cggw== X-Forwarded-Encrypted: i=1; AJvYcCX5jfCs7LljtND9KFnZ+VdIIeccyTi4YeG0wgaz/Vy8Q33U1DJtI2WTGt2XUTGoGuz+8GEXfPCqdifY1ak=@vger.kernel.org X-Gm-Message-State: AOJu0YyA+hfZx2T5+vtu6RHpYuFJoVWgFl8YgVu997o9UG8o/E27oEm0 9CLxm3CN0yZIpV6wnSSLhFZ+wgQiSYrKwLzfKXuxei4zyNycS4dCGMyL X-Gm-Gg: ATEYQzzq4nrYSIi0SyxrqM+9i0J3V0rDxCzgsSODxKSgaN/oU/hGtJm/F+uFWcoTE05 q9/maBkjHygZYcYzHtmk7FC1KaOjExNu1VnB/I3Z2Us3eHqBgoxf5WNeoRTRw/7uyuKX7Fhr8li 9dxym0J6umEvFuvL19PD0ppN6lyXBsr8f7s4KrUlHnks4bmUm8qamHYpQxP2GRuanYmF5Frv5qJ N1n6yewAPFHkuI4isaY7MByvsxrQFiGYtwehO6whqFMzgKJRjg3noDjwxMt6TFZFrUi3rz2nqY/ KHN5srbxgydSXCk2ns+qmoBoHXfrGFV7sVKwrDJ3rOObBQjuEZgDZibG4jECmJKVfRgCsTcg6Bv GdhEIXG8LLVud3PSCSLQDzogtfEvdPGmSlf8zXW5ZnKUupMZHPVuJgdMIFNSGKxVaOo6HpF+B+B /tqJhe/kctJ3zofQdIyGU9kKU5+UE24hzXm7u1IDhVwrHA7Pv2+lYNzP2UMEM3Qk8k330Sixh94 s2s6iy5M2brVK6p X-Received: by 2002:a05:6a20:3943:b0:39c:50b4:cd50 with SMTP id adf61e73a8af0-39c87c4adcamr5626144637.61.1774684717861; Sat, 28 Mar 2026 00:58:37 -0700 (PDT) Received: from Barrys-MBP.bbrouter ([2409:8a1e:2e90:6fa0:903d:bf86:180e:c711]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-82ca84644d9sm1448312b3a.13.2026.03.28.00.58.35 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Sat, 28 Mar 2026 00:58:37 -0700 (PDT) From: Barry Song <21cnbao@gmail.com> To: akpm@linux-foundation.org, linux-mm@kvack.org Cc: bhe@redhat.com, baohua@kernel.org, chrisl@kernel.org, kasong@tencent.com, nphamcs@gmail.com, shikemeng@huaweicloud.com, youngjun.park@lge.com, linux-kernel@vger.kernel.org Subject: [PATCH v2 3/3] mm/swap_io.c: rename swap_writepage_* to swap_write_folio_* Date: Sat, 28 Mar 2026 15:58:12 +0800 Message-Id: <20260328075812.11060-4-21cnbao@gmail.com> X-Mailer: git-send-email 2.39.3 (Apple Git-146) In-Reply-To: <20260328075812.11060-1-21cnbao@gmail.com> References: <20260328075812.11060-1-21cnbao@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" From: Baoquan He All these swap_writepage_* functions are hanlding passed in folio, but not page. And this renaming make them consistent with the their counterpart swap_read_folio_* functions. Reviewed-by: Barry Song Reviewed-by: Nhat Pham Signed-off-by: Baoquan He Signed-off-by: Barry Song Acked-by: Chris Li --- mm/swap_io.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/mm/swap_io.c b/mm/swap_io.c index ad0895af6ed8..063cd005ca0d 100644 --- a/mm/swap_io.c +++ b/mm/swap_io.c @@ -375,7 +375,7 @@ static void sio_write_complete(struct kiocb *iocb, long= ret) mempool_free(sio, sio_pool); } =20 -static void swap_writepage_fs(struct swap_info_struct *sis, +static void swap_write_folio_fs(struct swap_info_struct *sis, struct folio *folio, struct swap_iocb **swap_plug) { @@ -412,7 +412,7 @@ static void swap_writepage_fs(struct swap_info_struct *= sis, *swap_plug =3D sio; } =20 -static void swap_writepage_bdev_sync(struct swap_info_struct *sis, +static void swap_write_folio_bdev_sync(struct swap_info_struct *sis, struct folio *folio, struct swap_iocb **plug) { @@ -433,7 +433,7 @@ static void swap_writepage_bdev_sync(struct swap_info_s= truct *sis, __end_swap_bio_write(&bio); } =20 -static void swap_writepage_bdev_async(struct swap_info_struct *sis, +static void swap_write_folio_bdev_async(struct swap_info_struct *sis, struct folio *folio, struct swap_iocb **plug) { @@ -595,17 +595,17 @@ static void swap_read_folio_bdev_async(struct swap_in= fo_struct *sis, =20 static const struct swap_ops bdev_fs_swap_ops =3D { .read_folio =3D swap_read_folio_fs, - .write_folio =3D swap_writepage_fs, + .write_folio =3D swap_write_folio_fs, }; =20 static const struct swap_ops bdev_sync_swap_ops =3D { .read_folio =3D swap_read_folio_bdev_sync, - .write_folio =3D swap_writepage_bdev_sync, + .write_folio =3D swap_write_folio_bdev_sync, }; =20 static const struct swap_ops bdev_async_swap_ops =3D { .read_folio =3D swap_read_folio_bdev_async, - .write_folio =3D swap_writepage_bdev_async, + .write_folio =3D swap_write_folio_bdev_async, }; =20 void setup_swap_ops(struct swap_info_struct *sis) --=20 2.39.3 (Apple Git-146)