Skip to content
Commit 84420b1e authored by Huaisheng Ye's avatar Huaisheng Ye Committed by Mike Snitzer
Browse files

dm writecache: add unlikely for returned value of rb_next/prev



In functions writecache_discard() and writecache_find_entry() there is a
high probablity that the pointer of structure rb_node won't equal NULL.
Add unlikely for the pointer node NULL.

Signed-off-by: default avatarHuaisheng Ye <yehs1@lenovo.com>
Signed-off-by: default avatarMike Snitzer <snitzer@redhat.com>
parent 09f2d656
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