diff options
author | Christoph Hellwig <hch@lst.de> | 2023-05-24 17:03:07 +0200 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2023-06-19 13:59:32 +0200 |
commit | 5cfe76f846d5034058c0c4813259d5d831757c36 (patch) | |
tree | 5b348da87c4d4831d9b6b57712c963b4bd89c08a /fs/btrfs/zoned.c | |
parent | 6e4b2479ab38b3f949a85964da212295d32102f0 (diff) | |
download | linux-stable-5cfe76f846d5034058c0c4813259d5d831757c36.tar.gz linux-stable-5cfe76f846d5034058c0c4813259d5d831757c36.tar.bz2 linux-stable-5cfe76f846d5034058c0c4813259d5d831757c36.zip |
btrfs: rename the bytenr field in struct btrfs_ordered_sum to logical
btrfs_ordered_sum::bytendr stores a logical address. Make that clear by
renaming it to ->logical.
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/zoned.c')
-rw-r--r-- | fs/btrfs/zoned.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/btrfs/zoned.c b/fs/btrfs/zoned.c index 98d6b8cc3874..eca49e6e0e5f 100644 --- a/fs/btrfs/zoned.c +++ b/fs/btrfs/zoned.c @@ -1711,9 +1711,9 @@ void btrfs_rewrite_logical_zoned(struct btrfs_ordered_extent *ordered) list_for_each_entry(sum, &ordered->list, list) { if (logical < orig_logical) - sum->bytenr -= orig_logical - logical; + sum->logical -= orig_logical - logical; else - sum->bytenr += logical - orig_logical; + sum->logical += logical - orig_logical; } } |