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_data.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_data.c')
-rw-r--r-- | fs/xfs/xfs_dir2_data.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/xfs/xfs_dir2_data.c b/fs/xfs/xfs_dir2_data.c index d2452699e9b1..fb8c9e08b23d 100644 --- a/fs/xfs/xfs_dir2_data.c +++ b/fs/xfs/xfs_dir2_data.c | |||
@@ -587,7 +587,7 @@ xfs_dir2_data_make_free( | |||
587 | /* | 587 | /* |
588 | * Fix up the new big freespace. | 588 | * Fix up the new big freespace. |
589 | */ | 589 | */ |
590 | be16_add(&prevdup->length, len + be16_to_cpu(postdup->length)); | 590 | be16_add_cpu(&prevdup->length, len + be16_to_cpu(postdup->length)); |
591 | *xfs_dir2_data_unused_tag_p(prevdup) = | 591 | *xfs_dir2_data_unused_tag_p(prevdup) = |
592 | cpu_to_be16((char *)prevdup - (char *)d); | 592 | cpu_to_be16((char *)prevdup - (char *)d); |
593 | xfs_dir2_data_log_unused(tp, bp, prevdup); | 593 | xfs_dir2_data_log_unused(tp, bp, prevdup); |
@@ -621,7 +621,7 @@ xfs_dir2_data_make_free( | |||
621 | */ | 621 | */ |
622 | else if (prevdup) { | 622 | else if (prevdup) { |
623 | dfp = xfs_dir2_data_freefind(d, prevdup); | 623 | dfp = xfs_dir2_data_freefind(d, prevdup); |
624 | be16_add(&prevdup->length, len); | 624 | be16_add_cpu(&prevdup->length, len); |
625 | *xfs_dir2_data_unused_tag_p(prevdup) = | 625 | *xfs_dir2_data_unused_tag_p(prevdup) = |
626 | cpu_to_be16((char *)prevdup - (char *)d); | 626 | cpu_to_be16((char *)prevdup - (char *)d); |
627 | xfs_dir2_data_log_unused(tp, bp, prevdup); | 627 | xfs_dir2_data_log_unused(tp, bp, prevdup); |