Commit e497dfba authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Darrick J. Wong

xfs: remove the flags argument to xfs_qm_dquot_walk

We always purge all dquots now, so drop the argument.
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Reviewed-by: default avatarCarlos Maiolino <cmaiolino@redhat.com>
Reviewed-by: default avatarDarrick J. Wong <djwong@kernel.org>
Signed-off-by: default avatarDarrick J. Wong <djwong@kernel.org>
parent 777eb1fa
...@@ -187,14 +187,10 @@ xfs_qm_dqpurge( ...@@ -187,14 +187,10 @@ xfs_qm_dqpurge(
*/ */
static void static void
xfs_qm_dqpurge_all( xfs_qm_dqpurge_all(
struct xfs_mount *mp, struct xfs_mount *mp)
uint flags)
{ {
if (flags & XFS_QMOPT_UQUOTA)
xfs_qm_dquot_walk(mp, XFS_DQTYPE_USER, xfs_qm_dqpurge, NULL); xfs_qm_dquot_walk(mp, XFS_DQTYPE_USER, xfs_qm_dqpurge, NULL);
if (flags & XFS_QMOPT_GQUOTA)
xfs_qm_dquot_walk(mp, XFS_DQTYPE_GROUP, xfs_qm_dqpurge, NULL); xfs_qm_dquot_walk(mp, XFS_DQTYPE_GROUP, xfs_qm_dqpurge, NULL);
if (flags & XFS_QMOPT_PQUOTA)
xfs_qm_dquot_walk(mp, XFS_DQTYPE_PROJ, xfs_qm_dqpurge, NULL); xfs_qm_dquot_walk(mp, XFS_DQTYPE_PROJ, xfs_qm_dqpurge, NULL);
} }
...@@ -206,7 +202,7 @@ xfs_qm_unmount( ...@@ -206,7 +202,7 @@ xfs_qm_unmount(
struct xfs_mount *mp) struct xfs_mount *mp)
{ {
if (mp->m_quotainfo) { if (mp->m_quotainfo) {
xfs_qm_dqpurge_all(mp, XFS_QMOPT_QUOTALL); xfs_qm_dqpurge_all(mp);
xfs_qm_destroy_quotainfo(mp); xfs_qm_destroy_quotainfo(mp);
} }
} }
...@@ -1359,7 +1355,7 @@ xfs_qm_quotacheck( ...@@ -1359,7 +1355,7 @@ xfs_qm_quotacheck(
* at this point (because we intentionally didn't in dqget_noattach). * at this point (because we intentionally didn't in dqget_noattach).
*/ */
if (error) { if (error) {
xfs_qm_dqpurge_all(mp, XFS_QMOPT_QUOTALL); xfs_qm_dqpurge_all(mp);
goto error_return; goto error_return;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment