diff options
author | Christoph Hellwig <hch@lst.de> | 2006-09-28 10:57:42 +1000 |
---|---|---|
committer | Tim Shimmin <tes@sgi.com> | 2006-09-28 10:57:42 +1000 |
commit | b113bcb83efb411f3cc6c7692fbf933ed01b67d8 (patch) | |
tree | 8b414cbdc2f8fdffbaa7a93e8e11d0d1679a5bc5 /fs/xfs/xfs_btree.h | |
parent | c38e5e84dbbeda9a92ea878ec9f6255b519a69e7 (diff) | |
download | kernel_goldelico_gta04-b113bcb83efb411f3cc6c7692fbf933ed01b67d8.zip kernel_goldelico_gta04-b113bcb83efb411f3cc6c7692fbf933ed01b67d8.tar.gz kernel_goldelico_gta04-b113bcb83efb411f3cc6c7692fbf933ed01b67d8.tar.bz2 |
[XFS] add xfs_btree_check_lptr_disk variant which handles endian
conversion
SGI-PV: 954580
SGI-Modid: xfs-linux-melb:xfs-kern:26558a
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Nathan Scott <nathans@sgi.com>
Signed-off-by: Tim Shimmin <tes@sgi.com>
Diffstat (limited to 'fs/xfs/xfs_btree.h')
-rw-r--r-- | fs/xfs/xfs_btree.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/xfs/xfs_btree.h b/fs/xfs/xfs_btree.h index 2ab1565..8bbcfeb 100644 --- a/fs/xfs/xfs_btree.h +++ b/fs/xfs/xfs_btree.h @@ -243,6 +243,9 @@ xfs_btree_check_lptr( xfs_dfsbno_t ptr, /* btree block disk address */ int level); /* btree block level */ +#define xfs_btree_check_lptr_disk(cur, ptr, level) \ + xfs_btree_check_lptr(cur, INT_GET(ptr, ARCH_CONVERT), level) + /* * Checking routine: check that short form block header is ok. */ |