summaryrefslogtreecommitdiff
path: root/include/linux/ceph
diff options
context:
space:
mode:
authorChengguang Xu <cgxu519@gmx.com>2018-04-12 12:04:55 +0800
committerIlya Dryomov <idryomov@gmail.com>2018-06-04 20:45:54 +0200
commitfe943d50425b6646606f8ef1ef8b8d4975fdbee2 (patch)
tree4e2ecd6eb4ba41fa02a7761d99348e13c9ad5212 /include/linux/ceph
parent29dcea88779c856c7dc92040a0c01233263101d4 (diff)
downloadlwn-fe943d50425b6646606f8ef1ef8b8d4975fdbee2.tar.gz
lwn-fe943d50425b6646606f8ef1ef8b8d4975fdbee2.zip
libceph, rbd: add error handling for osd_req_op_cls_init()
Add proper error handling for osd_req_op_cls_init() to replace BUG_ON statement when failing from memory allocation. Signed-off-by: Chengguang Xu <cgxu519@gmx.com> Reviewed-by: Ilya Dryomov <idryomov@gmail.com> Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Diffstat (limited to 'include/linux/ceph')
-rw-r--r--include/linux/ceph/osd_client.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/ceph/osd_client.h b/include/linux/ceph/osd_client.h
index 96bb32285989..b73dd7ebe585 100644
--- a/include/linux/ceph/osd_client.h
+++ b/include/linux/ceph/osd_client.h
@@ -440,7 +440,7 @@ extern void osd_req_op_cls_response_data_pages(struct ceph_osd_request *,
struct page **pages, u64 length,
u32 alignment, bool pages_from_pool,
bool own_pages);
-extern void osd_req_op_cls_init(struct ceph_osd_request *osd_req,
+extern int osd_req_op_cls_init(struct ceph_osd_request *osd_req,
unsigned int which, u16 opcode,
const char *class, const char *method);
extern int osd_req_op_xattr_init(struct ceph_osd_request *osd_req, unsigned int which,