diff options
author | David Sterba <dsterba@suse.com> | 2025-04-17 11:17:01 +0200 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2025-05-15 14:30:47 +0200 |
commit | 3db15c6ca6feb2c5000a1cbb39c33866e0349abd (patch) | |
tree | ac3182235a80a475823adfcf90c5f6fa352f5c5a /fs/btrfs/backref.c | |
parent | 94cb8d7144340e760644b2f104586da4717d1f32 (diff) |
btrfs: add debug build only WARN
Add conditional WARN() wrapper that's enabled only in debug build. It
should be used for unexpected conditions that should be noisy. Use it
instead of ASSERT(0). As it will not lead to BUG() make sure that
continuing is still possible, e.g. the error is handled anyway.
Reviewed-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/backref.c')
0 files changed, 0 insertions, 0 deletions