btrfs: Use while loop instead of labels in __endio_write_update_ordered
authorNikolay Borisov <nborisov@suse.com>
Wed, 11 Apr 2018 08:21:17 +0000 (11:21 +0300)
committerDavid Sterba <dsterba@suse.com>
Mon, 28 May 2018 16:07:15 +0000 (18:07 +0200)
commitb25f0d0012d11f2fb3df855fb62b86e5f63fdd68
tree1876527271ee6a157e65b55e3da46f26826c5ff5
parent89595e80de2e8e35bf3c7035e609f9b99dcfff5d
btrfs: Use while loop instead of labels in __endio_write_update_ordered

Currently __endio_write_update_ordered uses labels to implement
what is essentially a simple while loop. This makes the code more
cumbersome to follow than it actually has to be. No functional
changes. No xfstest regressions were found during testing.

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/inode.c