Commit b49199c8 authored by Linus Torvalds's avatar Linus Torvalds
parents 4dfd459b 07ccb7bf
...@@ -541,7 +541,7 @@ static int gfs2_bmap_alloc(struct inode *inode, const sector_t lblock, ...@@ -541,7 +541,7 @@ static int gfs2_bmap_alloc(struct inode *inode, const sector_t lblock,
*ptr++ = cpu_to_be64(bn++); *ptr++ = cpu_to_be64(bn++);
break; break;
} }
} while (state != ALLOC_DATA); } while ((state != ALLOC_DATA) || !dblock);
ip->i_height = height; ip->i_height = height;
gfs2_add_inode_blocks(&ip->i_inode, alloced); gfs2_add_inode_blocks(&ip->i_inode, alloced);
......
...@@ -725,7 +725,7 @@ static int init_journal(struct gfs2_sbd *sdp, int undo) ...@@ -725,7 +725,7 @@ static int init_journal(struct gfs2_sbd *sdp, int undo)
goto fail; goto fail;
} }
error = -EINVAL; error = -EUSERS;
if (!gfs2_jindex_size(sdp)) { if (!gfs2_jindex_size(sdp)) {
fs_err(sdp, "no journals!\n"); fs_err(sdp, "no journals!\n");
goto fail_jindex; goto fail_jindex;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment