]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
btrfs: add unlikely to unexpected error case in extent_writepages()
authorFilipe Manana <fdmanana@suse.com>
Sun, 12 Oct 2025 09:43:02 +0000 (10:43 +0100)
committerDavid Sterba <dsterba@suse.com>
Mon, 24 Nov 2025 20:59:08 +0000 (21:59 +0100)
commit28fe58ce6a20aa674076645bcfc1be126a12ed4b
tree1418682280c5b2d877c94718ad191fee968d2a41
parent74ca34f79e53657760c3b09abe1bd593b849ca8c
btrfs: add unlikely to unexpected error case in extent_writepages()

We don't expect to hit errors and log the error message, so add the
unlikely annotation to make it clear and to hint the compiler that it may
reorganize code to be more efficient.

Reviewed-by: Qu Wenruo <wqu@suse.com>
Reviewed-by: Anand Jain <asj@kernel.org>
Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/extent_io.c