xfs: combine grant heads into a single 64 bit integer
authorDave Chinner <dchinner@redhat.com>
Tue, 21 Dec 2010 01:08:20 +0000 (12:08 +1100)
committerDave Chinner <david@fromorbit.com>
Tue, 21 Dec 2010 01:08:20 +0000 (12:08 +1100)
commita69ed03c24d4a336c23b7116127713d5a8c5ac4d
tree95c73e560b2780abc9125022032e8cc85ec518c7
parent663e496a720a3a9fc08ea70b29724e8906b34e43
xfs: combine grant heads into a single 64 bit integer

Prepare for switching the grant heads to atomic variables by
combining the two 32 bit values that make up the grant head into a
single 64 bit variable.  Provide wrapper functions to combine and
split the grant heads appropriately for calculations and use them as
necessary.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
fs/xfs/linux-2.6/xfs_trace.h
fs/xfs/xfs_log.c
fs/xfs/xfs_log_priv.h
fs/xfs/xfs_log_recover.c