linux-xfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 00/14] xfs-4.18: quota refactor
@ 2018-05-10 15:28 Darrick J. Wong
  2018-05-10 15:28 ` [PATCH 01/14] xfs: release new dquot buffer on defer_finish error Darrick J. Wong
                   ` (13 more replies)
  0 siblings, 14 replies; 17+ messages in thread
From: Darrick J. Wong @ 2018-05-10 15:28 UTC (permalink / raw)
  To: darrick.wong; +Cc: linux-xfs, hch

Hi all,

Here's a series to refactor and clean out the incohesive mess that
xfs_qm_dqget has become.  I'm reposting this per Christoph request
since the v2 thread became very hairy and disorganized.

I've distinguished three contexts in which dqget can be called, and
converted them into separate externally visible interfaces --
_qm_dqget_next, which returns the first initialized dquot with an id at
least as high as the id passed in; _qm_dqget_inode, which returns the
dquot for a given (inode, type); and so _qm_dqget now only returns the
dquot for a given (id, type).  I removed unused parameters from the
dqattach functions, renamed _qm_dqiterate (since it now only knows how
to zap dquot counters during quotacheck), and added a real function to
iterate all dquots of a given type.  I also re-hid _qm_dqread in favor
of a new _qm_dqget_uncached which has a better description of why we
bypass the dquot cache.

This means that all _dqget variants no longer take QMOPT flags, and
QMOPT_NEXT is gone.  XFS_QMOPT_DQALLOC is now a boolean and can
only be specified for functions where it makes sense.

This whole thing will be in for-next tomorrow, with any luck.

--D

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

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

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-05-10 15:28 [PATCH v3 00/14] xfs-4.18: quota refactor Darrick J. Wong
2018-05-10 15:28 ` [PATCH 01/14] xfs: release new dquot buffer on defer_finish error Darrick J. Wong
2018-05-10 15:28 ` [PATCH 02/14] xfs: don't spray logs when dquot flush/purge fail Darrick J. Wong
2018-05-10 15:29 ` [PATCH 03/14] xfs: refactor XFS_QMOPT_DQNEXT out of existence Darrick J. Wong
2018-05-10 15:29 ` [PATCH 04/14] xfs: refactor dquot cache handling Darrick J. Wong
2018-05-10 15:29 ` [PATCH 05/14] xfs: delegate dqget input checks to helper function Darrick J. Wong
2018-05-10 15:29 ` [PATCH 06/14] xfs: remove unnecessary xfs_qm_dqattach parameter Darrick J. Wong
2018-05-10 15:29 ` [PATCH 07/14] xfs: split out dqget for inodes from regular dqget Darrick J. Wong
2018-05-10 15:29 ` [PATCH 08/14] xfs: fetch dquots directly during quotacheck Darrick J. Wong
2018-05-10 15:29 ` [PATCH 09/14] xfs: refactor incore dquot initialization functions Darrick J. Wong
2018-05-10 15:29 ` [PATCH 10/14] xfs: refactor xfs_qm_dqtobp and xfs_qm_dqalloc Darrick J. Wong
2018-05-10 15:30 ` [PATCH 11/14] xfs: remove direct calls to _qm_dqread Darrick J. Wong
2018-05-10 15:30 ` [PATCH 12/14] xfs: replace XFS_QMOPT_DQALLOC with a simple boolean Darrick J. Wong
2018-05-10 15:30 ` [PATCH 13/14] xfs: rename on-disk dquot counter zap functions Darrick J. Wong
2018-05-11  7:05   ` Christoph Hellwig
2018-05-10 15:30 ` [PATCH 14/14] xfs: refactor dquot iteration Darrick J. Wong
2018-05-11  7:06   ` Christoph Hellwig

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