From: Alex Elder <elder@inktank.com>
To: ceph-devel@vger.kernel.org
Subject: Re: [PATCH 1/5] libceph: isolate message page field manipulation
Date: Tue, 05 Mar 2013 10:03:24 -0600 [thread overview]
Message-ID: <5136174C.5000306@inktank.com> (raw)
In-Reply-To: <5135F8A9.2080506@inktank.com>
On 03/05/2013 07:52 AM, Alex Elder wrote:
> +void ceph_msg_data_set_pages(struct ceph_msg *msg, struct page **pages,
> + unsigned int page_count, size_t alignment)
> +{
> + /* BUG_ON(!pages); */
> + /* BUG_ON(!page_count); */
> + /* BUG_ON(msg->pages); */
> + /* BUG_ON(msg->page_count); */
> +
> + msg->pages = pages;
> + msg->page_count = page_count;
> + msg->page_alignment = alignment & PAGE_SIZE;
Whoops, this is supposed to be:
msg->page_alignment = alignment & ~PAGE_MASK;
I think it works despite the bug, it just isn't very
good for performance on the other end...
I will fix this before I commit anything (and after
review).
-Alex
> +}
> +EXPORT_SYMBOL(ceph_msg_data_set_pages);
next prev parent reply other threads:[~2013-03-05 16:03 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-05 13:51 [PATCH 0/5] ceph: abstract message data information setting Alex Elder
2013-03-05 13:52 ` [PATCH 1/5] libceph: isolate message page field manipulation Alex Elder
2013-03-05 16:03 ` Alex Elder [this message]
2013-03-05 13:52 ` [PATCH 2/5] libceph: isolate other message data fields Alex Elder
2013-03-05 13:53 ` [PATCH 3/5] ceph: only set message data pointers if non-empty Alex Elder
2013-03-05 21:20 ` Greg Farnum
2013-03-05 13:53 ` [PATCH 4/5] libceph: set response data fields earlier Alex Elder
2013-03-05 13:53 ` [PATCH 5/5] libceph: activate message data assignment checks Alex Elder
2013-03-05 21:21 ` Greg Farnum
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5136174C.5000306@inktank.com \
--to=elder@inktank.com \
--cc=ceph-devel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.