aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/linux-2.6/xfs_sync.c
diff options
context:
space:
mode:
authorDave Chinner <dchinner@redhat.com>2010-04-14 15:47:55 +1000
committerAlex Elder <aelder@sgi.com>2010-05-19 09:58:13 -0500
commitf983710758218c7aad4aae3e40a7312a21d6f55a (patch)
treec4647b60e06338c730ebaf0d65ed696cce5e1e68 /fs/xfs/linux-2.6/xfs_sync.c
parent36adecff50b69df0369cc2022650c6087aeb255f (diff)
downloadkernel_samsung_espresso10-f983710758218c7aad4aae3e40a7312a21d6f55a.zip
kernel_samsung_espresso10-f983710758218c7aad4aae3e40a7312a21d6f55a.tar.gz
kernel_samsung_espresso10-f983710758218c7aad4aae3e40a7312a21d6f55a.tar.bz2
xfs: make the log ticket transaction id random
The transaction ID that is written to the log for a transaction is currently set by taking the lower 32 bits of the memory address of the ticket structure. This is not guaranteed to be unique as tickets comes from a slab and slots can be reallocated immediately after being freed. As a result, there is no guarantee of uniqueness in the ticket ID value. Fix this by assigning a random number to the ticket ID field so that it is extremely unlikely that duplicates will occur and remove the possibility of transactions being mixed up during recovery due to duplicate IDs. Signed-off-by: Dave Chinner <dchinner@redhat.com> Reviewed-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'fs/xfs/linux-2.6/xfs_sync.c')
0 files changed, 0 insertions, 0 deletions