]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
librbd: deduplicate sparse read interpretation
authorJosh Durgin <josh.durgin@dreamhost.com>
Tue, 9 Aug 2011 23:14:23 +0000 (16:14 -0700)
committerSage Weil <sage@newdream.net>
Thu, 11 Aug 2011 17:06:14 +0000 (10:06 -0700)
commitbbd4a26a270a14524ee74b589bbc07c44ed43aca
tree8d4d5c383b278952d440fdcdea04e9cff2b74896
parent4bf6f6a677edfce93b47ed350e034f659bfd5a94
librbd: deduplicate sparse read interpretation

AioBlockCompletions and read_iterate each had their own copy of this
code, leading to bugs when only one was changed. Move this to a
separate function, handle_sparse_read.

Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
src/librbd.cc