mirror of
https://github.com/schoebel/mars
synced 2025-03-02 03:20:44 +00:00
copy: speed up the speedup
This commit is contained in:
parent
7e2de9c4ac
commit
0a9fcf5f8a
@ -223,7 +223,11 @@ void copy_endio(struct generic_callback *cb)
|
||||
brick = mref_a->brick;
|
||||
CHECK_PTR(brick, err);
|
||||
|
||||
brick->check_hint = mref->ref_pos;
|
||||
/* This is racy, but affects only a _hint_ for
|
||||
* performance optimization.
|
||||
*/
|
||||
if (!brick->check_hint || mref->ref_pos < brick->check_hint)
|
||||
brick->check_hint = mref->ref_pos;
|
||||
|
||||
queue = mref_a->queue;
|
||||
index = GET_INDEX(mref->ref_pos);
|
||||
|
Loading…
Reference in New Issue
Block a user