]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7043a67b3d8fe3cec72bcab1cbdecf1b8df480f9
tree76372cb50ea4be7b12fae3d531b49f3a1fb7b57c
parent76456b61a0caecfffab1e6e668115faff2d5c4fb
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