]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
btrfs: remove atomic parameter from btrfs_buffer_uptodate()
authorQu Wenruo <wqu@suse.com>
Sun, 15 Mar 2026 21:38:24 +0000 (08:08 +1030)
committerDavid Sterba <dsterba@suse.com>
Tue, 7 Apr 2026 16:56:02 +0000 (18:56 +0200)
commit908ab5634751c4168e864d56a5270e251ce89ee3
tree89cdd704f8ad753242c0076c99129549117bce99
parent3c53ad7549ed80f4d27b6bee89425bb022ecfd32
btrfs: remove atomic parameter from btrfs_buffer_uptodate()

That parameter was introduced by commit b9fab919b748 ("Btrfs: avoid
sleeping in verify_parent_transid while atomic").
At that time we needed to lock the extent buffer range inside the io tree
to avoid content changes, thus it could sleep.

But that behavior is no longer there, as later commit 9e2aff90fc2a
("btrfs: stop using lock_extent in btrfs_buffer_uptodate") dropped the
io tree lock.

We can remove the @atomic parameter safely now.

Reviewed-by: Filipe Manana <fdmanana@suse.com>
Signed-off-by: Qu Wenruo <wqu@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/ctree.c
fs/btrfs/disk-io.c
fs/btrfs/disk-io.h
fs/btrfs/extent-tree.c
fs/btrfs/extent_io.c
fs/btrfs/tree-log.c