]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
btrfs: tie extent buffer and it's token together
authorDavid Sterba <dsterba@suse.com>
Fri, 9 Aug 2019 15:48:21 +0000 (17:48 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 9 Sep 2019 12:59:16 +0000 (14:59 +0200)
commitc82f823c9b006c31059341af41da9f8b2e3e64d9
treeb6b9204325f78f83df3a1a871ee4a7abc6e29b07
parent48bc39501a549ec978c8aad28eb89ca3a2a7ca03
btrfs: tie extent buffer and it's token together

Further simplifaction of the get/set helpers is possible when the token
is uniquely tied to an extent buffer. A condition and an assignment can
be avoided.

The initializations are moved closer to the first use when the extent
buffer is valid. There's one exception in __push_leaf_left where the
token is reused.

Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/ctree.c
fs/btrfs/ctree.h
fs/btrfs/inode.c
fs/btrfs/struct-funcs.c
fs/btrfs/tree-log.c