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 B9CAA30EF68 for ; Wed, 9 Sep 2026 11:45:23 +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=1788954324; cv=none; b=ahIINIEyI7PyfNt9SrdmVW+9YH7Qmq7gBIryLCOQ8LPto3XSTbMWBrJ08cTsTfG7h0sXygtUkszdVXj74j+UPi4HTpVLPGkia8j1NvvOp/+0Gg7DLKxdJtveEc1xwdpd5uWpU8Gfki/Gd4KzwPT5XXUHykXxcCUcHDXDf6ixKB4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788954324; c=relaxed/simple; bh=RNwKfz1YGdhKNO4F7olyvD5tCPxnu/FyCcfKcrYGAUk=; h=Subject:To:Cc:From:Date:Message-ID:MIME-Version:Content-Type; b=Nl/OmSfbKKb0Ef9hXubnAHlTfq1xvYphtjMkzbFDeO6uRJF7qye34K9mjHDYiDmEaTRri8wRyZemUFizshim8RkPtqjxGbKI3rPJXOWtjL+mSXIiFGY0Qff+1T54q5aT0knc1nTh991kEl4qpJiW7cseU6PZBvvZCMnvlPIR9v8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=uYI5j2pm; 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="uYI5j2pm" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0E2381F00A3A; Wed, 9 Sep 2026 11:45:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1788954323; bh=oDBPcp3KB/e3ayr/lUGmvqQ3S+47orRi5OqWYIXunCA=; h=Subject:To:Cc:From:Date; b=uYI5j2pmpKN5EIn2ebT9fNtzDH5zNXz+4ZTo4auYcdMJo/sOM3RZqrWCusm2ov6o8 hUKurPEiPF+ZpCEhomdpcFScxc0MUFAAE8TBSkEfibGrDy2BPmniQzJTYOq5kcOIO0 8xTc9H9MOR83q+IymrnBKD+LyrRKiBc81K5WcadE= Subject: FAILED: patch "[PATCH] f2fs: fix to reset all pinned status during fggc" failed to apply to 7.2-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-feline-renewable-9808@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 7.2-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-7.2.y git checkout FETCH_HEAD git cherry-pick -x 2b8704b6a8b2896ccad1f5941d9a3e2c5031a470 # git commit -s git send-email --to '' --in-reply-to '2026090944-feline-renewable-9808@gregkh' --subject-prefix 'PATCH 7.2.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;