Received: from m16.mail.126.com (m16.mail.126.com [220.197.31.9]) (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 35DE42F3C38 for ; Wed, 13 Aug 2025 09:38:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=220.197.31.9 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755077919; cv=none; b=hsure9w30iCjG8PQos3rsSxtQRYm5tOSejIESxQM7bbEX4bLXH3V77ueW2n7TORs/RgMhFk0x1lpqGEXsoiduUEGWOJVKptgAJRZbGlgrR3Woead1BffqOPg7ARIPV8QF/e99nkrTRkubY7M8BtjVhnpGfKlw8+HMASJI9x8azE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755077919; c=relaxed/simple; bh=kEyVBeUy6mpGa0wt4xczIbKFVLTayAhNHPRYX0MjGW4=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=oKnKC7zqxKCw4Uz434B6qYcFKvtKiB4RSJPd6K3nVlh75MWSjOOI+X5LhOharhttzNftq3/MC7VA3FnzOMhYguKnEXzZ00vJE32n3jLpZtctpfcwdgNMvF9ieyKGvp1g/64sJ0Gcu56HUMUvznaPeC1hVqsXjT3AxIFwBSAQBnA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=126.com; spf=pass smtp.mailfrom=126.com; dkim=pass (1024-bit key) header.d=126.com header.i=@126.com header.b=AImHECh8; arc=none smtp.client-ip=220.197.31.9 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=126.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=126.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=126.com header.i=@126.com header.b="AImHECh8" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=126.com; s=s110527; h=From:To:Subject:Date:Message-Id:MIME-Version; bh=jD Ev8IL/23nGWQ3lTXpOICy8DllsO9huiCSCaNsxpfA=; b=AImHECh8C8aa9WqmyF CaQ4qJn5uKCHux1ibvHM0bZAWDk+7654ezQCbVm3/Zyy5c/VKBdPWtplEmfb2kzi 1WrajUQq7pq9+JDFwhhDE3wE5yNty+WCSlW3cLsYvVKeJXVjzlSdmzR8TbwzGhwa 613FhLFPSHQu+iKqsbNlYQEuc= Received: from YLLaptop.. (unknown []) by gzga-smtp-mtada-g1-4 (Coremail) with SMTP id _____wDn_9odWZxo91unBg--.63865S6; Wed, 13 Aug 2025 17:21:45 +0800 (CST) From: Nanzhe Zhao To: Jaegeuk Kim , linux-f2fs@lists.sourceforge.net, linux-fsdevel@vger.kernel.org Cc: Matthew Wilcox , Chao Yu , Yi Zhang , Barry Song <21cnbao@gmail.com>, Nanzhe Zhao Subject: [RFC PATCH 4/9] f2fs: Convert outplace write path page private funcions to folio private functions. Date: Wed, 13 Aug 2025 17:21:26 +0800 Message-Id: <20250813092131.44762-5-nzzhao@126.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20250813092131.44762-1-nzzhao@126.com> References: <20250813092131.44762-1-nzzhao@126.com> Precedence: bulk X-Mailing-List: linux-fsdevel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID:_____wDn_9odWZxo91unBg--.63865S6 X-Coremail-Antispam: 1Uf129KBjvJXoW7Aw4xAr45Kw1DCF4UCF43GFg_yoW8Gw4rpF yDGFnYkrs5W348Xas3tFs5Zw1Fk3y5G3yUWanxCrWxtw4fXr1FqF4rt3WDuFn5trWkJ3W0 va1YyF1rZa15AFJanT9S1TB71UUUUU7qnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDUYxBIdaVFxhVjvjDU0xZFpf9x0zRku4bUUUUU= X-CM-SenderInfo: xq22xtbr6rjloofrz/1tbiZB2oz2icUlplwgAAsF The core function `f2fs_out_place_write` and `__get_segment_type_6` in outplace write path haven't got their legacy page private functions converted which can be harmful for large folios support. Convert them to use our folio private funcions. Signed-off-by: Nanzhe Zhao --- fs/f2fs/data.c | 2 +- fs/f2fs/segment.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/f2fs/data.c b/fs/f2fs/data.c index 415f51602492..5589280294c1 100644 --- a/fs/f2fs/data.c +++ b/fs/f2fs/data.c @@ -2637,7 +2637,7 @@ bool f2fs_should_update_outplace(struct inode *inode, struct f2fs_io_info *fio) return true; if (fio) { - if (page_private_gcing(fio->page)) + if (folio_test_f2fs_gcing(fio->folio)) return true; if (unlikely(is_sbi_flag_set(sbi, SBI_CP_DISABLED) && f2fs_is_checkpointed_data(sbi, fio->old_blkaddr))) diff --git a/fs/f2fs/segment.c b/fs/f2fs/segment.c index 949ee1f8fb5c..7e9dd045b55d 100644 --- a/fs/f2fs/segment.c +++ b/fs/f2fs/segment.c @@ -3653,7 +3653,7 @@ static int __get_segment_type_6(struct f2fs_io_info *fio) if (is_inode_flag_set(inode, FI_ALIGNED_WRITE)) return CURSEG_COLD_DATA_PINNED; - if (page_private_gcing(fio->page)) { + if (folio_test_f2fs_gcing(fio->folio)) { if (fio->sbi->am.atgc_enabled && (fio->io_type == FS_DATA_IO) && (fio->sbi->gc_mode != GC_URGENT_HIGH) && -- 2.34.1