Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 330200
b: refs/heads/master
c: c99b684
h: refs/heads/master
v: v3
  • Loading branch information
Wei Yongjun authored and Linus Torvalds committed Oct 5, 2012
1 parent 43d042d commit 4c45b71
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 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: 0324b5a450f8a58304e93c5d886add24ca3527bc
refs/heads/master: c99b6841d74a5c7d3698cc2a3ec44241fe64b769
5 changes: 2 additions & 3 deletions trunk/fs/omfs/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,7 @@ static int omfs_grow_extent(struct inode *inode, struct omfs_extent *oe,
be64_to_cpu(entry->e_blocks);

if (omfs_allocate_block(inode->i_sb, new_block)) {
entry->e_blocks =
cpu_to_be64(be64_to_cpu(entry->e_blocks) + 1);
be64_add_cpu(&entry->e_blocks, 1);
terminator->e_blocks = ~(cpu_to_be64(
be64_to_cpu(~terminator->e_blocks) + 1));
goto out;
Expand Down Expand Up @@ -177,7 +176,7 @@ static int omfs_grow_extent(struct inode *inode, struct omfs_extent *oe,
be64_to_cpu(~terminator->e_blocks) + (u64) new_count));

/* write in new entry */
oe->e_extent_count = cpu_to_be32(1 + be32_to_cpu(oe->e_extent_count));
be32_add_cpu(&oe->e_extent_count, 1);

out:
*ret_block = new_block;
Expand Down

0 comments on commit 4c45b71

Please sign in to comment.