git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fedora core 6 1.2949 + vserver 2.2.0
[linux-2.6.git]
/
fs
/
xfs
/
xfs_dir2_block.h
diff --git
a/fs/xfs/xfs_dir2_block.h
b/fs/xfs/xfs_dir2_block.h
index
a2e5cb9
..
6722eff
100644
(file)
--- a/
fs/xfs/xfs_dir2_block.h
+++ b/
fs/xfs/xfs_dir2_block.h
@@
-43,8
+43,8
@@
struct xfs_trans;
#define XFS_DIR2_BLOCK_MAGIC 0x58443242 /* XD2B: for one block dirs */
typedef struct xfs_dir2_block_tail {
#define XFS_DIR2_BLOCK_MAGIC 0x58443242 /* XD2B: for one block dirs */
typedef struct xfs_dir2_block_tail {
- __
uint32_t
count; /* count of leaf entries */
- __
uint32_t
stale; /* count of stale lf entries */
+ __
be32
count; /* count of leaf entries */
+ __
be32
stale; /* count of stale lf entries */
} xfs_dir2_block_tail_t;
/*
} xfs_dir2_block_tail_t;
/*
@@
-75,8
+75,7
@@
xfs_dir2_block_tail_p(struct xfs_mount *mp, xfs_dir2_block_t *block)
static inline struct xfs_dir2_leaf_entry *
xfs_dir2_block_leaf_p(xfs_dir2_block_tail_t *btp)
{
static inline struct xfs_dir2_leaf_entry *
xfs_dir2_block_leaf_p(xfs_dir2_block_tail_t *btp)
{
- return (((struct xfs_dir2_leaf_entry *)
- (btp)) - INT_GET((btp)->count, ARCH_CONVERT));
+ return ((struct xfs_dir2_leaf_entry *)btp) - be32_to_cpu(btp->count);
}
/*
}
/*