]> www.infradead.org Git - users/jedix/linux-maple.git/commit
btrfs: use variables to store extent buffer and slot at overwrite_item()
authorFilipe Manana <fdmanana@suse.com>
Thu, 13 Mar 2025 14:25:39 +0000 (14:25 +0000)
committerDavid Sterba <dsterba@suse.com>
Tue, 18 Mar 2025 19:35:54 +0000 (20:35 +0100)
commit5fbfb3f01d298077ce749a0381369202f456a9f7
tree1ca64828d9e7a4dc71b2f81e08b65ac4be7e168c
parente48264e601b39df3c8c75f3e7ae896d15cbbebcc
btrfs: use variables to store extent buffer and slot at overwrite_item()

Instead of referring to path->nodes[0] and path->slots[0] multiple times,
which is verbose and confusing since we have an 'eb' and 'slot' variables
as well, introduce local variables 'dst_eb' to point to path->nodes[0] and
'dst_slot' to have path->slots[0], reducing verbosity and making it more
obvious about which extent buffer and slot we are referring to.

Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/tree-log.c