summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorNikolay Borisov <nborisov@suse.com>2019-08-05 17:47:05 +0300
committerDavid Sterba <dsterba@suse.com>2019-09-09 14:59:13 +0200
commitbb55f6260b4756ba0ce46fc373f6f2e1893f752d (patch)
tree775395039fe6a54979759f237e2f2e11711d371e /tools/perf/scripts/python
parenta6bd9cd1559b8e78d1d03fe64445ae6dc419ea16 (diff)
btrfs: simplify extent type checks in run_delalloc_nocow
There is no point in checking the type of the extent again just to set the 'type' variable, when this check has already been performed before. Instead, extend the original if branch with an 'else' clause. This allows to remove one local variable and make it obvious how the code flow differs for prealloc/regular extents. Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de> Signed-off-by: Nikolay Borisov <nborisov@suse.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions