From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 338D53A9DA2 for ; Wed, 9 Sep 2026 11:45:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788954319; cv=none; b=TRTigC2Mtx9Cvxuy/dCUn8kXQEDusmWZaAYgQth3rKzezatsxntFs3x4wOmg0FxjkcO+d72QRh0RAmQL1IC40X22REa3JQxNqNUxOTRoJhc0TBg+mr5gi/tpC/wpJ49lW9lXRz/KDXQI5U2o/yUPRRByHPrAWu/6oFuE9zvG8Ns= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788954319; c=relaxed/simple; bh=ED+vTb8sLzg8crIa+x0c3jN4S+nvvnsn1GyoTA760xo=; h=Subject:To:Cc:From:Date:Message-ID:MIME-Version:Content-Type; b=LopXzEuxykWGoKNfCIMhF1bhofg+do715ytEJywG+L1VJA088RuCSx/UR+eLK38opZtKSWYw2DAI8QWx+0NM6vBLBG2O03mcHgcnmMC1G2RD2RRv5QnceLo2wuAdkxYEBXYTzsgySDgnajBtrxPnM2fdFdFlYDTOS3ff4yYNHK4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=VJRsVHtl; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="VJRsVHtl" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 74D2C1F00A3A; Wed, 9 Sep 2026 11:45:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1788954318; bh=dMqA1khHta3yoiOkr6EPJdjYsWp5IwVsA3AT6N+vYoI=; h=Subject:To:Cc:From:Date; b=VJRsVHtlWVok86yqShYAfPUadudY4h7XUwt3OmKOVkzHZCvUFt+PIu3uu4qvh6IrW gpfsHyLTTUxPs0h52fF1V38or1RFfW0ML5b4/Vo0LymO5aqA0oWkgGXAPWpdv9Fy5x aXWmFhEeQQoOhq+ZCvGVTc+0539ZT3Ta2U3KoFDY= Subject: FAILED: patch "[PATCH] f2fs: fix to reset all pinned status during fggc" failed to apply to 6.18-stable tree To: chao@kernel.org,daehojeong@google.com,jaegeuk@kernel.org Cc: From: Date: Wed, 09 Sep 2026 13:28:44 +0200 Message-ID: <2026090944-reprint-spruce-0599@gregkh> Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=ANSI_X3.4-1968 Content-Transfer-Encoding: 8bit The patch below does not apply to the 6.18-stable tree. If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to . To reproduce the conflict and resubmit, you may use the following commands: git fetch https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/ linux-6.18.y git checkout FETCH_HEAD git cherry-pick -x 2b8704b6a8b2896ccad1f5941d9a3e2c5031a470 # git commit -s git send-email --to '' --in-reply-to '2026090944-reprint-spruce-0599@gregkh' --subject-prefix 'PATCH 6.18.y' 'HEAD^..' Possible dependencies: thanks, greg k-h ------------------ original commit in Linus's tree ------------------ >From 2b8704b6a8b2896ccad1f5941d9a3e2c5031a470 Mon Sep 17 00:00:00 2001 From: Chao Yu Date: Mon, 17 Aug 2026 02:39:27 +0000 Subject: [PATCH] f2fs: fix to reset all pinned status during fggc Otherwise, the pinned status may affect latter flow of fggc. Cc: stable@kernel.org Fixes: 9703d69d9d15 ("f2fs: support file pinning for zoned devices") Cc: Daeho Jeong Signed-off-by: Chao Yu Signed-off-by: Jaegeuk Kim diff --git a/fs/f2fs/gc.c b/fs/f2fs/gc.c index 5917ee917d87..0c17038fcfd7 100644 --- a/fs/f2fs/gc.c +++ b/fs/f2fs/gc.c @@ -2183,6 +2183,9 @@ int f2fs_gc_range(struct f2fs_sb_info *sbi, do_garbage_collect(sbi, segno, &gc_list, FG_GC, true, false); put_gc_inode(&gc_list); + /* reset all pinned status during fggc */ + f2fs_unpin_all_sections(sbi, true); + if (!dry_run && get_valid_blocks(sbi, segno, true)) { err = -EAGAIN; goto next;