]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: make btrfs_ordered_extent naming consistent with btrfs_file_extent_item
authorOmar Sandoval <osandov@fb.com>
Tue, 3 Dec 2019 01:34:19 +0000 (17:34 -0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 20 Jan 2020 15:40:54 +0000 (16:40 +0100)
commitded0d5fb2e06b9a28e92e002bb0145074e142b49
tree0ffe5262a1a402d59c2dcdbb8c644183833d1f7a
parentacab507cc943c23c2e71dbf0625cf5bf0802b5a9
btrfs: make btrfs_ordered_extent naming consistent with btrfs_file_extent_item

ordered->start, ordered->len, and ordered->disk_len correspond to
fi->disk_bytenr, fi->num_bytes, and fi->disk_num_bytes, respectively.
It's confusing to translate between the two naming schemes. Since a
btrfs_ordered_extent is basically a pending btrfs_file_extent_item,
let's make the former use the naming from the latter.

Note that I didn't touch the names in tracepoints just in case there are
scripts depending on the current naming.

Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Omar Sandoval <osandov@fb.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/file-item.c
fs/btrfs/file.c
fs/btrfs/inode.c
fs/btrfs/ordered-data.c
fs/btrfs/ordered-data.h
fs/btrfs/relocation.c
include/trace/events/btrfs.h