Re: [f2fs-dev] [PATCH] f2fs: annotate lockless NAT counter reads

From: patchwork-bot+f2fs

Date: Sun May 10 2026 - 21:42:11 EST


Hello:

This patch was applied to jaegeuk/f2fs.git (dev)
by Jaegeuk Kim <jaegeuk@xxxxxxxxxx>:

On Tue, 5 May 2026 20:55:10 +0800 you wrote:
> nat_cnt[] is updated while callers hold nat_tree_lock, but F2FS samples
> the counters locklessly in f2fs_available_free_memory(),
> excess_dirty_nats(), and excess_cached_nats(). Those helpers only steer
> cache reclaim and background sync heuristics; they do not control NAT
> entry lifetime or checkpoint correctness.
>
> Document the intent with data_race(READ_ONCE()) and a short comment
> instead of adding locking to the balance path.
>
> [...]

Here is the summary with links:
- [f2fs-dev] f2fs: annotate lockless NAT counter reads
https://git.kernel.org/jaegeuk/f2fs/c/e2b659d3f6ce

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html