Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 86762
b: refs/heads/master
c: 0dd3256
h: refs/heads/master
v: v3
  • Loading branch information
Marcin Slusarz authored and Mark Fasheh committed Mar 3, 2008
1 parent e8fed01 commit cbcf021
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1044e401af9a309637828aa3cc8f3b6409fcbf4e
refs/heads/master: 0dd3256e04c452396c9d22943e4a18e02f4dbdf4
5 changes: 2 additions & 3 deletions trunk/fs/ocfs2/dir.c
Original file line number Diff line number Diff line change
Expand Up @@ -390,9 +390,8 @@ static int __ocfs2_delete_entry(handle_t *handle, struct inode *dir,
goto bail;
}
if (pde)
pde->rec_len =
cpu_to_le16(le16_to_cpu(pde->rec_len) +
le16_to_cpu(de->rec_len));
le16_add_cpu(&pde->rec_len,
le16_to_cpu(de->rec_len));
else
de->inode = 0;
dir->i_version++;
Expand Down
3 changes: 1 addition & 2 deletions trunk/fs/ocfs2/localalloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit cbcf021

Please sign in to comment.