btrfs: Make btrfs_async_run_delayed_root use a loop rather than multiple labels
authorNikolay Borisov <nborisov@suse.com>
Mon, 23 Oct 2017 10:51:48 +0000 (13:51 +0300)
committerDavid Sterba <dsterba@suse.com>
Mon, 22 Jan 2018 15:08:11 +0000 (16:08 +0100)
commit617c54a88eaba611bfaa917918c773a91c53692a
treed4c2d021aadd54cd7f0c2550d10fbc7051ecfbd4
parentd3fac6ba7dccc54f52087bb9d7b9be27aa6fa622
btrfs: Make btrfs_async_run_delayed_root use a loop rather than multiple labels

Currently btrfs_async_run_delayed_root's implementation uses 3 goto
labels to mimic the functionality of a simple do {} while loop. Refactor
the function to use a do {} while construct, making intention clear and
code easier to follow. No functional changes.

Signed-off-by: Nikolay Borisov <nborisov@suse.com>
Reviewed-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/delayed-inode.c