]> git.dujemihanovic.xyz Git - linux.git/commit
btrfs: mark transaction id check as unlikely at btrfs_mark_buffer_dirty()
authorFilipe Manana <fdmanana@suse.com>
Tue, 12 Sep 2023 12:04:31 +0000 (13:04 +0100)
committerDavid Sterba <dsterba@suse.com>
Thu, 12 Oct 2023 14:44:07 +0000 (16:44 +0200)
commit4ebe8d478879c84a9e0c4f655cd8652fdbe239ac
treee26961a1ad3c7a8b86415c844c799704daea3e0f
parent20cbe4603518ed328b173246d936d6ac62ec2fcc
btrfs: mark transaction id check as unlikely at btrfs_mark_buffer_dirty()

At btrfs_mark_buffer_dirty(), having a transaction id mismatch is never
expected to happen and it usually means there's a bug or some memory
corruption due to a bitflip for example. So mark the condition as unlikely
to optimize code generation as well as to make it obvious for human
readers that it is a very unexpected condition.

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/disk-io.c