xfs: rework log grant space calculations
commit663e496a720a3a9fc08ea70b29724e8906b34e43
authorDave Chinner <dchinner@redhat.com>
Tue, 21 Dec 2010 01:06:05 +0000 (21 12:06 +1100)
committerDave Chinner <david@fromorbit.com>
Tue, 21 Dec 2010 01:06:05 +0000 (21 12:06 +1100)
tree76372cb50ea4be7b12fae3d531b49f3a1fb7b57c
parent3f336c6fa17c2b3d14b3dd1bd6e64e9cc97b6359
xfs: rework log grant space calculations

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>
fs/xfs/xfs_log.c