From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out-177.mta0.migadu.com (out-177.mta0.migadu.com [91.218.175.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 90AA53D2FEC for ; Wed, 15 Apr 2026 08:57:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.177 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776243438; cv=none; b=VDsx/ZYMIKvT3ku9NXkP61EkfMsq9C/AtGfO4q0+3ouGRxtp+AsexYLmq+wUcojBOCNExtvy6H4+J4JQUnvMpxBS+bLeCjeCl1M3OeqMshpRYHq8iQeVRClmVaOhvMcnMn23V/c9d7DayjyzDICET/KeICoD8RbRHPycNROBr4M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776243438; c=relaxed/simple; bh=GGF/FSDkd180GxuxR2GlmTPSdEQeK/XZv7h4JFdMJ48=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-type; b=MJsk53IUJTBY9S6JI2nNw6O8WsLXYvNp26ivTwW3TU20l2BRSA7uY6h66pl65hv4oCqqvIO3WORnA2fWP7W7hB8j9hZWcKqLQsMroM0y9RhHd0XE/uA5nsI06IaP8ZM7ZF/i4Hm4drZrA5ikg8haqDnKowZ2t3Uhjhs5bHJnzzU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=MheWrTxJ; arc=none smtp.client-ip=91.218.175.177 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="MheWrTxJ" X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1776243434; h=from:from: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:in-reply-to:references:references; bh=52HLBVvHVecdaxTy8P7ZBrFPBClgeVlPlb7Bxuv2UKI=; b=MheWrTxJEYOdf/Kyx1XxQdKXR06siIs9BpuMqrgbRC1jzBAiCtgjj3JHpw9wfpErU9q3wR wxvXlucBDP5CAfbcvLooGSr4Y4gYXlmijSPgtweXFaw4GyTHsRiEIqIpfjv7IlzKe1elPu KmUr7DE2FgzWFEC+rb6SLVky1JCGGOQ= From: Baoquan He To: linux-mm@kvack.org Cc: akpm@linux-foundation.org, baohua@kernel.org, chrisl@kernel.org, kasong@tencent.com, nphamcs@gmail.com, shikemeng@huaweicloud.com, youngjun.park@lge.com, linux-kernel@vger.kernel.org, Baoquan He Subject: [PATCH v3 1/3] mm/swap: rename mm/page_io.c to mm/swap_io.c Date: Wed, 15 Apr 2026 16:56:56 +0800 Message-ID: <20260415085658.993859-2-baoquan.he@linux.dev> In-Reply-To: <20260415085658.993859-1-baoquan.he@linux.dev> References: <20260415085658.993859-1-baoquan.he@linux.dev> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-type: text/plain Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT Codes in mm/page_io.c are only related to swap io, it has nothing to do with other page io. Rename it to avoid confusion. Reviewed-by: Nhat Pham Reviewed-by: Barry Song Acked-by: Kairui Song Signed-off-by: Baoquan He --- MAINTAINERS | 2 +- mm/Makefile | 2 +- mm/swap.h | 2 +- mm/{page_io.c => swap_io.c} | 2 -- 4 files changed, 3 insertions(+), 5 deletions(-) rename mm/{page_io.c => swap_io.c} (99%) diff --git a/MAINTAINERS b/MAINTAINERS index 92eb723573aa..6fb19fe0bdd3 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -16948,7 +16948,7 @@ F: Documentation/mm/swap-table.rst F: include/linux/swap.h F: include/linux/swapfile.h F: include/linux/swapops.h -F: mm/page_io.c +F: mm/swap_io.c F: mm/swap.c F: mm/swap.h F: mm/swap_table.h diff --git a/mm/Makefile b/mm/Makefile index 8ad2ab08244e..a65ac900096a 100644 --- a/mm/Makefile +++ b/mm/Makefile @@ -75,7 +75,7 @@ ifdef CONFIG_MMU obj-$(CONFIG_ADVISE_SYSCALLS) += madvise.o endif -obj-$(CONFIG_SWAP) += page_io.o swap_state.o swapfile.o +obj-$(CONFIG_SWAP) += swap_io.o swap_state.o swapfile.o obj-$(CONFIG_ZSWAP) += zswap.o obj-$(CONFIG_HAS_DMA) += dmapool.o obj-$(CONFIG_HUGETLBFS) += hugetlb.o hugetlb_sysfs.o hugetlb_sysctl.o diff --git a/mm/swap.h b/mm/swap.h index bfafa637c458..81a80605fc6a 100644 --- a/mm/swap.h +++ b/mm/swap.h @@ -210,7 +210,7 @@ extern void swap_entries_free(struct swap_info_struct *si, struct swap_cluster_info *ci, unsigned long offset, unsigned int nr_pages); -/* linux/mm/page_io.c */ +/* linux/mm/swap_io.c */ int sio_pool_init(void); struct swap_iocb; void swap_read_folio(struct folio *folio, struct swap_iocb **plug); diff --git a/mm/page_io.c b/mm/swap_io.c similarity index 99% rename from mm/page_io.c rename to mm/swap_io.c index a2c034660c80..4bf210bd677e 100644 --- a/mm/page_io.c +++ b/mm/swap_io.c @@ -1,7 +1,5 @@ // SPDX-License-Identifier: GPL-2.0 /* - * linux/mm/page_io.c - * * Copyright (C) 1991, 1992, 1993, 1994 Linus Torvalds * * Swap reorganised 29.12.95, -- 2.52.0