Skip to content

Cleanup io_tree arguments in extent read/write path

David Sterba linux-btrfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest8 patches 13 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8btrfs: remove extent_page_data::treefs/btrfs/extent_io.c+2 -82 replies
2/8btrfs: drop argument tree from submit_extent_pagefs/btrfs/extent_io.c+5 -74 replies
3/8btrfs: add assertions for tree == inode->io_tree to extent IO helpersfs/btrfs/extent_io.c fs/btrfs/ordered-data.c+12 -01 reply
4/8btrfs: drop argument tree from btrfs_lock_and_flush_ordered_rangefs/btrfs/extent_io.c fs/btrfs/file.c fs/btrfs/inode.c +2 more+8 -131 reply
5/8btrfs: sink argument tree to extent_read_full_pagefs/btrfs/disk-io.c fs/btrfs/extent_io.c fs/btrfs/extent_io.h +1 more+7 -121 reply
6/8btrfs: sink argument tree to __extent_read_full_pagefs/btrfs/extent_io.c+4 -101 reply
7/8btrfs: sink arugment tree to contiguous_readpagesfs/btrfs/extent_io.c+3 -61 reply
8/8btrfs: sink argument tree to __do_readpagefs/btrfs/extent_io.c+4 -81 reply

Reviews trailers per patch

All 8 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchAnand JainNikolay BorisovJohannes Thumshirn
SeriesR-b
1/8R-b R-b
2/8R-b R-b
3/8R-b
4/8R-b
5/8R-b
6/8R-b
7/8R-b
8/8R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v1 thread

Cover letter [PATCH 0/8] Cleanup io_tree arguments in extent read/write path

The io_tree is passed to several functions that do extent page read/write, but there's a lot of redundancy and things can be simplified.

David Sterba (8):
btrfs: remove extent_page_data::tree
btrfs: drop argument tree from submit_extent_page
btrfs: add assertions for tree == inode->io_tree to extent IO helpers
btrfs: drop argument tree from btrfs_lock_and_flush_ordered_range
btrfs: sink argument tree to extent_read_full_page
btrfs: sink argument tree to __extent_read_full_page
btrfs: sink arugment tree to contiguous_readpages
btrfs: sink argument tree to __do_readpage

 fs/btrfs/disk-io.c      |  4 +---
 fs/btrfs/extent_io.c    | 50 ++++++++++++++++-------------------------
 fs/btrfs/extent_io.h    |  4 ++--
 fs/btrfs/file.c         |  2 +-
 fs/btrfs/inode.c        |  6 ++---
 fs/btrfs/ordered-data.c |  8 +++----
 fs/btrfs/ordered-data.h |  3 +--
 7 files changed, 29 insertions(+), 48 deletions(-)
Signature · 1 line
2.25.0