aboutsummaryrefslogtreecommitdiffstats
path: root/net/lapb/lapb_timer.c
diff options
context:
space:
mode:
authorAlex Elder <elder@inktank.com>2013-05-01 13:43:03 -0400
committerAlex Elder <elder@inktank.com>2013-05-02 12:58:17 -0400
commit30d1cff817808fca9801c743d2de4c61f3f38e15 (patch)
treeb6944042ba2919676bd13ebf84c412b04854f00e /net/lapb/lapb_timer.c
parent15228ede7d9437b0dcfe9331c9830b3646fdadf7 (diff)
rbd: use binary search for snapshot lookup
Use bsearch(3) to make snapshot lookup by id more efficient. (There could be thousands of snapshots, and conceivably many more.) Signed-off-by: Alex Elder <elder@inktank.com> Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions