diff options
author | Dave Chinner <dchinner@redhat.com> | 2011-03-06 18:08:35 -0500 |
---|---|---|
committer | Dave Chinner <david@fromorbit.com> | 2011-03-06 18:08:35 -0500 |
commit | 0b932cccbdc09a72aa370456a59b40ecd6b10baf (patch) | |
tree | e13910b0589804e7e56e765e931c781829bafe8c /fs/xfs/quota/xfs_qm.c | |
parent | 8221112b4377a3b69f2016b5cc3c550d51dd3139 (diff) |
xfs: Convert remaining cmn_err() callers to new API
Once converted, kill the remainder of the cmn_err() interface.
Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Alex Elder <aelder@sgi.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'fs/xfs/quota/xfs_qm.c')
-rw-r--r-- | fs/xfs/quota/xfs_qm.c | 27 |
1 files changed, 12 insertions, 15 deletions
diff --git a/fs/xfs/quota/xfs_qm.c b/fs/xfs/quota/xfs_qm.c index e34dce1ce542..254ee062bd7d 100644 --- a/fs/xfs/quota/xfs_qm.c +++ b/fs/xfs/quota/xfs_qm.c | |||
@@ -80,7 +80,7 @@ xfs_qm_dquot_list_print( | |||
80 | int i = 0; | 80 | int i = 0; |
81 | 81 | ||
82 | list_for_each_entry(dqp, &mp->m_quotainfo->qi_dqlist_lock, qi_mplist) { | 82 | list_for_each_entry(dqp, &mp->m_quotainfo->qi_dqlist_lock, qi_mplist) { |
83 | cmn_err(CE_DEBUG, " %d. \"%d (%s)\" " | 83 | xfs_debug(mp, " %d. \"%d (%s)\" " |
84 | "bcnt = %lld, icnt = %lld, refs = %d", | 84 | "bcnt = %lld, icnt = %lld, refs = %d", |
85 | i++, be32_to_cpu(dqp->q_core.d_id), | 85 | i++, be32_to_cpu(dqp->q_core.d_id), |
86 | DQFLAGTO_TYPESTR(dqp), | 86 | DQFLAGTO_TYPESTR(dqp), |
@@ -205,7 +205,7 @@ xfs_qm_destroy( | |||
205 | list_for_each_entry_safe(dqp, n, &xqm->qm_dqfrlist, q_freelist) { | 205 | list_for_each_entry_safe(dqp, n, &xqm->qm_dqfrlist, q_freelist) { |
206 | xfs_dqlock(dqp); | 206 | xfs_dqlock(dqp); |
207 | #ifdef QUOTADEBUG | 207 | #ifdef QUOTADEBUG |
208 | cmn_err(CE_DEBUG, "FREELIST destroy 0x%p", dqp); | 208 | xfs_debug(dqp->q_mount, "FREELIST destroy 0x%p", dqp); |
209 | #endif | 209 | #endif |
210 | list_del_init(&dqp->q_freelist); | 210 | list_del_init(&dqp->q_freelist); |
211 | xfs_Gqm->qm_dqfrlist_cnt--; | 211 | xfs_Gqm->qm_dqfrlist_cnt--; |
@@ -341,9 +341,7 @@ xfs_qm_mount_quotas( | |||
341 | * quotas immediately. | 341 | * quotas immediately. |
342 | */ | 342 | */ |
343 | if (mp->m_sb.sb_rextents) { | 343 | if (mp->m_sb.sb_rextents) { |
344 | cmn_err(CE_NOTE, | 344 | xfs_notice(mp, "Cannot turn on quotas for realtime filesystem"); |
345 | "Cannot turn on quotas for realtime filesystem %s", | ||
346 | mp->m_fsname); | ||
347 | mp->m_qflags = 0; | 345 | mp->m_qflags = 0; |
348 | goto write_changes; | 346 | goto write_changes; |
349 | } | 347 | } |
@@ -1668,7 +1666,7 @@ xfs_qm_quotacheck( | |||
1668 | */ | 1666 | */ |
1669 | ASSERT(list_empty(&mp->m_quotainfo->qi_dqlist)); | 1667 | ASSERT(list_empty(&mp->m_quotainfo->qi_dqlist)); |
1670 | 1668 | ||
1671 | cmn_err(CE_NOTE, "XFS quotacheck %s: Please wait.", mp->m_fsname); | 1669 | xfs_notice(mp, "Quotacheck needed: Please wait."); |
1672 | 1670 | ||
1673 | /* | 1671 | /* |
1674 | * First we go thru all the dquots on disk, USR and GRP/PRJ, and reset | 1672 | * First we go thru all the dquots on disk, USR and GRP/PRJ, and reset |
@@ -1746,9 +1744,9 @@ xfs_qm_quotacheck( | |||
1746 | 1744 | ||
1747 | error_return: | 1745 | error_return: |
1748 | if (error) { | 1746 | if (error) { |
1749 | cmn_err(CE_WARN, "XFS quotacheck %s: Unsuccessful (Error %d): " | 1747 | xfs_warn(mp, |
1750 | "Disabling quotas.", | 1748 | "Quotacheck: Unsuccessful (Error %d): Disabling quotas.", |
1751 | mp->m_fsname, error); | 1749 | error); |
1752 | /* | 1750 | /* |
1753 | * We must turn off quotas. | 1751 | * We must turn off quotas. |
1754 | */ | 1752 | */ |
@@ -1756,12 +1754,11 @@ xfs_qm_quotacheck( | |||
1756 | ASSERT(xfs_Gqm != NULL); | 1754 | ASSERT(xfs_Gqm != NULL); |
1757 | xfs_qm_destroy_quotainfo(mp); | 1755 | xfs_qm_destroy_quotainfo(mp); |
1758 | if (xfs_mount_reset_sbqflags(mp)) { | 1756 | if (xfs_mount_reset_sbqflags(mp)) { |
1759 | cmn_err(CE_WARN, "XFS quotacheck %s: " | 1757 | xfs_warn(mp, |
1760 | "Failed to reset quota flags.", mp->m_fsname); | 1758 | "Quotacheck: Failed to reset quota flags."); |
1761 | } | 1759 | } |
1762 | } else { | 1760 | } else |
1763 | cmn_err(CE_NOTE, "XFS quotacheck %s: Done.", mp->m_fsname); | 1761 | xfs_notice(mp, "Quotacheck: Done."); |
1764 | } | ||
1765 | return (error); | 1762 | return (error); |
1766 | } | 1763 | } |
1767 | 1764 | ||
@@ -2107,7 +2104,7 @@ xfs_qm_write_sb_changes( | |||
2107 | int error; | 2104 | int error; |
2108 | 2105 | ||
2109 | #ifdef QUOTADEBUG | 2106 | #ifdef QUOTADEBUG |
2110 | cmn_err(CE_NOTE, "Writing superblock quota changes :%s", mp->m_fsname); | 2107 | xfs_notice(mp, "Writing superblock quota changes"); |
2111 | #endif | 2108 | #endif |
2112 | tp = xfs_trans_alloc(mp, XFS_TRANS_QM_SBCHANGE); | 2109 | tp = xfs_trans_alloc(mp, XFS_TRANS_QM_SBCHANGE); |
2113 | if ((error = xfs_trans_reserve(tp, 0, | 2110 | if ((error = xfs_trans_reserve(tp, 0, |