OSDN Git Service

btrfs: eliminate insert label in add_falloc_range
authorNikolay Borisov <nborisov@suse.com>
Tue, 1 Jun 2021 06:08:15 +0000 (09:08 +0300)
committerDavid Sterba <dsterba@suse.com>
Mon, 21 Jun 2021 13:19:10 +0000 (15:19 +0200)
commit77d255348bb2ce9a174cca020aa38f2ce82cb2bc
treeb7439564dfce250e0c19915c189791f1e77709ba
parent3d078efae6f3854eadf9def9cbb4f30389c0c504
btrfs: eliminate insert label in add_falloc_range

By way of inverting the list_empty conditional the insert label can be
eliminated, making the function's flow entirely linear.

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