mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/5] f2fs: prepare metadata layouts for runtime block sizes
@ 2026-08-26 21:39 Xinping Zhang
  2026-08-26 21:39 ` [PATCH 1/5] f2fs: avoid underflow when counting free NIDs Xinping Zhang
                   ` (4 more replies)
  0 siblings, 5 replies; 9+ messages in thread
From: Xinping Zhang @ 2026-08-26 21:39 UTC (permalink / raw)
  To: linux-f2fs-devel; +Cc: jaegeuk, chao, linux-kernel

This series fixes a free-NID shrinker underflow and prepares selected
on-disk metadata structures for filesystem blocks whose size can differ
from PAGE_SIZE.

Patch 1 compares the free-NID count with its retention threshold before
subtraction, avoiding unsigned underflow.

Patches 2-5 make the SIT, orphan, dentry, and inode-node layouts describe
their runtime block-size geometry while preserving the current on-disk
format and behavior.

These are preparatory layout-only changes; the runtime geometry conversion
will follow separately.

Kelvin Zhang (5):
  f2fs: avoid underflow when counting free NIDs
  f2fs: describe SIT block layout dynamically
  f2fs: describe orphan block layout dynamically
  f2fs: describe dentry block layout dynamically
  f2fs: describe inode node layout dynamically

 fs/f2fs/checkpoint.c    | 46 +++++++++++-----------
 fs/f2fs/data.c          |  2 +-
 fs/f2fs/dir.c           | 51 +++++++++++++------------
 fs/f2fs/f2fs.h          | 76 +++++++++++++++++++++++++++----------
 fs/f2fs/gc.c            |  2 +-
 fs/f2fs/inline.c        |  5 +--
 fs/f2fs/inode.c         |  5 +--
 fs/f2fs/node.c          |  4 +-
 fs/f2fs/node.h          | 53 ++++++++++++--------------
 fs/f2fs/segment.c       | 15 ++++----
 fs/f2fs/segment.h       | 19 +++++-----
 fs/f2fs/shrinker.c      |  5 ++-
 fs/f2fs/super.c         | 14 ++++++-
 include/linux/f2fs_fs.h | 84 +++++++++++++++++++++++++----------------
 14 files changed, 225 insertions(+), 156 deletions(-)

-- 
2.53.0

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2026-09-01  1:21 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-26 21:39 [PATCH 0/5] f2fs: prepare metadata layouts for runtime block sizes Xinping Zhang
2026-08-26 21:39 ` [PATCH 1/5] f2fs: avoid underflow when counting free NIDs Xinping Zhang
2026-08-27  3:39   ` Chao Yu
2026-08-31 23:22   ` Chao Yu
2026-09-01  1:21     ` [PATCH v2] " Kelvin Zhang
2026-08-26 21:39 ` [PATCH 2/5] f2fs: describe SIT block layout dynamically Xinping Zhang
2026-08-26 21:39 ` [PATCH 3/5] f2fs: describe orphan " Xinping Zhang
2026-08-26 21:39 ` [PATCH 4/5] f2fs: describe dentry " Xinping Zhang
2026-08-26 21:39 ` [PATCH 5/5] f2fs: describe inode node " Xinping Zhang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®