Linux Btrfs filesystem development
 help / color / mirror / Atom feed
* [PATCH 0/3] Cleanup btrfs_find_name_in* functions
@ 2019-08-27 11:46 Nikolay Borisov
  2019-08-27 11:46 ` [PATCH 1/3] btrfs: Make btrfs_find_name_in_backref return btrfs_inode_ref struct Nikolay Borisov
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: Nikolay Borisov @ 2019-08-27 11:46 UTC (permalink / raw)
  To: linux-btrfs; +Cc: Nikolay Borisov

This series cleans up the calling convention of the 2 function used to search 
the INODE_REF items for the presence of particular name. Namely, I switch the 2
functions to directly return a struct btrfs_inode_(ext)?ref. This reduces the 
number of parameters when calling the functions. 

While doing the aforementioned cleanup I stumbled upon backref_in_log which was 
opencoding btrfs_find_name_in_backref hence I just refactored the function. 

This series survived xfstest. 

Nikolay Borisov (3):
  btrfs: Make btrfs_find_name_in_backref return btrfs_inode_ref struct
  btrfs: Make btrfs_find_name_in_ext_backref return struct
    btrfs_inode_extref
  btrfs: Use btrfs_find_name_in_backref in backref_in_log

 fs/btrfs/ctree.h      | 15 +++++-----
 fs/btrfs/inode-item.c | 62 ++++++++++++++++++-----------------------
 fs/btrfs/tree-log.c   | 65 +++++++++++++------------------------------
 3 files changed, 54 insertions(+), 88 deletions(-)

-- 
2.17.1


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

end of thread, other threads:[~2019-08-27 16:04 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-08-27 11:46 [PATCH 0/3] Cleanup btrfs_find_name_in* functions Nikolay Borisov
2019-08-27 11:46 ` [PATCH 1/3] btrfs: Make btrfs_find_name_in_backref return btrfs_inode_ref struct Nikolay Borisov
2019-08-27 14:13   ` David Sterba
2019-08-27 15:45     ` David Sterba
2019-08-27 11:46 ` [PATCH 2/3] btrfs: Make btrfs_find_name_in_ext_backref return struct btrfs_inode_extref Nikolay Borisov
2019-08-27 15:53   ` David Sterba
2019-08-27 11:46 ` [PATCH 3/3] btrfs: Use btrfs_find_name_in_backref in backref_in_log Nikolay Borisov
2019-08-27 16:03   ` David Sterba
2019-08-27 16:04 ` [PATCH 0/3] Cleanup btrfs_find_name_in* functions David Sterba

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