aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorNikolay Borisov <[email protected]>2017-11-01 11:32:18 +0200
committerDavid Sterba <[email protected]>2018-01-22 16:08:11 +0100
commit6b7d6e933433a43062ce9355a4126b59bd2519e3 (patch)
tree3ab8cffd9fc427cf6706f4f73573e7cd623ff75b /tools/perf/scripts/python/bin
parent47dba17171a76ea2a2a7153f9aa9f28579bfd350 (diff)
btrfs: Move loop termination condition in while()
Fallocating a file in btrfs goes through several stages. The one before actually inserting the fallocated extents is to create a qgroup reservation, covering the desired range. To this end there is a loop in btrfs_fallocate which checks to see if there are holes in the fallocated range or !PREALLOC extents past EOF and if so create qgroup reservations for them. Unfortunately, the main condition of the loop is burried right at the end of its body rather than in the actual while statement which makes it non-obvious. Fix this by moving the condition in the while statement where it belongs. No functional changes. Signed-off-by: Nikolay Borisov <[email protected]> Reviewed-by: David Sterba <[email protected]> Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions