linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 00/10] Simplify function interfaces
@ 2018-03-27  7:19 Nikolay Borisov
  2018-03-27  7:19 ` [PATCH 01/10] btrfs-progs: Drop ext_ref parameter from find_inode_ref Nikolay Borisov
                   ` (11 more replies)
  0 siblings, 12 replies; 14+ messages in thread
From: Nikolay Borisov @ 2018-03-27  7:19 UTC (permalink / raw)
  To: linux-btrfs; +Cc: Nikolay Borisov

A bunch of functions in lowmem mode take an 'ext_ref' parameter only to pass it
down the call chain where it eventually is consumed. Turns out the functions
which actually check the parameter are find_inode_ref and check_inode_item, the
are only passing it down to them. At the same time those functions can get a 
reference to fs_info and do the check in them at the appropriate time. 

This patchset cleanups the interface of various function by dropping the 
ext_ref argument and moving the actual query of the EXTREF feature closer to 
where it's being used. 

The final patch just changes signature of __btrfs_fs_incompat to better match 
the logic of the code and be identical to its kernel counterpart. All in all 
this series doesn't introduce any functional changes per-se.

Nikolay Borisov (10):
  btrfs-progs: Drop ext_ref parameter from find_inode_ref
  btrfs-progs: Drop ext_ref param from check_dir_item
  btrfs-progs: Drop ext_ref argument from check_inode_item
  btrfs-progs: Drop unused ext_ref parameter from process_one_leaf
  btrfs-progs: Remove ext_ref param from check_fs_first_inode
  btrfs-progs: Remove ext_ref param from walk_down_tree
  btrfs-progs: Drop ext_ref param from check_fs_first_inode
  btrfs-progs: Drop ext_ref arument from check_fs_root
  btrfs-progs: Remove ext_ref local variable from check_fs_roots_lowmem
  btrfs-progs: Make __btrfs_fs_incompat return bool

 check/mode-lowmem.c | 63 +++++++++++++++++++++++------------------------------
 ctree.h             |  2 +-
 2 files changed, 28 insertions(+), 37 deletions(-)

-- 
2.7.4


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

end of thread, other threads:[~2018-05-09 11:37 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-03-27  7:19 [PATCH 00/10] Simplify function interfaces Nikolay Borisov
2018-03-27  7:19 ` [PATCH 01/10] btrfs-progs: Drop ext_ref parameter from find_inode_ref Nikolay Borisov
2018-03-27  7:19 ` [PATCH 02/10] btrfs-progs: Drop ext_ref param from check_dir_item Nikolay Borisov
2018-03-27  7:19 ` [PATCH 03/10] btrfs-progs: Drop ext_ref argument from check_inode_item Nikolay Borisov
2018-03-27  7:19 ` [PATCH 04/10] btrfs-progs: Drop unused ext_ref parameter from process_one_leaf Nikolay Borisov
2018-03-27  7:19 ` [PATCH 05/10] btrfs-progs: Remove ext_ref param from check_fs_first_inode Nikolay Borisov
2018-03-27  7:19 ` [PATCH 06/10] btrfs-progs: Remove ext_ref param from walk_down_tree Nikolay Borisov
2018-03-27  7:19 ` [PATCH 07/10] btrfs-progs: Drop ext_ref param from check_fs_first_inode Nikolay Borisov
2018-03-27  7:19 ` [PATCH 08/10] btrfs-progs: Drop ext_ref arument from check_fs_root Nikolay Borisov
2018-03-27  7:19 ` [PATCH 09/10] btrfs-progs: Remove ext_ref local variable from check_fs_roots_lowmem Nikolay Borisov
2018-03-27  7:19 ` [PATCH 10/10] btrfs-progs: Make __btrfs_fs_incompat return bool Nikolay Borisov
2018-03-27  7:38 ` [PATCH 00/10] Simplify function interfaces Su Yue
2018-05-02  5:50 ` Nikolay Borisov
2018-05-09 11:34   ` David Sterba

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).