Skip to content

btrfs: iget_path cleanup

Leo Martins linux-btrfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v4 Latest2 patches 1 replyIn review

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2btrfs: push cleanup into read_locked_inodefs/btrfs/inode.c+51 -480 replies
2/2btrfs: remove conditional path allocationfs/btrfs/inode.c+31 -150 replies

Reviews trailers per patch

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

Read the v4 thread

Cover letter [PATCH v4 0/2] btrfs: iget_path cleanup

Updates from v3:
Previously I allocated a path in btrfs_iget and called btrfs_iget_path with it. However, Josef pointed out that there is a case in btrfs_iget_path where the inode was found in cache and no path allocation was necessary. In this patch series I no longer call btrfs_iget_path from btrfs_iget, instead I duplicated the code from btrfs_iget_path with a path allocation.

This patch series is a cleanup of btrfs_iget_path and btrfs_iget. It moves some cleanup and error handling from btrfs_iget_path into read_locked_inode. In addition it also removes a conditional path allocation that occurs in read_locked_inode, instead reworking btrfs_iget to allocate and free the path.

Leo Martins (2):
btrfs: push btrfs_iget_path cleanup into btrfs_read_locked_inode btrfs:

 fs/btrfs/inode.c | 143 +++++++++++++++++++++++++++--------------------
 1 file changed, 81 insertions(+), 62 deletions(-)
Signature · 1 line
2.43.5