Skip to content

Commit

Permalink
erofs: get rid of a useless DBG_BUGON
Browse files Browse the repository at this point in the history
`err` could be -EINTR and it should not be the case.  Actually such
DBG_BUGON is useless.

Reviewed-by: Chao Yu <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Gao Xiang <[email protected]>
  • Loading branch information
hsiangkao committed Mar 9, 2023
1 parent 647dd2c commit 9ff4718
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions fs/erofs/zmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -757,9 +757,6 @@ int z_erofs_map_blocks_iter(struct inode *inode, struct erofs_map_blocks *map,
err = z_erofs_do_map_blocks(inode, map, flags);
out:
trace_z_erofs_map_blocks_iter_exit(inode, map, flags, err);

/* aggressively BUG_ON iff CONFIG_EROFS_FS_DEBUG is on */
DBG_BUGON(err < 0 && err != -ENOMEM);
return err;
}

Expand Down

0 comments on commit 9ff4718

Please sign in to comment.