]> git.baikalelectronics.ru Git - kernel.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)
commita19d98e35e9474dc77c5b183402c1ead84592bd6
tree6d73adc4e6444ea712fe3a3f8ea676085c30a47f
parente7872502a08e6667abd531a40446e2fa3dca9b63
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