diff options
author | Christoph Hellwig <hch@infradead.org> | 2013-12-12 19:34:08 -0500 |
---|---|---|
committer | Dave Chinner <david@fromorbit.com> | 2013-12-12 19:34:08 -0500 |
commit | ffda4e83aa107ff55345dc583efdb24fca486fb5 (patch) | |
tree | 96b2db20b7e5388375c3dacfaa37cb733bed2534 /fs/xfs/xfs_dquot_item.c | |
parent | ce8e962939ca12218092f8eb3c8cfb196cd8cc51 (diff) |
xfs: remove the quotaoff log format from the quotaoff log item
This one doesn't save a whole lot of memory, but still makes the
code simpler.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
Diffstat (limited to 'fs/xfs/xfs_dquot_item.c')
-rw-r--r-- | fs/xfs/xfs_dquot_item.c | 22 |
1 files changed, 7 insertions, 15 deletions
diff --git a/fs/xfs/xfs_dquot_item.c b/fs/xfs/xfs_dquot_item.c index d4fffa90036a..f33fbaaa4d8a 100644 --- a/fs/xfs/xfs_dquot_item.c +++ b/fs/xfs/xfs_dquot_item.c | |||
@@ -286,13 +286,6 @@ xfs_qm_qoff_logitem_size( | |||
286 | *nbytes += sizeof(struct xfs_qoff_logitem); | 286 | *nbytes += sizeof(struct xfs_qoff_logitem); |
287 | } | 287 | } |
288 | 288 | ||
289 | /* | ||
290 | * This is called to fill in the vector of log iovecs for the | ||
291 | * given quotaoff log item. We use only 1 iovec, and we point that | ||
292 | * at the quotaoff_log_format structure embedded in the quotaoff item. | ||
293 | * It is at this point that we assert that all of the extent | ||
294 | * slots in the quotaoff item have been filled. | ||
295 | */ | ||
296 | STATIC void | 289 | STATIC void |
297 | xfs_qm_qoff_logitem_format( | 290 | xfs_qm_qoff_logitem_format( |
298 | struct xfs_log_item *lip, | 291 | struct xfs_log_item *lip, |
@@ -300,13 +293,13 @@ xfs_qm_qoff_logitem_format( | |||
300 | { | 293 | { |
301 | struct xfs_qoff_logitem *qflip = QOFF_ITEM(lip); | 294 | struct xfs_qoff_logitem *qflip = QOFF_ITEM(lip); |
302 | struct xfs_log_iovec *vecp = NULL; | 295 | struct xfs_log_iovec *vecp = NULL; |
296 | struct xfs_qoff_logformat *qlf; | ||
303 | 297 | ||
304 | ASSERT(qflip->qql_format.qf_type == XFS_LI_QUOTAOFF); | 298 | qlf = xlog_prepare_iovec(lv, &vecp, XLOG_REG_TYPE_QUOTAOFF); |
305 | qflip->qql_format.qf_size = 1; | 299 | qlf->qf_type = XFS_LI_QUOTAOFF; |
306 | 300 | qlf->qf_size = 1; | |
307 | xlog_copy_iovec(lv, &vecp, XLOG_REG_TYPE_QUOTAOFF, | 301 | qlf->qf_flags = qflip->qql_flags; |
308 | &qflip->qql_format, | 302 | xlog_finish_iovec(lv, vecp, sizeof(struct xfs_qoff_logitem)); |
309 | sizeof(struct xfs_qoff_logitem)); | ||
310 | } | 303 | } |
311 | 304 | ||
312 | /* | 305 | /* |
@@ -446,8 +439,7 @@ xfs_qm_qoff_logitem_init( | |||
446 | xfs_log_item_init(mp, &qf->qql_item, XFS_LI_QUOTAOFF, start ? | 439 | xfs_log_item_init(mp, &qf->qql_item, XFS_LI_QUOTAOFF, start ? |
447 | &xfs_qm_qoffend_logitem_ops : &xfs_qm_qoff_logitem_ops); | 440 | &xfs_qm_qoffend_logitem_ops : &xfs_qm_qoff_logitem_ops); |
448 | qf->qql_item.li_mountp = mp; | 441 | qf->qql_item.li_mountp = mp; |
449 | qf->qql_format.qf_type = XFS_LI_QUOTAOFF; | ||
450 | qf->qql_format.qf_flags = flags; | ||
451 | qf->qql_start_lip = start; | 442 | qf->qql_start_lip = start; |
443 | qf->qql_flags = flags; | ||
452 | return qf; | 444 | return qf; |
453 | } | 445 | } |