]> asedeno.scripts.mit.edu Git - linux.git/commit
btrfs: Fix grossly misleading argument names in extent io search
authorNikolay Borisov <nborisov@suse.com>
Wed, 30 Jan 2019 14:51:00 +0000 (16:51 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 25 Feb 2019 13:13:36 +0000 (14:13 +0100)
commit352646c7bfa9fddb80c4ae87dce4a9ebd7dd0bb4
tree6d73adc4e6444ea712fe3a3f8ea676085c30a47f
parentba8f5206a4fc579dcbc5e7dd571965236a9842d3
btrfs: Fix grossly misleading argument names in extent io search

The variables and function parameters of __etree_search which pertain to
prev/next are grossly misnamed. Namely, prev_ret holds the next state
and not the previous. Similarly, next_ret actually holds the previous
extent state relating to the offset we are interested in. Fix this by
renaming the variables as well as switching the arguments order. No
functional changes.

Signed-off-by: Nikolay Borisov <nborisov@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/extent_io.c