diff -urpN linux-2.6-xfs6/fs/xfs/xfs_bmap.h linux-2.6-xfs7/fs/xfs/xfs_bmap.h --- linux-2.6-xfs6/fs/xfs/xfs_bmap.h 2008-04-22 04:06:43.000000000 +0200 +++ linux-2.6-xfs7/fs/xfs/xfs_bmap.h 2008-04-22 13:10:36.000000000 +0200 @@ -170,6 +170,10 @@ xfs_bmap_add_attrfork( * Add the extent to the list of extents to be free at transaction end. * The list is maintained sorted (by block number). */ +#ifndef DEBUG +/* "mp" is used only for debugging */ +#define xfs_bmap_add_free(bno, len, flist, mp) xfs_bmap_add_free(bno, len, flist) +#endif void xfs_bmap_add_free( xfs_fsblock_t bno, /* fs block number of extent */ diff -urpN linux-2.6-xfs6/fs/xfs/xfs_btree.h linux-2.6-xfs7/fs/xfs/xfs_btree.h --- linux-2.6-xfs6/fs/xfs/xfs_btree.h 2008-04-22 04:06:43.000000000 +0200 +++ linux-2.6-xfs7/fs/xfs/xfs_btree.h 2008-04-22 13:10:36.000000000 +0200 @@ -363,6 +363,9 @@ xfs_btree_offsets( * Get a buffer for the block, return it read in. * Long-form addressing. */ +/* In Linux, "refval" is not used */ +#define xfs_btree_read_bufl(mp, tp, fsbno, lock, bpp, refval) \ + xfs_btree_read_bufl(mp, tp, fsbno, lock, bpp) int /* error */ xfs_btree_read_bufl( struct xfs_mount *mp, /* file system mount point */