]> www.infradead.org Git - users/dwmw2/linux.git/commit
btrfs: use btrfs_get_fs_generation() at try_release_extent_mapping()
authorFilipe Manana <fdmanana@suse.com>
Tue, 16 Apr 2024 14:13:03 +0000 (15:13 +0100)
committerDavid Sterba <dsterba@suse.com>
Tue, 7 May 2024 19:31:07 +0000 (21:31 +0200)
commit85d288309ab5463140a2d00b3827262fb14e7db4
tree5a9b6f670cf99e145533965fdf2e56945f3b9a99
parent078b981aaa565040348cd3ca75b0ec9e138464a9
btrfs: use btrfs_get_fs_generation() at try_release_extent_mapping()

Nowadays we have the btrfs_get_fs_generation() to get the current
generation of the filesystem, so there's no need anymore to lock the
transaction spinlock to read it.

Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
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