OSDN Git Service

btrfs: Use locked_end rather than open coding it
authorNikolay Borisov <nborisov@suse.com>
Wed, 1 Nov 2017 09:36:05 +0000 (11:36 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 22 Jan 2018 15:08:11 +0000 (16:08 +0100)
commit96b09dde92515956c992c1b330f00399487f47b3
treea3f3128f2a0d13ca7b6a46f43b2c62210320ae8f
parent6b7d6e933433a43062ce9355a4126b59bd2519e3
btrfs: Use locked_end rather than open coding it

Right before we go into this loop locked_end is set to alloc_end - 1 and
is being used in nearby functions, no need to have exceptions. This just
makes the code consistent, 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/file.c