From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 BC1F97E110 for ; Mon, 1 Dec 2025 21:01:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764622916; cv=none; b=oZYob9UcnJLPb6fcZGTIVdyvQbXUx5E2xx5fslD64EQOYdZR44amnaGrmlckxfAqk2llVaAV5YPO77p5du1eJbAzp65YoXevgSNkUi5DU4V3UWguHIARgXAp/q65Sf7GXAB4FtvUUqpnmb9Pg/GQQs8iyjNPK+9vQN6vqJiikhc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764622916; c=relaxed/simple; bh=kDg4UlKqtx2kxAbBrTrmlrpB3BG8XZudH7azKRu6UuM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=HdPvP+6oiQboczHHS4Sq1cxFw1MGPjrLugyLaQn/V/CCSmV3QaoiWmuaEW6DIQ+ZKNZ6NHDTJaVgodzNoCcy3Z1OvBT4s5yCjTXlZM8d4+Iuje4W5603sIcuXKHDQV/3g9JXqRWPy4fHf6tNtICCdHp4F6TiTETyVZILb10M/Ss= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=k8H1Knt2; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="k8H1Knt2" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 442F3C4CEF1; Mon, 1 Dec 2025 21:01:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1764622916; bh=kDg4UlKqtx2kxAbBrTrmlrpB3BG8XZudH7azKRu6UuM=; h=From:To:Cc:Subject:Date:From; b=k8H1Knt2YGtIAfZejDTzedxkXfpLumivEUzblkUViaRS8Zr9XR83xn08hJBwuJciC CJljm6uG7ICFM9yue1j5ek4AHEaQhO8/sMgZI772ARV4Y7abtB0o+HRQBAJ0ZLT08R 8BesBi2Y9w/L7tlPzUSSP2l++fHSq5zgB4v5DnSBpllLrG3MjbbAJCLsyCEGtssDjs ZlRIizMsoBwfqNdulGXSzh+/S5oJmi/GmMscqFM8IDQopW5N6nd61VATl/KY6WrMuD xm8UuHDjKQPG5Wyhqh+kAIBzfXjDSdab6QMtoPmQyCZaIvxYVKhmfzDVcfJq9B+qpg LHe/XjYOOtSLw== From: Jaegeuk Kim To: linux-kernel@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net, linux-mm@kvack.org, Matthew Wilcox Cc: Jaegeuk Kim Subject: [PATCH RESEND 0/4] improve fadvise(POSIX_FADV_WILLNEED) with large folio Date: Mon, 1 Dec 2025 21:01:23 +0000 Message-ID: <20251201210152.909339-1-jaegeuk@kernel.org> X-Mailer: git-send-email 2.52.0.107.ga0afd4fd5b-goog Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit This patch series aims to improve fadvise(POSIX_FADV_WILLNEED). The first patch fixes the broken logic which was not reading the entire range ahead, and two patches were converting the logic to adopt large folio supported by filesystem. The last one is one example of how filesystem can set a desired folio order to boost the readahead speed. Jaegeuk Kim (4): mm/readahead: fix the broken readahead for POSIX_FADV_WILLNEED mm/readahead: use page_cache_sync_ra for FADVISE_FAV_WILLNEED mm/readahead: add a_ops->ra_folio_order to get a desired folio order f2fs: attach a_ops->ra_folio_order to allocate large folios for readahead fs/f2fs/data.c | 9 +++++++++ fs/f2fs/f2fs.h | 3 +++ fs/f2fs/super.c | 1 + fs/f2fs/sysfs.c | 9 +++++++++ include/linux/fs.h | 4 ++++ include/linux/pagemap.h | 12 +++++++++++ mm/readahead.c | 44 ++++++++++++++++++++++++----------------- 7 files changed, 64 insertions(+), 18 deletions(-) -- 2.52.0.107.ga0afd4fd5b-goog