]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: Don't reuse the same transaction ID for duplicated transactions.
authorDave Chinner <dchinner@redhat.com>
Fri, 7 May 2010 01:05:05 +0000 (11:05 +1000)
committerAlex Elder <aelder@sgi.com>
Mon, 24 May 2010 15:33:10 +0000 (10:33 -0500)
commit6eb2817a83f91d560b0bcffe8810c0929e77adbf
treec14176bd3f02e40f1fbdffc137b6f4d49b8e6d5e
parentde23c54991678063cb1e8a1bb46f2a83a1645988
xfs: Don't reuse the same transaction ID for duplicated transactions.

The transaction ID is written into the log as the unique identifier
for transactions during recover. When duplicating a transaction, we
reuse the log ticket, which means it has the same transaction ID as
the previous transaction.

Rather than regenerating a random transaction ID for the duplicated
transaction, just add one to the current ID so that duplicated
transaction can be easily spotted in the log and during recovery
during problem diagnosis.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Alex Elder <aelder@sgi.com>
fs/xfs/xfs_log.c