Skip to content
Commit 17ce6ef8 authored by Liu Bo's avatar Liu Bo Committed by Chris Mason
Browse files

Btrfs: add a check to decide if we should defrag the range



If our file's layout is as follows:
| hole | data1 | hole | data2 |

we do not need to defrag this file, because this file has holes and
cannot be merged into one extent.

Signed-off-by: default avatarLiu Bo <liubo2009@cn.fujitsu.com>
Signed-off-by: default avatarChris Mason <chris.mason@oracle.com>
parent 4cb13e5d
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment