aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_qm.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/xfs/xfs_qm.c')
-rw-r--r--fs/xfs/xfs_qm.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/fs/xfs/xfs_qm.c b/fs/xfs/xfs_qm.c
index ba284f6469db..e261547717b7 100644
--- a/fs/xfs/xfs_qm.c
+++ b/fs/xfs/xfs_qm.c
@@ -1005,6 +1005,12 @@ xfs_qm_dqiter_bufs(
1005 if (error) 1005 if (error)
1006 break; 1006 break;
1007 1007
1008 /*
1009 * A corrupt buffer might not have a verifier attached, so
1010 * make sure we have the correct one attached before writeback
1011 * occurs.
1012 */
1013 bp->b_ops = &xfs_dquot_buf_ops;
1008 xfs_qm_reset_dqcounts(mp, bp, firstid, type); 1014 xfs_qm_reset_dqcounts(mp, bp, firstid, type);
1009 xfs_buf_delwri_queue(bp, buffer_list); 1015 xfs_buf_delwri_queue(bp, buffer_list);
1010 xfs_buf_relse(bp); 1016 xfs_buf_relse(bp);
@@ -1090,7 +1096,7 @@ xfs_qm_dqiterate(
1090 xfs_buf_readahead(mp->m_ddev_targp, 1096 xfs_buf_readahead(mp->m_ddev_targp,
1091 XFS_FSB_TO_DADDR(mp, rablkno), 1097 XFS_FSB_TO_DADDR(mp, rablkno),
1092 mp->m_quotainfo->qi_dqchunklen, 1098 mp->m_quotainfo->qi_dqchunklen,
1093 NULL); 1099 &xfs_dquot_buf_ops);
1094 rablkno++; 1100 rablkno++;
1095 } 1101 }
1096 } 1102 }