Skip to content

Commit 9ff4718

Browse files
committed
erofs: get rid of a useless DBG_BUGON
`err` could be -EINTR and it should not be the case. Actually such DBG_BUGON is useless. Reviewed-by: Chao Yu <chao@kernel.org> Link: https://lore.kernel.org/r/20230309053148.9223-2-hsiangkao@linux.alibaba.com Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
1 parent 647dd2c commit 9ff4718

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

fs/erofs/zmap.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -757,9 +757,6 @@ int z_erofs_map_blocks_iter(struct inode *inode, struct erofs_map_blocks *map,
757757
err = z_erofs_do_map_blocks(inode, map, flags);
758758
out:
759759
trace_z_erofs_map_blocks_iter_exit(inode, map, flags, err);
760-
761-
/* aggressively BUG_ON iff CONFIG_EROFS_FS_DEBUG is on */
762-
DBG_BUGON(err < 0 && err != -ENOMEM);
763760
return err;
764761
}
765762

0 commit comments

Comments
 (0)