Linux XFS filesystem development
 help / color / mirror / Atom feed
* [PATCHSET v2 0/5] xfs: last pile of LARP cleanups for 5.19
@ 2022-05-24  5:36 Darrick J. Wong
  2022-05-24  5:36 ` [PATCH 1/5] xfs: don't log every time we clear the log incompat flags Darrick J. Wong
                   ` (4 more replies)
  0 siblings, 5 replies; 11+ messages in thread
From: Darrick J. Wong @ 2022-05-24  5:36 UTC (permalink / raw)
  To: djwong; +Cc: linux-xfs, david, allison.henderson

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.

v2: use OPSTATE flags so that we warn about scrub/larp/shrink on a
    per-mount basis, and reorganize the log assist rework based on
    feedback

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 |   14 +-------
 fs/xfs/scrub/scrub.c     |   17 +---------
 fs/xfs/xfs_acl.c         |    3 +-
 fs/xfs/xfs_fsops.c       |    7 +---
 fs/xfs/xfs_ioctl.c       |    3 +-
 fs/xfs/xfs_iops.c        |    3 +-
 fs/xfs/xfs_log.c         |   41 ------------------------
 fs/xfs/xfs_message.h     |    6 +++
 fs/xfs/xfs_mount.c       |    1 -
 fs/xfs/xfs_mount.h       |   18 ++++++++++
 fs/xfs/xfs_super.c       |    1 +
 fs/xfs/xfs_super.h       |    1 -
 fs/xfs/xfs_xattr.c       |   79 +++++++++++++++++++++++++++++++++++++++++++++-
 fs/xfs/xfs_xattr.h       |   13 ++++++++
 14 files changed, 126 insertions(+), 81 deletions(-)
 create mode 100644 fs/xfs/xfs_xattr.h


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

end of thread, other threads:[~2022-05-27  1:29 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-05-24  5:36 [PATCHSET v2 0/5] xfs: last pile of LARP cleanups for 5.19 Darrick J. Wong
2022-05-24  5:36 ` [PATCH 1/5] xfs: don't log every time we clear the log incompat flags Darrick J. Wong
2022-05-27  1:26   ` Dave Chinner
2022-05-24  5:36 ` [PATCH 2/5] xfs: implement per-mount warnings for scrub and shrink usage Darrick J. Wong
2022-05-27  1:26   ` Dave Chinner
2022-05-24  5:36 ` [PATCH 3/5] xfs: warn about LARP once per mount Darrick J. Wong
2022-05-27  1:27   ` Dave Chinner
2022-05-24  5:36 ` [PATCH 4/5] xfs: move xfs_attr_use_log_assist out of xfs_log.c Darrick J. Wong
2022-05-27  1:28   ` Dave Chinner
2022-05-24  5:36 ` [PATCH 5/5] xfs: move xfs_attr_use_log_assist usage out of libxfs Darrick J. Wong
2022-05-27  1:29   ` Dave Chinner

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