]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
btrfs: use the helper extent_buffer_uptodate() everywhere
authorFilipe Manana <fdmanana@suse.com>
Mon, 9 Feb 2026 10:44:16 +0000 (10:44 +0000)
committerDavid Sterba <dsterba@suse.com>
Tue, 7 Apr 2026 16:55:55 +0000 (18:55 +0200)
commit6ee5c986b0ecf3e4be8268e607b62d01676dc115
tree322237b86a8f63230356871fc7a3becf507ebff3
parente2a7fd22378f6500bcf979edc71e6837271eacfd
btrfs: use the helper extent_buffer_uptodate() everywhere

Instead of open coding testing the uptodate bit on the extent buffer's
flags, use the existing helper extent_buffer_uptodate() (which is even
shorter to type). Also change the helper's return value from int to bool,
since we always use it in a boolean context.

Reviewed-by: Boris Burkov <boris@bur.io>
Signed-off-by: Filipe Manana <fdmanana@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/extent_io.c
fs/btrfs/extent_io.h