aboutsummaryrefslogtreecommitdiffstats
path: root/net/ceph/messenger.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/ceph/messenger.c')
-rw-r--r--net/ceph/messenger.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/net/ceph/messenger.c b/net/ceph/messenger.c
index ce1669f75ca5..cec39cb623f0 100644
--- a/net/ceph/messenger.c
+++ b/net/ceph/messenger.c
@@ -2689,6 +2689,17 @@ void ceph_con_keepalive(struct ceph_connection *con)
2689} 2689}
2690EXPORT_SYMBOL(ceph_con_keepalive); 2690EXPORT_SYMBOL(ceph_con_keepalive);
2691 2691
2692void ceph_msg_data_set_pages(struct ceph_msg *msg, struct page **pages,
2693 unsigned int page_count, size_t alignment)
2694{
2695 /* BUG_ON(msg->pages); */
2696 /* BUG_ON(msg->page_count); */
2697
2698 msg->pages = pages;
2699 msg->page_count = page_count;
2700 msg->page_alignment = alignment & ~PAGE_MASK;
2701}
2702EXPORT_SYMBOL(ceph_msg_data_set_pages);
2692 2703
2693/* 2704/*
2694 * construct a new message with given type, size 2705 * construct a new message with given type, size