diff options
author | Gao Xiang <hsiangkao@linux.alibaba.com> | 2023-03-09 13:31:48 +0800 |
---|---|---|
committer | Gao Xiang <hsiangkao@linux.alibaba.com> | 2023-03-09 23:36:01 +0800 |
commit | 9ff471800b74f5f952c7e75a0355f1d30ee2b046 (patch) | |
tree | 152b8805058c6d438a8b0cd06cb1a8a72b08f784 /fs | |
parent | 647dd2c3f0e16b71a1a77897d038164d48eea154 (diff) | |
download | lwn-9ff471800b74f5f952c7e75a0355f1d30ee2b046.tar.gz lwn-9ff471800b74f5f952c7e75a0355f1d30ee2b046.zip |
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>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/erofs/zmap.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/fs/erofs/zmap.c b/fs/erofs/zmap.c index 8bf6d30518b6..655da4d739cb 100644 --- a/fs/erofs/zmap.c +++ b/fs/erofs/zmap.c @@ -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; } |