[PATCH 0/2] btrfs: clean up btrfs_iget, btrfs_iget_path usage

Leo Martins
2024-08-13T20:28:46Z

The first patch moves the path allocation from inside
btrfs_read_locked_inode to btrfs_iget. This makes the code easier to
reason about as it is clear where the allocation occurs and who is in
charge of freeing the path.

The second patch moves the clean up code from btrfs_iget_path into
btrfs_read_locked_inode simplifyiung btrfs_iget_path.

Leo Martins (2):
btrfs: remove conditional path allocation from read_locked_inode, add
path allocation to iget
btrfs: move clean up code from btrfs_iget_path to
btrfs_read_locked_inode

fs/btrfs/inode.c | 123 ++++++++++++++++++++++++-----------------------
1 file changed, 62 insertions(+), 61 deletions(-)

--
2.43.5