aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ext4/extents.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/ext4/extents.c')
-rw-r--r--fs/ext4/extents.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/fs/ext4/extents.c b/fs/ext4/extents.c
index 3a7928f825e..8fd6c567964 100644
--- a/fs/ext4/extents.c
+++ b/fs/ext4/extents.c
@@ -3190,7 +3190,13 @@ int ext4_ext_get_blocks(handle_t *handle, struct inode *inode,
3190 * this situation is possible, though, _during_ tree modification; 3190 * this situation is possible, though, _during_ tree modification;
3191 * this is why assert can't be put in ext4_ext_find_extent() 3191 * this is why assert can't be put in ext4_ext_find_extent()
3192 */ 3192 */
3193 BUG_ON(path[depth].p_ext == NULL && depth != 0); 3193 if (path[depth].p_ext == NULL && depth != 0) {
3194 ext4_error(inode->i_sb, __func__, "bad extent address "
3195 "inode: %lu, iblock: %d, depth: %d",
3196 inode->i_ino, iblock, depth);
3197 err = -EIO;
3198 goto out2;
3199 }
3194 eh = path[depth].p_hdr; 3200 eh = path[depth].p_hdr;
3195 3201
3196 ex = path[depth].p_ext; 3202 ex = path[depth].p_ext;