|
@@ -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);
|