mbox series

[PATCHSET,0/5] xfs: last pile of LARP cleanups for 5.19

Message ID 165323329374.78886.11371349029777433302.stgit@magnolia (mailing list archive)
Headers show
Series xfs: last pile of LARP cleanups for 5.19 | expand

Message

Darrick J. Wong May 22, 2022, 3:28 p.m. UTC
Hi all,

This final series contains a two key cleanups for the new LARP code.
Most of it is refactoring and tweaking the code that creates kernel log
messages about enabling and disabling features -- we should be warning
about LARP being turned on once per day, instead of once per insmod
cycle; we shouldn't be spamming the logs so aggressively about turning
*off* log incompat features.

The second part of the series refactors the LARP code responsible for
getting (and releasing) permission to use xattr log items.  The
implementation code doesn't belong in xfs_log.c, and calls to logging
functions don't belong in libxfs -- they really should be done by the
VFS implementation functions before they start calling into libraries.
As a side effect, we now amortize the cost of gaining xattr log item
permission across entire attrmulti calls.

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=larp-cleanups-5.19
---
 fs/xfs/libxfs/xfs_attr.c |   12 +-------
 fs/xfs/scrub/scrub.c     |   17 +-----------
 fs/xfs/xfs_acl.c         |   10 +++++++
 fs/xfs/xfs_fsops.c       |    7 +----
 fs/xfs/xfs_ioctl.c       |   22 +++++++++++++---
 fs/xfs/xfs_ioctl.h       |    2 +
 fs/xfs/xfs_ioctl32.c     |    4 ++-
 fs/xfs/xfs_iops.c        |   25 ++++++++++++++----
 fs/xfs/xfs_log.c         |   41 -----------------------------
 fs/xfs/xfs_log.h         |    1 -
 fs/xfs/xfs_message.h     |   12 ++++++++
 fs/xfs/xfs_mount.c       |    1 -
 fs/xfs/xfs_super.h       |    2 +
 fs/xfs/xfs_xattr.c       |   65 ++++++++++++++++++++++++++++++++++++++++++++++
 14 files changed, 135 insertions(+), 86 deletions(-)