]> git.ipfire.org Git - thirdparty/linux.git/commit
btrfs: move condition to WARN_ON in btrfs_set_delalloc_extent()
authorDavid Sterba <dsterba@suse.com>
Tue, 14 Apr 2026 15:30:29 +0000 (17:30 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 8 Jun 2026 13:53:28 +0000 (15:53 +0200)
commitcf384a2ab86bc63df4f1f58f3e79407be75848b4
tree2663984ab5d6c6d76c0bc9e30b8c11008bae6f73
parent115421e29b845d521e3dc24b67d83e8695f621f6
btrfs: move condition to WARN_ON in btrfs_set_delalloc_extent()

For a simple if + WARN_ON we should use the condition directly in the
macro.

Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/inode.c