summaryrefslogtreecommitdiffstats
path: root/fs/ceph/ioctl.c
diff options
context:
space:
mode:
authorJosh Durgin2014-04-08 01:49:21 +0200
committerIlya Dryomov2014-10-14 19:03:36 +0200
commitd3246fb0da5d70838469c01d5b6b11163b49cd86 (patch)
tree1770ff1c699df0469a02d5cabd7060afa810b9e2 /fs/ceph/ioctl.c
parentrbd: extract a method for adding object operations (diff)
downloadkernel-qcow2-linux-d3246fb0da5d70838469c01d5b6b11163b49cd86.tar.gz
kernel-qcow2-linux-d3246fb0da5d70838469c01d5b6b11163b49cd86.tar.xz
kernel-qcow2-linux-d3246fb0da5d70838469c01d5b6b11163b49cd86.zip
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 <josh.durgin@inktank.com>
Diffstat (limited to 'fs/ceph/ioctl.c')
0 files changed, 0 insertions, 0 deletions