Skip to content

Couple of misc patches

Nikolay Borisov linux-btrfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4btrfs: Make btrfs_replace_file_extents take btrfs_inodefs/btrfs/ctree.h fs/btrfs/file.c fs/btrfs/inode.c +1 more+34 -340 replies
2/4btrfs: Make find_desired_extent take btrfs_inodefs/btrfs/file.c+7 -80 replies
3/4btrfs: Replace offset_in_entry with in_rangefs/btrfs/ordered-data.c+4 -150 replies
4/4btrfs: Replace opencoded while loop with proper constructfs/btrfs/block-group.c+23 -190 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/4] Couple of misc patches

Here are 4 patches which are independent of one another. The first 2 just change two more function to take btrfs_inode. Patch 3 just extends the usage of in_range which renders offset_in_entry redundant thus removing the function. Final patch just restructures btrfs_inc_block_group_ro to use a do{} while() loo rather than a label-based. This doesn't introduce extra nesting so I don't know why the label approach was chosen in the first place.

Nikolay Borisov (4):
btrfs: Make btrfs_replace_file_extents take btrfs_inode
btrfs: Make find_desired_extent take btrfs_inode
btrfs: Replace offset_in_entry with in_range
btrfs: Replace opencoded while loop with proper construct

 fs/btrfs/block-group.c  | 42 ++++++++++++++------------
 fs/btrfs/ctree.h        |  5 ++--
 fs/btrfs/file.c         | 66 ++++++++++++++++++++---------------------
 fs/btrfs/inode.c        |  2 +-
 fs/btrfs/ordered-data.c | 19 +++---------
 fs/btrfs/reflink.c      | 10 +++----
 6 files changed, 68 insertions(+), 76 deletions(-)

--
2.25.1