|
@@ -585,8 +585,7 @@ int ocfs2_claim_local_alloc_bits(struct ocfs2_super *osb,
|
|
while(bits_wanted--)
|
|
while(bits_wanted--)
|
|
ocfs2_set_bit(start++, bitmap);
|
|
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);
|
|
status = ocfs2_journal_dirty(handle, osb->local_alloc_bh);
|
|
if (status < 0) {
|
|
if (status < 0) {
|