diff options
author | Marcin Slusarz <marcin.slusarz@gmail.com> | 2008-02-13 00:06:18 +0100 |
---|---|---|
committer | Mark Fasheh <mark.fasheh@oracle.com> | 2008-03-03 15:50:21 -0800 |
commit | 0dd3256e04c452396c9d22943e4a18e02f4dbdf4 (patch) | |
tree | 2e4cdc053041d9313ed0dfbac111d28261c238c8 /fs/ocfs2/localalloc.c | |
parent | 1044e401af9a309637828aa3cc8f3b6409fcbf4e (diff) | |
download | blackbird-op-linux-0dd3256e04c452396c9d22943e4a18e02f4dbdf4.tar.gz blackbird-op-linux-0dd3256e04c452396c9d22943e4a18e02f4dbdf4.zip |
[PATCH] ocfs2: le*_add_cpu conversion
replace all:
little_endian_variable = cpu_to_leX(leX_to_cpu(little_endian_variable) +
expression_in_cpu_byteorder);
with:
leX_add_cpu(&little_endian_variable, expression_in_cpu_byteorder);
generated with semantic patch
Signed-off-by: Marcin Slusarz <marcin.slusarz@gmail.com>
Signed-off-by: Mark Fasheh <mark.fasheh@oracle.com>
Diffstat (limited to 'fs/ocfs2/localalloc.c')
-rw-r--r-- | fs/ocfs2/localalloc.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/ocfs2/localalloc.c b/fs/ocfs2/localalloc.c index b1004b01a5fc..ab83fd562429 100644 --- a/fs/ocfs2/localalloc.c +++ b/fs/ocfs2/localalloc.c @@ -585,8 +585,7 @@ int ocfs2_claim_local_alloc_bits(struct ocfs2_super *osb, while(bits_wanted--) ocfs2_set_bit(start++, bitmap); - alloc->id1.bitmap1.i_used = cpu_to_le32(*num_bits + - le32_to_cpu(alloc->id1.bitmap1.i_used)); + le32_add_cpu(&alloc->id1.bitmap1.i_used, *num_bits); status = ocfs2_journal_dirty(handle, osb->local_alloc_bh); if (status < 0) { |