xfs: rework log grant space calculations
authorDave Chinner <dchinner@redhat.com>
Tue, 21 Dec 2010 01:06:05 +0000 (12:06 +1100)
committerDave Chinner <david@fromorbit.com>
Tue, 21 Dec 2010 01:06:05 +0000 (12:06 +1100)
The log grant space calculations are repeated for both write and
reserve grant heads. To make it simpler to convert the calculations
toa different algorithm, factor them so both the gratn heads use the
same calculation functions. Once this is done we can drop the
wrappers that are used in only a couple of place to update both
grant heads at once as they don't provide any particular value.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>

No differences found