]> 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)
commit3d66a6e386d3621a7287ff6fc63a42db87b9aa96
tree33cce1856538bd228f94be8e8eebcf4afeb3bd4b
parent43af95b4f354881356c4d62c23d78614e95738b8
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