From nobody Fri Apr 3 20:51:57 2026 Received: from out-179.mta0.migadu.com (out-179.mta0.migadu.com [91.218.175.179]) (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 3C1373859D8 for ; Mon, 23 Mar 2026 09:03:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.179 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774256601; cv=none; b=hH8RQbReX9trPfg72K2Mh2k7T25Ww70BQAPVxjanPoTSl4XTeh02L+QZ5+8uzdshdax+Zf0hkjJRMVLvAOCUNbxHu+IB2TzyQMuV36TBZ518QBEp+03Ey+QZRIM8w9ceZBr6LeaowCaodyOdsimjyjd+RM0DrC3+IN5OpKj4hzM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774256601; c=relaxed/simple; bh=tAOfKqSTQxovhggTRVdAsjwh9o0vobg2gXlbPRtHqG4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=M/L9iZi2NVShl5mtJJJMcdSDfPsAojruG9F0oQdgK8B53OMzkf9S06YkSt2ZS1lxJmNulLMQvSkV4qdUfgHd2PM/q3hmgPFDmzxLJnIrRweMx1OH0FizRVckl5UzztRidWbYWRYt7GakB/G3XzvJcw3yHx1zhQOw77hO9M0eI7o= 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=xXnx8bmE; arc=none smtp.client-ip=91.218.175.179 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="xXnx8bmE" 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=1774256597; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=AyS+Y+2Ai9P2Zvq5PmdY42vcDofhHhz65pz+VBfdu+o=; b=xXnx8bmEjq3p37iW0Ig9dPqTZXX3HfqXH11c8zishltzxN9p4V/tYpaSQdK4HX4NKu5v9N uwB4RE9efWKUDvR93FfDq0LnpoXnok94gfXbgquI0H6MJ9rvpCF9IhQlPrp46sXVGFFc5c fVApH81zt6fIjp5Rm8tlrqwqzu6XOhw= From: Ye Liu To: Andrew Morton , David Hildenbrand , Axel Rasmussen , Yuanchu Xie Cc: Ye Liu , Lorenzo Stoakes , "Liam R. Howlett" , Vlastimil Babka , Mike Rapoport , Suren Baghdasaryan , Michal Hocko , Wei Xu , linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: [PATCH] mm: Remove unused page_is_file_lru() function Date: Mon, 23 Mar 2026 17:03:04 +0800 Message-ID: <20260323090305.798057-1-ye.liu@linux.dev> 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 X-Migadu-Flow: FLOW_OUT Content-Type: text/plain; charset="utf-8" From: Ye Liu The page_is_file_lru() wrapper function is no longer used. The kernel has moved to folio-based APIs, and all callers should use folio_is_file_lru() instead. Remove the obsolete page-based wrapper function. Signed-off-by: Ye Liu Acked-by: David Hildenbrand (Arm) Reviewed-by: Lorenzo Stoakes (Oracle) --- include/linux/mm_inline.h | 5 ----- 1 file changed, 5 deletions(-) diff --git a/include/linux/mm_inline.h b/include/linux/mm_inline.h index ad50688d89db..4fa480bf1dd2 100644 --- a/include/linux/mm_inline.h +++ b/include/linux/mm_inline.h @@ -30,11 +30,6 @@ static inline int folio_is_file_lru(const struct folio *= folio) return !folio_test_swapbacked(folio); } =20 -static inline int page_is_file_lru(struct page *page) -{ - return folio_is_file_lru(page_folio(page)); -} - static __always_inline void __update_lru_size(struct lruvec *lruvec, enum lru_list lru, enum zone_type zid, long nr_pages) --=20 2.43.0