diff options
author | Marcin Slusarz <marcin.slusarz@gmail.com> | 2008-02-13 18:03:29 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2008-02-13 19:21:19 -0500 |
commit | 413d57c9907c72ed608df2be72ef8ed13a3eeb46 (patch) | |
tree | 92f98a1219915d2d72589b24a04232fccf3a40f2 /fs/xfs/xfs_dir2_block.c | |
parent | 91d35dd93e14c34539a8005183ea500f25caad02 (diff) |
xfs: convert beX_add to beX_add_cpu (new common API)
remove beX_add functions and replace all uses with beX_add_cpu
Signed-off-by: Marcin Slusarz <marcin.slusarz@gmail.com>
Cc: Mark Fasheh <mark.fasheh@oracle.com>
Reviewed-by: Dave Chinner <dgc@sgi.com>
Cc: Timothy Shimmin <tes@sgi.com>
Cc: <linux-ext4@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/xfs/xfs_dir2_block.c')
-rw-r--r-- | fs/xfs/xfs_dir2_block.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/xfs/xfs_dir2_block.c b/fs/xfs/xfs_dir2_block.c index a5f4f4fb8868..fb5a556725b3 100644 --- a/fs/xfs/xfs_dir2_block.c +++ b/fs/xfs/xfs_dir2_block.c | |||
@@ -271,7 +271,7 @@ xfs_dir2_block_addname( | |||
271 | } | 271 | } |
272 | lfloglow = toidx + 1 - (be32_to_cpu(btp->stale) - 1); | 272 | lfloglow = toidx + 1 - (be32_to_cpu(btp->stale) - 1); |
273 | lfloghigh -= be32_to_cpu(btp->stale) - 1; | 273 | lfloghigh -= be32_to_cpu(btp->stale) - 1; |
274 | be32_add(&btp->count, -(be32_to_cpu(btp->stale) - 1)); | 274 | be32_add_cpu(&btp->count, -(be32_to_cpu(btp->stale) - 1)); |
275 | xfs_dir2_data_make_free(tp, bp, | 275 | xfs_dir2_data_make_free(tp, bp, |
276 | (xfs_dir2_data_aoff_t)((char *)blp - (char *)block), | 276 | (xfs_dir2_data_aoff_t)((char *)blp - (char *)block), |
277 | (xfs_dir2_data_aoff_t)((be32_to_cpu(btp->stale) - 1) * sizeof(*blp)), | 277 | (xfs_dir2_data_aoff_t)((be32_to_cpu(btp->stale) - 1) * sizeof(*blp)), |
@@ -326,7 +326,7 @@ xfs_dir2_block_addname( | |||
326 | /* | 326 | /* |
327 | * Update the tail (entry count). | 327 | * Update the tail (entry count). |
328 | */ | 328 | */ |
329 | be32_add(&btp->count, 1); | 329 | be32_add_cpu(&btp->count, 1); |
330 | /* | 330 | /* |
331 | * If we now need to rebuild the bestfree map, do so. | 331 | * If we now need to rebuild the bestfree map, do so. |
332 | * This needs to happen before the next call to use_free. | 332 | * This needs to happen before the next call to use_free. |
@@ -387,7 +387,7 @@ xfs_dir2_block_addname( | |||
387 | lfloglow = MIN(mid, lfloglow); | 387 | lfloglow = MIN(mid, lfloglow); |
388 | lfloghigh = MAX(highstale, lfloghigh); | 388 | lfloghigh = MAX(highstale, lfloghigh); |
389 | } | 389 | } |
390 | be32_add(&btp->stale, -1); | 390 | be32_add_cpu(&btp->stale, -1); |
391 | } | 391 | } |
392 | /* | 392 | /* |
393 | * Point to the new data entry. | 393 | * Point to the new data entry. |
@@ -767,7 +767,7 @@ xfs_dir2_block_removename( | |||
767 | /* | 767 | /* |
768 | * Fix up the block tail. | 768 | * Fix up the block tail. |
769 | */ | 769 | */ |
770 | be32_add(&btp->stale, 1); | 770 | be32_add_cpu(&btp->stale, 1); |
771 | xfs_dir2_block_log_tail(tp, bp); | 771 | xfs_dir2_block_log_tail(tp, bp); |
772 | /* | 772 | /* |
773 | * Remove the leaf entry by marking it stale. | 773 | * Remove the leaf entry by marking it stale. |