diff options
author | Nikolay Borisov <nborisov@suse.com> | 2019-09-27 13:23:18 +0300 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2019-11-18 12:47:00 +0100 |
commit | bc80230e0e7bc779cd553c2326ea5b3a5bac303b (patch) | |
tree | de85f0acbee7fffa6e28d8d156b57f61889d46dd /include/trace | |
parent | btrfs: Simplify btrfs_file_llseek (diff) | |
download | linux-dev-bc80230e0e7bc779cd553c2326ea5b3a5bac303b.tar.xz linux-dev-bc80230e0e7bc779cd553c2326ea5b3a5bac303b.zip |
btrfs: Return offset from find_desired_extent
Instead of using an input pointer parameter as the return value and have
an int as the return type of find_desired_extent, rework the function to
directly return the found offset. Doing that the 'ret' variable in
btrfs_llseek_file can be removed. Additional (subjective) benefit is
that btrfs' llseek function now resemebles those of the other major
filesystems.
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Nikolay Borisov <nborisov@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'include/trace')
0 files changed, 0 insertions, 0 deletions