public inbox for linux-btrfs@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] btrfs: clean up btrfs_iget, btrfs_iget_path usage
@ 2024-08-13 20:27 Leo Martins
  2024-08-13 20:27 ` [PATCH 1/2] btrfs: remove conditional path allocation from read_locked_inode, add path allocation to iget Leo Martins
  2024-08-13 20:27 ` [PATCH 2/2] btrfs: move clean up code from btrfs_iget_path to btrfs_read_locked_inode Leo Martins
  0 siblings, 2 replies; 4+ messages in thread
From: Leo Martins @ 2024-08-13 20:27 UTC (permalink / raw)
  To: linux-btrfs, kernel-team

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-08-13 22:21 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-13 20:27 [PATCH 0/2] btrfs: clean up btrfs_iget, btrfs_iget_path usage Leo Martins
2024-08-13 20:27 ` [PATCH 1/2] btrfs: remove conditional path allocation from read_locked_inode, add path allocation to iget Leo Martins
2024-08-13 22:21   ` David Sterba
2024-08-13 20:27 ` [PATCH 2/2] btrfs: move clean up code from btrfs_iget_path to btrfs_read_locked_inode Leo Martins

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox