commit | c91666b1f61915f2b2f2358f922c9d7d44480d0a | [log] [tgz] |
---|---|---|
author | Josef Bacik <josef@toxicpanda.com> | Thu Oct 21 14:58:32 2021 -0400 |
committer | David Sterba <dsterba@suse.com> | Mon Jan 03 15:09:42 2022 +0100 |
tree | f99cf42dc6cc5585497d8480a75ca8545b3e0fb8 | |
parent | 227f3cd0d5a157c30480e2cd95f4271be1ace7bc [diff] |
btrfs: add btrfs_set_item_*_nr() helpers We have the pattern of item = btrfs_item_nr(slot); btrfs_set_item_*(leaf, item); in a bunch of places in our code. Fix this by adding btrfs_set_item_*_nr() helpers which will do the appropriate work, and replace those calls with btrfs_set_item_*_nr(leaf, slot); Signed-off-by: Josef Bacik <josef@toxicpanda.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>