diff options
| author | Stephen Lord <lord@sgi.com> | 2002-10-16 23:43:46 +0200 |
|---|---|---|
| committer | Stephen Lord <lord@sgi.com> | 2002-10-16 23:43:46 +0200 |
| commit | 2b71f90ef2abde95fe343ddbe537dd2f9d1a6a83 (patch) | |
| tree | 2a3e5dd54b88d43d80b372f2ebad628ccb43f3c0 | |
| parent | 98e222d7014cf4f19baa62eb21df232afb3b5321 (diff) | |
XFS: fix xfs build on big endian architectures and cleanup
Modid: 2.5.x-xfs:slinx:130142a
| -rw-r--r-- | fs/xfs/linux/xfs_globals.c | 3 | ||||
| -rw-r--r-- | fs/xfs/xfs_bmap_btree.c | 4 | ||||
| -rw-r--r-- | fs/xfs/xfs_bmap_btree.h | 4 | ||||
| -rw-r--r-- | fs/xfs/xfs_inode.c | 5 | ||||
| -rw-r--r-- | fs/xfs/xfs_inode_item.h | 6 |
5 files changed, 11 insertions, 11 deletions
diff --git a/fs/xfs/linux/xfs_globals.c b/fs/xfs/linux/xfs_globals.c index 7f0ac30a83ba..94105d5fb14f 100644 --- a/fs/xfs/linux/xfs_globals.c +++ b/fs/xfs/linux/xfs_globals.c @@ -64,5 +64,6 @@ EXPORT_SYMBOL(xfs_Gqm); EXPORT_SYMBOL(xfs_next_bit); EXPORT_SYMBOL(xfs_contig_bits); EXPORT_SYMBOL(xfs_bmbt_get_all); +#if ARCH_CONVERT != ARCH_NOCONVERT EXPORT_SYMBOL(xfs_bmbt_disk_get_all); - +#endif diff --git a/fs/xfs/xfs_bmap_btree.c b/fs/xfs/xfs_bmap_btree.c index 07d513d24f74..47e5dec6e688 100644 --- a/fs/xfs/xfs_bmap_btree.c +++ b/fs/xfs/xfs_bmap_btree.c @@ -253,11 +253,7 @@ xfs_bmbt_trace_cursor( xfs_bmbt_trace_enter(func, cur, s, XFS_BMBT_KTRACE_CUR, line, (cur->bc_nlevels << 24) | (cur->bc_private.b.flags << 16) | cur->bc_private.b.allocated, -#if BMBT_USE_64 INT_GET(r.l0, ARCH_CONVERT) >> 32, (int)INT_GET(r.l0, ARCH_CONVERT), INT_GET(r.l1, ARCH_CONVERT) >> 32, (int)INT_GET(r.l1, ARCH_CONVERT), -#else - INT_GET(r.l0, ARCH_CONVERT), INT_GET(r.l1, ARCH_CONVERT), INT_GET(r.l2, ARCH_CONVERT), INT_GET(r.l3, ARCH_CONVERT), -#endif (unsigned long)cur->bc_bufs[0], (unsigned long)cur->bc_bufs[1], (unsigned long)cur->bc_bufs[2], (unsigned long)cur->bc_bufs[3], (cur->bc_ptrs[0] << 16) | cur->bc_ptrs[1], diff --git a/fs/xfs/xfs_bmap_btree.h b/fs/xfs/xfs_bmap_btree.h index 8aeefd43c967..1b8aa70f480f 100644 --- a/fs/xfs/xfs_bmap_btree.h +++ b/fs/xfs/xfs_bmap_btree.h @@ -658,8 +658,8 @@ xfs_bmbt_disk_set_allf( #else #define xfs_bmbt_disk_set_all(r, s) \ xfs_bmbt_set_all(r, s) -#define xfs_bmbt_disk_set_allf(r, 0, b, c, v) \ - xfs_bmbt_set_allf(r, 0, b, c, v) +#define xfs_bmbt_disk_set_allf(r, o, b, c, v) \ + xfs_bmbt_set_allf(r, o, b, c, v) #endif void diff --git a/fs/xfs/xfs_inode.c b/fs/xfs/xfs_inode.c index bd343063b60d..45acdc3999c9 100644 --- a/fs/xfs/xfs_inode.c +++ b/fs/xfs/xfs_inode.c @@ -602,9 +602,12 @@ xfs_iformat_extents( int whichfork) { xfs_ifork_t *ifp; - int nex, i; + int nex; int real_size; int size; +#if ARCH_CONVERT != ARCH_NOCONVERT + int i; +#endif xfs_bmbt_rec_t *ep, *dp; ifp = XFS_IFORK_PTR(ip, whichfork); diff --git a/fs/xfs/xfs_inode_item.h b/fs/xfs/xfs_inode_item.h index 4970205a5e69..c893dbfc9d37 100644 --- a/fs/xfs/xfs_inode_item.h +++ b/fs/xfs/xfs_inode_item.h @@ -126,7 +126,7 @@ typedef struct xfs_inode_log_format_v1 { #ifdef __KERNEL__ struct xfs_buf; -struct xfs_bmbt_rec_32; +struct xfs_bmbt_rec_64; struct xfs_inode; struct xfs_mount; @@ -141,9 +141,9 @@ typedef struct xfs_inode_log_item { unsigned short ili_flags; /* misc flags */ unsigned short ili_logged; /* flushed logged data */ unsigned int ili_last_fields; /* fields when flushed */ - struct xfs_bmbt_rec_32 *ili_extents_buf; /* array of logged + struct xfs_bmbt_rec_64 *ili_extents_buf; /* array of logged data exts */ - struct xfs_bmbt_rec_32 *ili_aextents_buf; /* array of logged + struct xfs_bmbt_rec_64 *ili_aextents_buf; /* array of logged attr exts */ unsigned int ili_pushbuf_flag; /* one bit used in push_ail */ |
