diff options
| author | Filipe Manana <fdmanana@suse.com> | 2025-11-13 13:04:13 +0000 |
|---|---|---|
| committer | David Sterba <dsterba@suse.com> | 2025-11-24 22:42:25 +0100 |
| commit | fad159f69edabac046c725cdecf22275199b2dd0 (patch) | |
| tree | 139328cfcdcf3e85cfb23939d5e9cb7c0a5d969b /fs/btrfs/dev-replace.c | |
| parent | 86d3dc812f1e9aea58fabe8fcd42023f54abcad0 (diff) | |
btrfs: add unlikely to critical error in btrfs_extend_item()
It's not expected to get a data size less than the leaf's free space,
which would lead to a leaf dump and BUG(), so tag the if statement's
expression as unlikely, hinting the compiler to potentially generate
better code.
Reviewed-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/dev-replace.c')
0 files changed, 0 insertions, 0 deletions