Skip to content

Cleanup backref_in_log and its callers

Nikolay Borisov linux-btrfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3btrfs: Don't opencode btrfs_find_name_in_backref in backref_in_logfs/btrfs/tree-log.c+12 -361 reply
2/3btrfs: Properly handle backref_in_log retvalfs/btrfs/tree-log.c+19 -136 replies
3/3btrfs: Open-code name_in_log_ref in replay_one_namefs/btrfs/tree-log.c+22 -290 replies

Reviews trailers per patch

1 of 3 patches has a Reviewed-by or Acked-by.

PatchDavid Sterba
1/3R-b
2/3
3/3

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

Read the v1 thread

Cover letter [PATCH 0/3] Cleanup backref_in_log and its callers

This series cleans up backref_in_log and its callers. Patch 1 removes the opencoding of btrfs_find_name_in_backref which greatly simplifies backref_in_log itself.

Patch 2 properly propagates error values of the internal functions to backref_in_log's callers and also fixes, where necessary, callers to cope with those ret values.

Patch 3 continues in the spirit of the previous patch, in that it open codes name_in_log_ref so that the caller can properly handle backref_in_log retvals.

Nikolay Borisov (3):
btrfs: Don't opencode btrfs_find_name_in_backref in backref_in_log
btrfs: Properly handle backref_in_log retval
btrfs: Open-code name_in_log_ref in replay_one_name

 fs/btrfs/tree-log.c | 113 +++++++++++++++++---------------------------
 1 file changed, 44 insertions(+), 69 deletions(-)
Signature · 1 line
2.17.1