diff options
| author | David Sterba <[email protected]> | 2025-04-17 09:17:01 +0000 |
|---|---|---|
| committer | David Sterba <[email protected]> | 2025-05-15 12:30:47 +0000 |
| commit | 3db15c6ca6feb2c5000a1cbb39c33866e0349abd (patch) | |
| tree | ac3182235a80a475823adfcf90c5f6fa352f5c5a /fs/btrfs/tree-checker.c | |
| parent | btrfs: use verbose ASSERT() in volumes.c (diff) | |
| download | kernel-3db15c6ca6feb2c5000a1cbb39c33866e0349abd.tar.gz kernel-3db15c6ca6feb2c5000a1cbb39c33866e0349abd.zip | |
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 <[email protected]>
Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'fs/btrfs/tree-checker.c')
0 files changed, 0 insertions, 0 deletions
