New allocated blocks have been checked after allocating, so there is no need to recheck them. Signed-off-by: Yongqiang Yang <xiaoqiangnk@xxxxxxxxx> --- fs/ext4/extents.c | 5 ----- 1 files changed, 0 insertions(+), 5 deletions(-) diff --git a/fs/ext4/extents.c b/fs/ext4/extents.c index 720070d..d483635 100644 --- a/fs/ext4/extents.c +++ b/fs/ext4/extents.c @@ -857,11 +857,6 @@ static int ext4_ext_split(handle_t *handle, struct inode *inode, /* initialize new leaf */ newblock = ablocks[--a]; - if (unlikely(newblock == 0)) { - EXT4_ERROR_INODE(inode, "newblock == 0!"); - err = -EIO; - goto cleanup; - } bh = sb_getblk(inode->i_sb, newblock); if (!bh) { err = -EIO; -- 1.7.5.1 -- To unsubscribe from this list: send the line "unsubscribe linux-ext4" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html