diff options
author | Nathan Scott <nathans@sgi.com> | 2006-03-17 01:27:07 -0500 |
---|---|---|
committer | Nathan Scott <nathans@sgi.com> | 2006-03-17 01:27:07 -0500 |
commit | 0ba962ef7128d9276b8f95196382d5b9e2ad841d (patch) | |
tree | cce64b0b25696619c3060eba63c4d31ad00c12d3 /fs/xfs/xfs_dir2_leaf.c | |
parent | 70e73f59755867383edf563d5a5cbea614c0fd49 (diff) |
[XFS] endianess annotations for xfs_dir2_free_hdr_t
SGI-PV: 943272
SGI-Modid: xfs-linux-melb:xfs-kern:25485a
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Nathan Scott <nathans@sgi.com>
Diffstat (limited to 'fs/xfs/xfs_dir2_leaf.c')
-rw-r--r-- | fs/xfs/xfs_dir2_leaf.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/xfs/xfs_dir2_leaf.c b/fs/xfs/xfs_dir2_leaf.c index 8d7f154d1900..bd425925ee24 100644 --- a/fs/xfs/xfs_dir2_leaf.c +++ b/fs/xfs/xfs_dir2_leaf.c | |||
@@ -1816,7 +1816,7 @@ xfs_dir2_node_to_leaf( | |||
1816 | return error; | 1816 | return error; |
1817 | } | 1817 | } |
1818 | free = fbp->data; | 1818 | free = fbp->data; |
1819 | ASSERT(INT_GET(free->hdr.magic, ARCH_CONVERT) == XFS_DIR2_FREE_MAGIC); | 1819 | ASSERT(be32_to_cpu(free->hdr.magic) == XFS_DIR2_FREE_MAGIC); |
1820 | ASSERT(!free->hdr.firstdb); | 1820 | ASSERT(!free->hdr.firstdb); |
1821 | /* | 1821 | /* |
1822 | * Now see if the leafn and free data will fit in a leaf1. | 1822 | * Now see if the leafn and free data will fit in a leaf1. |
@@ -1824,7 +1824,7 @@ xfs_dir2_node_to_leaf( | |||
1824 | */ | 1824 | */ |
1825 | if ((uint)sizeof(leaf->hdr) + | 1825 | if ((uint)sizeof(leaf->hdr) + |
1826 | (INT_GET(leaf->hdr.count, ARCH_CONVERT) - INT_GET(leaf->hdr.stale, ARCH_CONVERT)) * (uint)sizeof(leaf->ents[0]) + | 1826 | (INT_GET(leaf->hdr.count, ARCH_CONVERT) - INT_GET(leaf->hdr.stale, ARCH_CONVERT)) * (uint)sizeof(leaf->ents[0]) + |
1827 | INT_GET(free->hdr.nvalid, ARCH_CONVERT) * (uint)sizeof(leaf->bests[0]) + | 1827 | be32_to_cpu(free->hdr.nvalid) * (uint)sizeof(leaf->bests[0]) + |
1828 | (uint)sizeof(leaf->tail) > | 1828 | (uint)sizeof(leaf->tail) > |
1829 | mp->m_dirblksize) { | 1829 | mp->m_dirblksize) { |
1830 | xfs_da_brelse(tp, fbp); | 1830 | xfs_da_brelse(tp, fbp); |
@@ -1843,7 +1843,7 @@ xfs_dir2_node_to_leaf( | |||
1843 | * Set up the leaf tail from the freespace block. | 1843 | * Set up the leaf tail from the freespace block. |
1844 | */ | 1844 | */ |
1845 | ltp = XFS_DIR2_LEAF_TAIL_P(mp, leaf); | 1845 | ltp = XFS_DIR2_LEAF_TAIL_P(mp, leaf); |
1846 | INT_COPY(ltp->bestcount, free->hdr.nvalid, ARCH_CONVERT); | 1846 | ltp->bestcount = free->hdr.nvalid; |
1847 | /* | 1847 | /* |
1848 | * Set up the leaf bests table. | 1848 | * Set up the leaf bests table. |
1849 | */ | 1849 | */ |