diff options
author | Nikolay Borisov <[email protected]> | 2019-08-05 17:47:05 +0300 |
---|---|---|
committer | David Sterba <[email protected]> | 2019-09-09 14:59:13 +0200 |
commit | bb55f6260b4756ba0ce46fc373f6f2e1893f752d (patch) | |
tree | 775395039fe6a54979759f237e2f2e11711d371e /lib/test_overflow.c | |
parent | a6bd9cd1559b8e78d1d03fe64445ae6dc419ea16 (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 <[email protected]>
Signed-off-by: Nikolay Borisov <[email protected]>
Reviewed-by: David Sterba <[email protected]>
Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'lib/test_overflow.c')
0 files changed, 0 insertions, 0 deletions