Merge tag 'log-incompat-permissions-6.10_2024-04-15' of https://git.kernel.org/pub...
authorChandan Babu R <chandanbabu@kernel.org>
Tue, 16 Apr 2024 05:39:58 +0000 (11:09 +0530)
committerChandan Babu R <chandanbabu@kernel.org>
Tue, 16 Apr 2024 05:39:58 +0000 (11:09 +0530)
commitebe0f798e1aca7eb66929e1563e96f7cc17e4681
treedced47e2253acfca772182d43af00e896bc96c3f
parent0bbac3facb5d6cc0171c45c9873a2dc96bea9680
parent5302a5c8beb21d01b7b8d92cc73b6871bc27d7bf
Merge tag 'log-incompat-permissions-6.10_2024-04-15' of https://git./linux/kernel/git/djwong/xfs-linux into xfs-6.10-mergeA

xfs: improve log incompat feature handling

This patchset improves the performance of log incompat feature bit
handling by making a few changes to how the filesystem handles them.
First, we now only clear the bits during a clean unmount to reduce calls
to the (expensive) upgrade function to once per bit per mount.  Second,
we now only allow incompat feature upgrades for sysadmins or if the
sysadmin explicitly allows it via mount option.  Currently the only log
incompat user is logged xattrs, which requires CONFIG_XFS_DEBUG=y, so
there should be no user visible impact to this change.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Chandan Babu R <chandanbabu@kernel.org>
* tag 'log-incompat-permissions-6.10_2024-04-15' of https://git.kernel.org/pub/scm/linux/kernel/git/djwong/xfs-linux:
  xfs: only clear log incompat flags at clean unmount
  xfs: fix error bailout in xrep_abt_build_new_trees
  xfs: fix potential AGI <-> ILOCK ABBA deadlock in xrep_dinode_findmode_walk_directory
  xfs: fix an AGI lock acquisition ordering problem in xrep_dinode_findmode
  xfs: pass xfs_buf lookup flags to xfs_*read_agi