]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit - fs/btrfs/extent_io.h
btrfs: rename bio_offset of extent_submit_bio_start_t to dio_file_offset
authorQu Wenruo <wqu@suse.com>
Wed, 2 Dec 2020 06:47:57 +0000 (14:47 +0800)
committerDavid Sterba <dsterba@suse.com>
Wed, 9 Dec 2020 18:16:09 +0000 (19:16 +0100)
commit1941b64b080b45a80796a9f3a2e5c89554e53bdf
treef5fe2f9b2e48067dc2f84ffcfc03d198defd2b16
parent8a6a87cd449b9840f8169e0ece0a8fa11232723d
btrfs: rename bio_offset of extent_submit_bio_start_t to dio_file_offset

The parameter bio_offset of extent_submit_bio_start_t is very confusing.
If it's really bio_offset (offset to bio), then it should be u32.  But
in fact, it's only utilized by dio read, and that member is used as file
offset, which must be u64.

Rename it to dio_file_offset since the only user uses it as file offset,
and add comment for who is using it.

Signed-off-by: Qu Wenruo <wqu@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/disk-io.c
fs/btrfs/disk-io.h
fs/btrfs/extent_io.h
fs/btrfs/inode.c