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_log.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_log.c')
-rw-r--r-- | fs/xfs/xfs_log.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/xfs/xfs_log.c b/fs/xfs/xfs_log.c index b3ac3805d3c4..a75edca1860f 100644 --- a/fs/xfs/xfs_log.c +++ b/fs/xfs/xfs_log.c | |||
@@ -1509,9 +1509,9 @@ xlog_sync(xlog_t *log, | |||
1509 | * case, though. | 1509 | * case, though. |
1510 | */ | 1510 | */ |
1511 | for (i = 0; i < split; i += BBSIZE) { | 1511 | for (i = 0; i < split; i += BBSIZE) { |
1512 | be32_add((__be32 *)dptr, 1); | 1512 | be32_add_cpu((__be32 *)dptr, 1); |
1513 | if (be32_to_cpu(*(__be32 *)dptr) == XLOG_HEADER_MAGIC_NUM) | 1513 | if (be32_to_cpu(*(__be32 *)dptr) == XLOG_HEADER_MAGIC_NUM) |
1514 | be32_add((__be32 *)dptr, 1); | 1514 | be32_add_cpu((__be32 *)dptr, 1); |
1515 | dptr += BBSIZE; | 1515 | dptr += BBSIZE; |
1516 | } | 1516 | } |
1517 | 1517 | ||
@@ -1600,7 +1600,7 @@ xlog_state_finish_copy(xlog_t *log, | |||
1600 | { | 1600 | { |
1601 | spin_lock(&log->l_icloglock); | 1601 | spin_lock(&log->l_icloglock); |
1602 | 1602 | ||
1603 | be32_add(&iclog->ic_header.h_num_logops, record_cnt); | 1603 | be32_add_cpu(&iclog->ic_header.h_num_logops, record_cnt); |
1604 | iclog->ic_offset += copy_bytes; | 1604 | iclog->ic_offset += copy_bytes; |
1605 | 1605 | ||
1606 | spin_unlock(&log->l_icloglock); | 1606 | spin_unlock(&log->l_icloglock); |