Remove duplicate code in btrfs_prune_dentries/find_next_inode
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest3 patches 7 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | btrfs: introduce btrfs_find_inodefs/ fs/ | +45 | 4 replies | |
| 2/3 | btrfs: use btrfs_find_inode in btrfs_prune_dentriesfs/ | +17 | 2 replies | |
| 3/3 | btrfs: use btrfs_find_inode in find_next_inodefs/ | +19 | 0 replies |
Reviews trailers per patch
None of the 3 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.
| Patch | Sweet Tea Dorminy |
|---|---|
| Series | R-b |
| 1/3 | |
| 2/3 | |
| 3/3 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 0/3] Remove duplicate code in btrfs_prune_dentries/find_next_inode
Both functions share similar logic to find a particular inode. So this series first factors out the common code in btrfs_find_inode and subsequently uses it to remove most of the internals of the two client functions. This greatly streamlines the codeflow in the affected functions.
The changes survived a full xfstest run.
Nikolay Borisov (3):
btrfs: introduce btrfs_find_inode
btrfs: use btrfs_find_inode in btrfs_prune_dentries
btrfs: use btrfs_find_inode in find_next_inode
fs/btrfs/ctree.h | 1 + fs/btrfs/inode.c | 75 ++++++++++++++++++++++++++++++------------- fs/btrfs/relocation.c | 54 +++++++++++-------------------- 3 files changed, 73 insertions(+), 57 deletions(-)
--
2.25.1