aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/quota
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@infradead.org>2010-06-23 04:11:15 -0400
committerAlex Elder <aelder@sgi.com>2010-07-26 14:16:36 -0400
commit4e0d5f926b80b06234a4ed664d6ae8c54fb08c4b (patch)
tree6e8412c8e0dec25e5e895acb3e73fc25855800dd /fs/xfs/quota
parent898621d5a72c6799a9a13fce20443b4b6699899c (diff)
xfs: fix the xfs_log_iovec i_addr type
By making this member a void pointer we can get rid of a lot of pointless casts. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Dave Chinner <dchinner@redhat.com>
Diffstat (limited to 'fs/xfs/quota')
-rw-r--r--fs/xfs/quota/xfs_dquot_item.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/xfs/quota/xfs_dquot_item.c b/fs/xfs/quota/xfs_dquot_item.c
index cd86bc317d59..2a1f3dc10a02 100644
--- a/fs/xfs/quota/xfs_dquot_item.c
+++ b/fs/xfs/quota/xfs_dquot_item.c
@@ -65,11 +65,11 @@ xfs_qm_dquot_logitem_format(
65{ 65{
66 struct xfs_dq_logitem *qlip = DQUOT_ITEM(lip); 66 struct xfs_dq_logitem *qlip = DQUOT_ITEM(lip);
67 67
68 logvec->i_addr = (xfs_caddr_t)&qlip->qli_format; 68 logvec->i_addr = &qlip->qli_format;
69 logvec->i_len = sizeof(xfs_dq_logformat_t); 69 logvec->i_len = sizeof(xfs_dq_logformat_t);
70 logvec->i_type = XLOG_REG_TYPE_QFORMAT; 70 logvec->i_type = XLOG_REG_TYPE_QFORMAT;
71 logvec++; 71 logvec++;
72 logvec->i_addr = (xfs_caddr_t)&qlip->qli_dquot->q_core; 72 logvec->i_addr = &qlip->qli_dquot->q_core;
73 logvec->i_len = sizeof(xfs_disk_dquot_t); 73 logvec->i_len = sizeof(xfs_disk_dquot_t);
74 logvec->i_type = XLOG_REG_TYPE_DQUOT; 74 logvec->i_type = XLOG_REG_TYPE_DQUOT;
75 75
@@ -369,7 +369,7 @@ xfs_qm_qoff_logitem_format(
369 369
370 ASSERT(qflip->qql_format.qf_type == XFS_LI_QUOTAOFF); 370 ASSERT(qflip->qql_format.qf_type == XFS_LI_QUOTAOFF);
371 371
372 log_vector->i_addr = (xfs_caddr_t)&(qflip->qql_format); 372 log_vector->i_addr = &qflip->qql_format;
373 log_vector->i_len = sizeof(xfs_qoff_logitem_t); 373 log_vector->i_len = sizeof(xfs_qoff_logitem_t);
374 log_vector->i_type = XLOG_REG_TYPE_QUOTAOFF; 374 log_vector->i_type = XLOG_REG_TYPE_QUOTAOFF;
375 qflip->qql_format.qf_size = 1; 375 qflip->qql_format.qf_size = 1;