Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 331585
b: refs/heads/master
c: 90b0a97
h: refs/heads/master
i:
  331583: 6c7fb25
v: v3
  • Loading branch information
Carlos Maiolino authored and Theodore Ts'o committed Sep 18, 2012
1 parent c1a5fc9 commit a324111
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 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: bc0b75f77a944b482293972eb8fd5c88c576eb46
refs/heads/master: 90b0a97323f42ead278bbccbdf0e123db2add400
4 changes: 3 additions & 1 deletion trunk/fs/ext4/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -732,11 +732,13 @@ struct buffer_head *ext4_getblk(handle_t *handle, struct inode *inode,
err = ext4_map_blocks(handle, inode, &map,
create ? EXT4_GET_BLOCKS_CREATE : 0);

/* ensure we send some value back into *errp */
*errp = 0;

if (err < 0)
*errp = err;
if (err <= 0)
return NULL;
*errp = 0;

bh = sb_getblk(inode->i_sb, map.m_pblk);
if (!bh) {
Expand Down
2 changes: 1 addition & 1 deletion trunk/fs/ext4/namei.c
Original file line number Diff line number Diff line change
Expand Up @@ -846,7 +846,7 @@ static int htree_dirblock_to_tree(struct file *dir_file,
{
struct buffer_head *bh;
struct ext4_dir_entry_2 *de, *top;
int err, count = 0;
int err = 0, count = 0;

dxtrace(printk(KERN_INFO "In htree dirblock_to_tree: block %lu\n",
(unsigned long)block));
Expand Down

0 comments on commit a324111

Please sign in to comment.