]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
xfs_logprint: don't advance op counter in xlog_print_trans_icreate
authorEric Sandeen <sandeen@sandeen.net>
Mon, 3 Mar 2014 01:22:02 +0000 (12:22 +1100)
committerDave Chinner <david@fromorbit.com>
Mon, 3 Mar 2014 01:22:02 +0000 (12:22 +1100)
xlog_print_trans_icreate is advancing the op counter
"(*i)++" incorrectly; it only contains one region, and
the loop which called it will properly advance the op
once we're done.

Found-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
logprint/log_misc.c

index 7070fa3569550a4ad3b76d804e1a3e3a66cb96e5..52f1e85c30c52cb3947d8c30768d152c6818aa01 100644 (file)
@@ -810,7 +810,6 @@ xlog_print_trans_icreate(
 
        memmove(&icl_buf, *ptr, MIN(sizeof(struct xfs_icreate_log), len));
        icl = &icl_buf;
-       (*i)++;
        *ptr += len;
 
        /* handle complete header only */