From: Josh Durgin Date: Mon, 7 Apr 2014 23:49:21 +0000 (-0700) Subject: rbd: use helpers to handle discard for layered images correctly X-Git-Tag: fixes-against-v3.18-rc2~71^2~19 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d3246fb0da5d70838469c01d5b6b11163b49cd86;p=pandora-kernel.git rbd: use helpers to handle discard for layered images correctly Only allocate two osd ops for discard requests, since the preallocation hint is only added for regular writes. Use rbd_img_obj_request_fill() to recreate the original write or discard osd operations, isolating that logic to one place, and change the assert in rbd_osd_req_create_copyup() to accept discard requests as well. Signed-off-by: Josh Durgin --- Reading git-diff-tree failed