All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v4 0/2] btrfs: iget_path cleanup
@ 2024-08-30 20:24 Leo Martins
  2024-08-30 20:24 ` [PATCH v4 1/2] btrfs: push cleanup into read_locked_inode Leo Martins
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Leo Martins @ 2024-08-30 20:24 UTC (permalink / raw)
  To: linux-btrfs, kernel-team

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(-)

-- 
2.43.5


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

end of thread, other threads:[~2024-10-29 23:54 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-30 20:24 [PATCH v4 0/2] btrfs: iget_path cleanup Leo Martins
2024-08-30 20:24 ` [PATCH v4 1/2] btrfs: push cleanup into read_locked_inode Leo Martins
2024-08-30 20:24 ` [PATCH v4 2/2] btrfs: remove conditional path allocation Leo Martins
2024-10-29 23:53 ` [PATCH v4 0/2] btrfs: iget_path cleanup David Sterba

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.