linux-xfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v4 00/12] xfs: refactor incore inode walking
@ 2020-05-22  2:53 Darrick J. Wong
  2020-05-22  2:53 ` [PATCH 01/12] xfs: move eofblocks conversion function to xfs_ioctl.c Darrick J. Wong
                   ` (11 more replies)
  0 siblings, 12 replies; 29+ messages in thread
From: Darrick J. Wong @ 2020-05-22  2:53 UTC (permalink / raw)
  To: darrick.wong; +Cc: Christoph Hellwig, linux-xfs, hch

Hi all,

This series prepares the incore inode walking code used by the
eofblocks/cowblocks scanner to handle deferred inode inactivation.
First we clean up the eofblocks/cowblocks incore inode walking code to
get rid of some of the warts left by reflink development.  Next, we
rip out the many trivial wrapper functions that don't add much value.
Finally, we refactor the various helpers and predicate functions to
reduce open-coded logic.

For v4 we get rid of the "ici" prefixes and merely straighten out the
inode walk function names to "xfs_inode_walk*".

If you're going to start using this mess, you probably ought to just
pull from my git trees, which are linked below.

This is an extraordinary way to destroy everything.  Enjoy!
Comments and questions are, as always, welcome.

--D

kernel git tree:
https://git.kernel.org/cgit/linux/kernel/git/djwong/xfs-linux.git/log/?h=incore-inode-walk
---
 fs/xfs/xfs_icache.c      |  283 +++++++++++++++++++++-------------------------
 fs/xfs/xfs_icache.h      |   51 +-------
 fs/xfs/xfs_ioctl.c       |   35 ++++++
 fs/xfs/xfs_qm_syscalls.c |   17 +--
 4 files changed, 176 insertions(+), 210 deletions(-)


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

end of thread, other threads:[~2020-05-22 12:24 UTC | newest]

Thread overview: 29+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-22  2:53 [PATCH v4 00/12] xfs: refactor incore inode walking Darrick J. Wong
2020-05-22  2:53 ` [PATCH 01/12] xfs: move eofblocks conversion function to xfs_ioctl.c Darrick J. Wong
2020-05-22 12:03   ` Brian Foster
2020-05-22  2:53 ` [PATCH 02/12] xfs: replace open-coded XFS_ICI_NO_TAG Darrick J. Wong
2020-05-22 12:03   ` Brian Foster
2020-05-22  2:53 ` [PATCH 03/12] xfs: remove unused xfs_inode_ag_iterator function Darrick J. Wong
2020-05-22 12:03   ` Brian Foster
2020-05-22  2:53 ` [PATCH 04/12] xfs: remove xfs_inode_ag_iterator_flags Darrick J. Wong
2020-05-22 12:03   ` Brian Foster
2020-05-22  2:53 ` [PATCH 05/12] xfs: remove flags argument from xfs_inode_ag_walk Darrick J. Wong
2020-05-22  6:37   ` Christoph Hellwig
2020-05-22 12:03   ` Brian Foster
2020-05-22  2:54 ` [PATCH 06/12] xfs: remove __xfs_icache_free_eofblocks Darrick J. Wong
2020-05-22 12:03   ` Brian Foster
2020-05-22  2:54 ` [PATCH 07/12] xfs: refactor eofb matching into a single helper Darrick J. Wong
2020-05-22  6:38   ` Christoph Hellwig
2020-05-22 12:23   ` Brian Foster
2020-05-22  2:54 ` [PATCH 08/12] xfs: fix inode ag walk predicate function return values Darrick J. Wong
2020-05-22 12:23   ` Brian Foster
2020-05-22  2:54 ` [PATCH 09/12] xfs: use bool for done in xfs_inode_ag_walk Darrick J. Wong
2020-05-22 12:23   ` Brian Foster
2020-05-22  2:54 ` [PATCH 10/12] xfs: move xfs_inode_ag_iterator to be closer to the perag walking code Darrick J. Wong
2020-05-22 12:23   ` Brian Foster
2020-05-22  2:54 ` [PATCH 11/12] xfs: straighten out all the naming around incore inode tree walks Darrick J. Wong
2020-05-22  6:38   ` Christoph Hellwig
2020-05-22 12:23   ` Brian Foster
2020-05-22  2:54 ` [PATCH 12/12] xfs: rearrange xfs_inode_walk_ag parameters Darrick J. Wong
2020-05-22  6:39   ` Christoph Hellwig
2020-05-22 12:23   ` Brian Foster

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