]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit - fs/btrfs/ctree.c
btrfs: don't use set/get token in leaf_space_used
authorDavid Sterba <dsterba@suse.com>
Wed, 29 Apr 2020 20:56:01 +0000 (22:56 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 25 May 2020 09:25:32 +0000 (11:25 +0200)
commita31356b9e263b723d4991383efc87b71c6e87991
tree33cce1856538bd228f94be8e8eebcf4afeb3bd4b
parent60d48e2e4575dd848a43ceeda6cbc38a87427330
btrfs: don't use set/get token in leaf_space_used

The token is supposed to cache the last page used by the set/get
helpers. In leaf_space_used the first and last items are accessed, it's
not likely they'd be on the same page so there's some overhead caused
updating the token address but not using it.

Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/ctree.c