summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDarrick J. Wong <djwong@kernel.org>2021-04-07 14:31:14 -0700
committerDarrick J. Wong <djwong@kernel.org>2021-05-25 18:49:52 -0700
commit121c5b85922c42dd115a53b77c6f70512b118064 (patch)
tree94189861c5692be5d39a4c7c8fe34d76650f7e0c
parentc8e770a26f7583ce50328494f4fa16bca5871ecd (diff)
xfs: move xfs_inew_wait call into xfs_dqrele_inodequotaoff-cleanups_2021-05-25
Move the INEW wait into xfs_dqrele_inode so that we can drop the iter_flags parameter in the next patch. Signed-off-by: Darrick J. Wong <djwong@kernel.org>
-rw-r--r--fs/xfs/xfs_icache.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/fs/xfs/xfs_icache.c b/fs/xfs/xfs_icache.c
index 5501318b5db0..859ab1279d8d 100644
--- a/fs/xfs/xfs_icache.c
+++ b/fs/xfs/xfs_icache.c
@@ -981,6 +981,9 @@ xfs_dqrele_inode(
{
struct xfs_eofblocks *eofb = priv;
+ if (xfs_iflags_test(ip, XFS_INEW))
+ xfs_inew_wait(ip);
+
xfs_ilock(ip, XFS_ILOCK_EXCL);
if (eofb->eof_flags & XFS_EOFB_DROP_UDQUOT) {
xfs_qm_dqrele(ip->i_udquot);
@@ -1019,8 +1022,8 @@ xfs_dqrele_all_inodes(
if (qflags & XFS_PQUOTA_ACCT)
eofb.eof_flags |= XFS_EOFB_DROP_PDQUOT;
- return xfs_inode_walk(mp, XFS_INODE_WALK_INEW_WAIT, xfs_dqrele_inode,
- &eofb, XFS_ICI_DQRELE_NONTAG);
+ return xfs_inode_walk(mp, 0, xfs_dqrele_inode, &eofb,
+ XFS_ICI_DQRELE_NONTAG);
}
/*