Skip to content

Folio pos + size cleanups

David Sterba linux-btrfs 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 5 repliesIn review
  2. v12 patches 4 repliesSuperseded

Changes in v2 from the cover letter

- preparatory patches: rename variables matching the semantics of locking with the "-1" end of range, and simplify some range calculations
- updated changelogs with stats of potential usage outside of btrfs

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4btrfs: simplify range end calculations in truncate_block_zero_beyond_eof()fs/btrfs/inode.c+2 -21 reply
2/4btrfs: rename variables for locked range in defrag_prepare_one_folio()fs/btrfs/defrag.c+7 -70 replies
3/4btrfs: add helper folio_end()fs/btrfs/misc.h+7 -03 replies
4/4btrfs: use folio_end() where appropriatefs/btrfs/compression.h fs/btrfs/defrag.c fs/btrfs/extent_io.c +4 more+25 -320 replies

Reviews trailers per patch

None of the 4 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchJohannes Thumshirn
SeriesR-b
1/4
2/4
3/4
4/4

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/4] Folio pos + size cleanups

Helper to simplify numerous folio_pos() + folio_size() calculations.

v2:
- preparatory patches: rename variables matching the semantics of locking with the "-1" end of range, and simplify some range calculations
- updated changelogs with stats of potential usage outside of btrfs

David Sterba (4):
btrfs: simplify range end calculations in
truncate_block_zero_beyond_eof()
btrfs: rename variables for locked range in defrag_prepare_one_folio()
btrfs: add helper folio_end()
btrfs: use folio_end() where appropriate

 fs/btrfs/compression.h  |  7 +++----
 fs/btrfs/defrag.c       | 19 +++++++++----------
 fs/btrfs/extent_io.c    | 17 ++++++++---------
 fs/btrfs/file.c         |  9 ++++-----
 fs/btrfs/inode.c        | 12 +++++-------
 fs/btrfs/misc.h         |  7 +++++++
 fs/btrfs/ordered-data.c |  2 +-
 fs/btrfs/subpage.c      |  5 ++---
 8 files changed, 39 insertions(+), 39 deletions(-)
Signature · 1 line
2.47.1