xfs: update both stat counters together in xlog_sync
Just a small bit of code tidying up. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Dave Chinner <dchinner@redhat.com> Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com> Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
This commit is contained in:
parent
db0a6faf93
commit
9b0489c1d1
|
@ -1859,7 +1859,6 @@ xlog_sync(
|
|||
unsigned int size;
|
||||
bool need_flush = true;
|
||||
|
||||
XFS_STATS_INC(log->l_mp, xs_log_writes);
|
||||
ASSERT(atomic_read(&iclog->ic_refcnt) == 0);
|
||||
|
||||
count = xlog_calc_iclog_size(log, iclog, &roundoff);
|
||||
|
@ -1877,6 +1876,7 @@ xlog_sync(
|
|||
size += roundoff;
|
||||
iclog->ic_header.h_len = cpu_to_be32(size);
|
||||
|
||||
XFS_STATS_INC(log->l_mp, xs_log_writes);
|
||||
XFS_STATS_ADD(log->l_mp, xs_log_blocks, BTOBB(count));
|
||||
|
||||
bno = BLOCK_LSN(be64_to_cpu(iclog->ic_header.h_lsn));
|
||||
|
|
Loading…
Reference in New Issue