]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: get rid of trivial __btrfs_lookup_bio_sums() wrappers
authorOmar Sandoval <osandov@fb.com>
Tue, 3 Dec 2019 01:34:17 +0000 (17:34 -0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 20 Jan 2020 15:40:53 +0000 (16:40 +0100)
commit4b0979e321e8616696d0946931d5c8e08b1ee709
tree509491100db697f6a2b1ce737ed477f581fd39c2
parenta33cc9189772b79df903913b1755f28719b2e7e5
btrfs: get rid of trivial __btrfs_lookup_bio_sums() wrappers

Currently, we have two wrappers for __btrfs_lookup_bio_sums():
btrfs_lookup_bio_sums_dio(), which is used for direct I/O, and
btrfs_lookup_bio_sums(), which is used everywhere else. The only
difference is that the _dio variant looks up csums starting at the given
offset instead of using the page index, which isn't actually direct
I/O-specific. Let's clean up the signature and return value of
__btrfs_lookup_bio_sums(), rename it to btrfs_lookup_bio_sums(), and get
rid of the trivial helpers.

Reviewed-by: Nikolay Borisov <nborisov@suse.com>
Signed-off-by: Omar Sandoval <osandov@fb.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/compression.c
fs/btrfs/ctree.h
fs/btrfs/file-item.c
fs/btrfs/inode.c