diff options
author | 2024-05-09 07:14:29 +0900 | |
---|---|---|
committer | 2024-05-11 15:51:44 -0700 | |
commit | 0a73eac1ed10097d1799c10dff2172605fd40c75 (patch) | |
tree | e64076d31795400083f8aee785cde6355227047c /scripts/generate_rust_analyzer.py | |
parent | scripts: checkpatch: check unused parameters for function-like macro (diff) | |
download | wireguard-linux-0a73eac1ed10097d1799c10dff2172605fd40c75.tar.xz wireguard-linux-0a73eac1ed10097d1799c10dff2172605fd40c75.zip |
nilfs2: convert BUG_ON() in nilfs_finish_roll_forward() to WARN_ON()
The BUG_ON check performed on the return value of __getblk() in
nilfs_finish_roll_forward() assumes that a buffer that has been
successfully read once is retrieved with the same parameters and does not
fail (__getblk() does not return an error due to memory allocation
failure). Also, nilfs_finish_roll_forward() is called at most once during
mount.
Taking these into consideration, rewrite the check to use WARN_ON() to
avoid using BUG_ON().
Link: https://lkml.kernel.org/r/20240508221429.7559-1-konishi.ryusuke@gmail.com
Signed-off-by: Ryusuke Konishi <konishi.ryusuke@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions