]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite754aa38c6713e69b78ab8685c94ee1134166314
tree33cce1856538bd228f94be8e8eebcf4afeb3bd4b
parentf5f2e57a3a11e08238f75f19ef9975e241b0dedb
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