xfs: fact out common grant head/log tail verification code
authorDave Chinner <dchinner@redhat.com>
Tue, 21 Dec 2010 01:02:52 +0000 (12:02 +1100)
committerDave Chinner <david@fromorbit.com>
Tue, 21 Dec 2010 01:02:52 +0000 (12:02 +1100)
commit3f336c6fa17c2b3d14b3dd1bd6e64e9cc97b6359
tree14bd6f82656ad71586b94b7851a7c748ce86de13
parent1054794198e39103cb986618c4c10ec2252b7089
xfs: fact out common grant head/log tail verification code

Factor repeated debug code out of grant head manipulation functions into a
separate function. This removes ifdef DEBUG spagetti from the code and makes
the code easier to follow.

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