diff options
Diffstat (limited to 'fs/xfs/xfs_dir2_block.c')
-rw-r--r-- | fs/xfs/xfs_dir2_block.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/xfs/xfs_dir2_block.c b/fs/xfs/xfs_dir2_block.c index 35a03f29b2fb..e9d298f06ca2 100644 --- a/fs/xfs/xfs_dir2_block.c +++ b/fs/xfs/xfs_dir2_block.c | |||
@@ -880,7 +880,7 @@ xfs_dir2_leaf_to_block( | |||
880 | xfs_dabuf_t *lbp, /* leaf buffer */ | 880 | xfs_dabuf_t *lbp, /* leaf buffer */ |
881 | xfs_dabuf_t *dbp) /* data buffer */ | 881 | xfs_dabuf_t *dbp) /* data buffer */ |
882 | { | 882 | { |
883 | xfs_dir2_data_off_t *bestsp; /* leaf bests table */ | 883 | __be16 *bestsp; /* leaf bests table */ |
884 | xfs_dir2_block_t *block; /* block structure */ | 884 | xfs_dir2_block_t *block; /* block structure */ |
885 | xfs_dir2_block_tail_t *btp; /* block tail */ | 885 | xfs_dir2_block_tail_t *btp; /* block tail */ |
886 | xfs_inode_t *dp; /* incore directory inode */ | 886 | xfs_inode_t *dp; /* incore directory inode */ |
@@ -914,7 +914,7 @@ xfs_dir2_leaf_to_block( | |||
914 | */ | 914 | */ |
915 | while (dp->i_d.di_size > mp->m_dirblksize) { | 915 | while (dp->i_d.di_size > mp->m_dirblksize) { |
916 | bestsp = XFS_DIR2_LEAF_BESTS_P(ltp); | 916 | bestsp = XFS_DIR2_LEAF_BESTS_P(ltp); |
917 | if (INT_GET(bestsp[INT_GET(ltp->bestcount, ARCH_CONVERT) - 1], ARCH_CONVERT) == | 917 | if (be16_to_cpu(bestsp[INT_GET(ltp->bestcount, ARCH_CONVERT) - 1]) == |
918 | mp->m_dirblksize - (uint)sizeof(block->hdr)) { | 918 | mp->m_dirblksize - (uint)sizeof(block->hdr)) { |
919 | if ((error = | 919 | if ((error = |
920 | xfs_dir2_leaf_trim_data(args, lbp, | 920 | xfs_dir2_leaf_trim_data(args, lbp, |