aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/dev-replace.c
diff options
context:
space:
mode:
authorJosef Bacik <[email protected]>2021-10-21 18:58:32 +0000
committerDavid Sterba <[email protected]>2022-01-03 14:09:42 +0000
commitc91666b1f61915f2b2f2358f922c9d7d44480d0a (patch)
treef99cf42dc6cc5585497d8480a75ca8545b3e0fb8 /fs/btrfs/dev-replace.c
parentbtrfs: use btrfs_item_size_nr/btrfs_item_offset_nr everywhere (diff)
downloadkernel-c91666b1f61915f2b2f2358f922c9d7d44480d0a.tar.gz
kernel-c91666b1f61915f2b2f2358f922c9d7d44480d0a.zip
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 <[email protected]> Reviewed-by: David Sterba <[email protected]> Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'fs/btrfs/dev-replace.c')
0 files changed, 0 insertions, 0 deletions