]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rbd: changed the return type of ImageRequestWQ::discard() 14032/head
authorJos Collin <jcollin@redhat.com>
Sat, 18 Mar 2017 04:35:54 +0000 (10:05 +0530)
committerJos Collin <jcollin@redhat.com>
Sat, 18 Mar 2017 10:07:24 +0000 (15:37 +0530)
commit4163d3b811ec4b151dde745b8281cdac07a11d2c
tree544ff1ae06e4d97596d86b991f5ae265aa2f7cfe
parent8fbc61a725ab4fd911a848b359c9dca3ec5fb1cb
rbd: changed the return type of ImageRequestWQ::discard()

Changed the return type of ImageRequestWQ::discard() to ssize_t, as it returns a valid size or a negative value to indicate an error.

Fixes: http://tracker.ceph.com/issues/18511
Signed-off-by: Jos Collin <jcollin@redhat.com>
src/librbd/io/ImageRequestWQ.cc
src/librbd/io/ImageRequestWQ.h