diff options
author | Dave Chinner <david@fromorbit.com> | 2014-08-03 23:55:27 -0400 |
---|---|---|
committer | Dave Chinner <david@fromorbit.com> | 2014-08-03 23:55:27 -0400 |
commit | 645f9857213476407d8ed1b59619fdff7128d3e6 (patch) | |
tree | f48e76ffa8b4af8bfa0c64d54ff96d76b61f6f65 /fs/xfs/xfs_qm.c | |
parent | b076d8720d793cde04b75b4941b8774e209649b4 (diff) | |
parent | 4ef897a27543b513351262881660147366c042a1 (diff) |
Merge branch 'xfs-misc-fixes-3.17-2' into for-next
Diffstat (limited to 'fs/xfs/xfs_qm.c')
-rw-r--r-- | fs/xfs/xfs_qm.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/fs/xfs/xfs_qm.c b/fs/xfs/xfs_qm.c index 7e1a80b45f87..10232102b4a6 100644 --- a/fs/xfs/xfs_qm.c +++ b/fs/xfs/xfs_qm.c | |||
@@ -911,6 +911,12 @@ xfs_qm_dqiter_bufs( | |||
911 | if (error) | 911 | if (error) |
912 | break; | 912 | break; |
913 | 913 | ||
914 | /* | ||
915 | * A corrupt buffer might not have a verifier attached, so | ||
916 | * make sure we have the correct one attached before writeback | ||
917 | * occurs. | ||
918 | */ | ||
919 | bp->b_ops = &xfs_dquot_buf_ops; | ||
914 | xfs_qm_reset_dqcounts(mp, bp, firstid, type); | 920 | xfs_qm_reset_dqcounts(mp, bp, firstid, type); |
915 | xfs_buf_delwri_queue(bp, buffer_list); | 921 | xfs_buf_delwri_queue(bp, buffer_list); |
916 | xfs_buf_relse(bp); | 922 | xfs_buf_relse(bp); |
@@ -996,7 +1002,7 @@ xfs_qm_dqiterate( | |||
996 | xfs_buf_readahead(mp->m_ddev_targp, | 1002 | xfs_buf_readahead(mp->m_ddev_targp, |
997 | XFS_FSB_TO_DADDR(mp, rablkno), | 1003 | XFS_FSB_TO_DADDR(mp, rablkno), |
998 | mp->m_quotainfo->qi_dqchunklen, | 1004 | mp->m_quotainfo->qi_dqchunklen, |
999 | NULL); | 1005 | &xfs_dquot_buf_ops); |
1000 | rablkno++; | 1006 | rablkno++; |
1001 | } | 1007 | } |
1002 | } | 1008 | } |