]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: remove trivial wrapper btrfs_read_buffer()
authorFilipe Manana <fdmanana@suse.com>
Fri, 11 Mar 2022 11:35:34 +0000 (11:35 +0000)
committerDavid Sterba <dsterba@suse.com>
Mon, 16 May 2022 15:03:07 +0000 (17:03 +0200)
commit36013ff0666286402291bc0190accb801b29e195
tree04d5fe0a8df6081bdc2cd16febe61dc5a000a2b8
parent5a1aa92ffa1a3d0a9667100114bf50b22747d57f
btrfs: remove trivial wrapper btrfs_read_buffer()

The function btrfs_read_buffer() is useless, it just calls
btree_read_extent_buffer_pages() with exactly the same arguments.

So remove it and rename btree_read_extent_buffer_pages() to
btrfs_read_extent_buffer(), which is a shorter name, has the "btrfs_"
prefix (since it's used outside disk-io.c) and the name is clear enough
about what it does.

Reviewed-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/ctree.c
fs/btrfs/disk-io.c
fs/btrfs/disk-io.h
fs/btrfs/qgroup.c
fs/btrfs/tree-log.c