diff options
author | Nikolay Borisov <[email protected]> | 2019-08-05 17:47:06 +0300 |
---|---|---|
committer | David Sterba <[email protected]> | 2019-09-09 14:59:13 +0200 |
commit | 922f0518249d20d00ba11470331a2c89b6749c91 (patch) | |
tree | 07ba817584a83c1838305b7d71b61a97260e8d36 /lib/test_overflow.c | |
parent | bb55f6260b4756ba0ce46fc373f6f2e1893f752d (diff) |
btrfs: streamline code in run_delalloc_nocow in case of inline extents
The extent range check right after the "out_check" label is redundant,
because the only way it can trigger is if we have an inline extent. In
this case it makes more sense to actually move it in the branch
explictly dealing with inlines extents.
What's more, the nested 'if (nocow)' can never be true because for
inline extents we always do COW and there is no chance 'nocow' can be
true, just remove that check.
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