summaryrefslogtreecommitdiff
path: root/staging/mops_update.c
diff options
context:
space:
mode:
Diffstat (limited to 'staging/mops_update.c')
0 files changed, 0 insertions, 0 deletions
id'>c6b2e052c0ba5b95d1659f0e95651445951426e1 parent3f9749f6e9edcf8ec569fb542efc3be35e06e84a (diff)
Btrfs: don't wait for unrelated IO to finish before relocation
Before the relocation process of a block group starts, it sets the block group to readonly mode, then flushes all delalloc writes and then finally it waits for all ordered extents to complete. This last step includes waiting for ordered extents destinated at extents allocated in other block groups, making us waste unecessary time. So improve this by waiting only for ordered extents that fall into the block group's range. Signed-off-by: Filipe Manana <fdmanana@suse.com> Reviewed-by: Josef Bacik <jbacik@fb.com> Reviewed-by: Liu Bo <bo.li.liu@oracle.com>
Diffstat