btrfs: don't use set/get token for single assignment in overwrite_item
authorDavid Sterba <dsterba@suse.com>
Wed, 29 Apr 2020 13:29:53 +0000 (15:29 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 25 May 2020 09:25:32 +0000 (11:25 +0200)
commit60d48e2e4575dd848a43ceeda6cbc38a87427330
tree585735a45f95d176ee1b537e4ba3f9900a2f4ba8
parentcc4c13d55cba8a0b81bc18243eabc57be1aa44d2
btrfs: don't use set/get token for single assignment in overwrite_item

The set/get token is supposed to cache the last page that was accessed
so it speeds up subsequential access to the eb. It does not make sense
to use that for just one change, which is the case of inode size in
overwrite_item.

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