Skip to content

Commit

Permalink
xfs: move xfs_inew_wait call into xfs_dqrele_inode
Browse files Browse the repository at this point in the history
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>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
  • Loading branch information
Darrick J. Wong committed Jun 3, 2021
1 parent b9baaef commit 9d2793c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions fs/xfs/xfs_icache.c
Original file line number Diff line number Diff line change
Expand Up @@ -820,6 +820,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_ICWALK_FLAG_DROP_UDQUOT) {
xfs_qm_dqrele(ip->i_udquot);
Expand Down Expand Up @@ -856,8 +859,7 @@ xfs_dqrele_all_inodes(
if (qflags & XFS_PQUOTA_ACCT)
eofb.eof_flags |= XFS_ICWALK_FLAG_DROP_PDQUOT;

return xfs_icwalk(mp, XFS_INODE_WALK_INEW_WAIT, xfs_dqrele_inode,
&eofb, XFS_ICWALK_DQRELE);
return xfs_icwalk(mp, 0, xfs_dqrele_inode, &eofb, XFS_ICWALK_DQRELE);
}
#else
# define xfs_dqrele_igrab(ip) (false)
Expand Down

0 comments on commit 9d2793c

Please sign in to comment.