mbox series

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

Message ID cover.1723580508.git.loemra.dev@gmail.com (mailing list archive)
Headers show
Series btrfs: clean up btrfs_iget, btrfs_iget_path usage | expand

Message

Leo Martins Aug. 13, 2024, 8:27 p.m. UTC
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(-)