From: Dave Chinner Date: Tue, 21 Dec 2010 01:06:05 +0000 (+1100) Subject: xfs: rework log grant space calculations X-Git-Tag: v2.6.38-rc1~44^2~22 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=663e496a720a3a9fc08ea70b29724e8906b34e43;p=pandora-kernel.git 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 Reviewed-by: Christoph Hellwig --- Reading git-diff-tree failed