xfs: factor out debug checks from xfs_dialloc and xfs_difree
authorDave Chinner <dgc@sgi.com>
Mon, 31 Aug 2009 23:57:09 +0000 (20:57 -0300)
committerFelix Blyakher <felixb@sgi.com>
Tue, 1 Sep 2009 17:45:18 +0000 (12:45 -0500)
commit0b48db80ba689edfd96ed06c3124d6cf1146de3f
treed145e86f4bb459fc5462e7b97aeec4b01c55a7d6
parentafabc24a73bfee2656724b0a70395f1693eaa62b
xfs: factor out debug checks from xfs_dialloc and xfs_difree

Factor out a common helper from repeated debug checks in xfs_dialloc and
xfs_difree.

[hch: split out from Dave's dynamic allocation policy patches]

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Alex Elder <aelder@sgi.com>
Signed-off-by: Felix Blyakher <felixb@sgi.com>
fs/xfs/xfs_ialloc.c