]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
btrfs: cleanup extent locking sequence
authorGoldwyn Rodrigues <rgoldwyn@suse.com>
Mon, 16 Oct 2017 10:43:21 +0000 (05:43 -0500)
committerDavid Sterba <dsterba@suse.com>
Mon, 30 Oct 2017 11:28:01 +0000 (12:28 +0100)
commit79f015f216539dfdf0d3ef0b3bbb9dc7754364cd
tree4aae4ca874dbb7a4f485ff80d2539b169e8e9a60
parent2dbe0c77186c691386b74391039899808a4d3f59
btrfs: cleanup extent locking sequence

Code cleanup for better understanding:
Variable needs_unlock to be called extent_locked to show state as
opposed to action. Changed the type to int, to reduce code in the
critical path.

Signed-off-by: Goldwyn Rodrigues <rgoldwyn@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/file.c