All of lore.kernel.org
 help / color / mirror / Atom feed
From: Chao Yu <chao@kernel.org>
To: Seongjae Jeong <jsjlee1020@gmail.com>, jaegeuk@kernel.org
Cc: chao@kernel.org, yi.sun@unisoc.com,
	linux-f2fs-devel@lists.sourceforge.net,
	linux-kernel@vger.kernel.org, stable@vger.kernel.org
Subject: Re: [PATCH v2] f2fs: skip further SIT updates for already invalidated blocks
Date: Tue, 1 Dec 2026 16:11:08 +0800	[thread overview]
Message-ID: <b7d114b0-df05-45da-94ee-a642aa4096b9@kernel.org> (raw)
In-Reply-To: <20261107061830.30764-1-jsjlee1020@gmail.com>

On 11/7/26 14:18, Seongjae Jeong wrote:
> When update_sit_entry_for_release() encounters a block whose bit is
> already cleared in cur_valid_map, it reports the inconsistency and
> corrects se->valid_blocks and del. However, it still proceeds with
> the discard bitmap and checkpoint accounting updates.
> 
> This can clear the discard bit unnecessarily and incorrectly decrement
> the segment and section ckpt_valid_blocks counters when the block is
> not marked in ckpt_valid_map.
> 
> Continue to the next block after correcting se->valid_blocks and del,
> so that an already invalidated block does not trigger further discard
> bitmap or checkpoint counter updates.
> 
> Cc: stable@vger.kernel.org
> Fixes: 81ffbd224e5f ("f2fs: update_sit_entry_for_release() supports consecutive blocks.")
> Fixes: a66cdd985532 ("f2fs: introduce discard_map for f2fs_trim_fs")

Should use Fixes: 81ffbd224e5f ("f2fs: update_sit_entry_for_release() supports
consecutive blocks.") instead of above two Fixes lines as discussed w/ Seongjae in
https://lore.kernel.org/linux-f2fs-devel/CAPHXVrx8AESeQdo+nsnHZsBaJ4=_t00cqaT6G1TGh-JLN_pHog@mail.gmail.com

> Signed-off-by: Seongjae Jeong <jsjlee1020@gmail.com>

Reviewed-by: Chao Yu <chao@kernel.org>

Thanks,

WARNING: multiple messages have this Message-ID (diff)
From: Chao Yu via Linux-f2fs-devel <linux-f2fs-devel@lists.sourceforge.net>
To: Seongjae Jeong <jsjlee1020@gmail.com>, jaegeuk@kernel.org
Cc: linux-kernel@vger.kernel.org, yi.sun@unisoc.com,
	stable@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net
Subject: Re: [f2fs-dev] [PATCH v2] f2fs: skip further SIT updates for already invalidated blocks
Date: Tue, 1 Dec 2026 16:11:08 +0800	[thread overview]
Message-ID: <b7d114b0-df05-45da-94ee-a642aa4096b9@kernel.org> (raw)
In-Reply-To: <20261107061830.30764-1-jsjlee1020@gmail.com>

On 11/7/26 14:18, Seongjae Jeong wrote:
> When update_sit_entry_for_release() encounters a block whose bit is
> already cleared in cur_valid_map, it reports the inconsistency and
> corrects se->valid_blocks and del. However, it still proceeds with
> the discard bitmap and checkpoint accounting updates.
> 
> This can clear the discard bit unnecessarily and incorrectly decrement
> the segment and section ckpt_valid_blocks counters when the block is
> not marked in ckpt_valid_map.
> 
> Continue to the next block after correcting se->valid_blocks and del,
> so that an already invalidated block does not trigger further discard
> bitmap or checkpoint counter updates.
> 
> Cc: stable@vger.kernel.org
> Fixes: 81ffbd224e5f ("f2fs: update_sit_entry_for_release() supports consecutive blocks.")
> Fixes: a66cdd985532 ("f2fs: introduce discard_map for f2fs_trim_fs")

Should use Fixes: 81ffbd224e5f ("f2fs: update_sit_entry_for_release() supports
consecutive blocks.") instead of above two Fixes lines as discussed w/ Seongjae in
https://lore.kernel.org/linux-f2fs-devel/CAPHXVrx8AESeQdo+nsnHZsBaJ4=_t00cqaT6G1TGh-JLN_pHog@mail.gmail.com

> Signed-off-by: Seongjae Jeong <jsjlee1020@gmail.com>

Reviewed-by: Chao Yu <chao@kernel.org>

Thanks,


_______________________________________________
Linux-f2fs-devel mailing list
Linux-f2fs-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel

  reply	other threads:[~2026-12-01  8:11 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-07  6:18 [f2fs-dev] [PATCH v2] f2fs: skip further SIT updates for already invalidated blocks Seongjae Jeong
2026-11-07  6:18 ` Seongjae Jeong
2026-12-01  8:11 ` Chao Yu [this message]
2026-12-01  8:11   ` [f2fs-dev] " Chao Yu via Linux-f2fs-devel
  -- strict thread matches above, loose matches on Subject: below --
2026-11-07  6:15 Seongjae Jeong

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=b7d114b0-df05-45da-94ee-a642aa4096b9@kernel.org \
    --to=chao@kernel.org \
    --cc=jaegeuk@kernel.org \
    --cc=jsjlee1020@gmail.com \
    --cc=linux-f2fs-devel@lists.sourceforge.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=stable@vger.kernel.org \
    --cc=yi.sun@unisoc.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.