Skip to content

Struct to fs_info helpers

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 Latest5 patches 5 repliesIn review
  2. v15 patches 11 repliesSuperseded

Changes in v2 from the cover letter

- move helper definitions to fs.h
- add _Generic to the macros for type checking
- reuse helpers to some code duplication

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5btrfs: tests: allocate dummy fs_info and root in test_find_delalloc()fs/btrfs/tests/extent-io-tests.c+24 -40 replies
2/5btrfs: add helpers to get inode from page/folio pointersfs/btrfs/disk-io.c fs/btrfs/extent_io.c fs/btrfs/fs.h +1 more+12 -60 replies
3/5btrfs: add helpers to get fs_info from page/folio pointersfs/btrfs/compression.c fs/btrfs/disk-io.c fs/btrfs/extent_io.c +3 more+15 -120 replies
4/5btrfs: add helper to get fs_info from struct inode pointerfs/btrfs/compression.c fs/btrfs/defrag.c fs/btrfs/disk-io.c +11 more+71 -683 replies
5/5btrfs: hoist fs_info out of loops in end_bbio_data_write and end_bbio_data_readfs/btrfs/extent_io.c+4 -50 replies

Reviews trailers per patch

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

PatchJohannes ThumshirnAnand Jain
SeriesR-b R-b
1/5
2/5
3/5
4/5
5/5

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 0/5 v2] Struct to fs_info helpers

v2:

- move helper definitions to fs.h
- add _Generic to the macros for type checking
- reuse helpers to some code duplication

Add convenience helpers for getting a fs_info from page, bio, inode etc. There's one prep patch where tests use a normal helper that expects valid inode->root->fs_info.

David Sterba (5):
btrfs: tests: allocate dummy fs_info and root in test_find_delalloc()
btrfs: add helpers to get inode from page/folio pointers
btrfs: add helpers to get fs_info from page/folio pointers
btrfs: add helper to get fs_info from struct inode pointer
btrfs: hoist fs_info out of loops in end_bbio_data_write and
end_bbio_data_read

 fs/btrfs/compression.c           |  8 +++---
 fs/btrfs/defrag.c                |  4 +--
 fs/btrfs/disk-io.c               | 11 ++++----
 fs/btrfs/export.c                |  2 +-
 fs/btrfs/extent_io.c             | 45 ++++++++++++++++----------------
 fs/btrfs/file.c                  | 14 +++++-----
 fs/btrfs/free-space-cache.c      |  2 +-
 fs/btrfs/fs.h                    | 11 ++++++++
 fs/btrfs/inode.c                 | 42 ++++++++++++++---------------
 fs/btrfs/ioctl.c                 | 40 ++++++++++++++--------------
 fs/btrfs/lzo.c                   |  4 +--
 fs/btrfs/props.c                 |  2 +-
 fs/btrfs/reflink.c               |  6 ++---
 fs/btrfs/relocation.c            |  2 +-
 fs/btrfs/tests/extent-io-tests.c | 28 +++++++++++++++++---
 15 files changed, 126 insertions(+), 95 deletions(-)
Signature · 1 line
2.42.1