[PATCH 0/3] Cleanup btrfs_find_name_in* functions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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




[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux