diff options
author | Alex Elder <elder@inktank.com> | 2013-03-06 23:39:38 -0600 |
---|---|---|
committer | Sage Weil <sage@inktank.com> | 2013-05-01 21:16:31 -0700 |
commit | e1dcb128f88958e7212fdd7ceebba4f84d6bc47a (patch) | |
tree | 95b602b0acc71e8a5511bbe6c19ef0af0a190e0f /net/ceph/messenger.c | |
parent | 6ebc8b32b327463f552d9d4499aba2ef1e02a600 (diff) |
libceph: change type of ceph_tcp_sendpage() "more"
Change the type of the "more" parameter from int to bool.
Signed-off-by: Alex Elder <elder@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
Diffstat (limited to 'net/ceph/messenger.c')
-rw-r--r-- | net/ceph/messenger.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/net/ceph/messenger.c b/net/ceph/messenger.c index d9ace979adef..962b2cd10f43 100644 --- a/net/ceph/messenger.c +++ b/net/ceph/messenger.c @@ -493,7 +493,7 @@ static int ceph_tcp_sendmsg(struct socket *sock, struct kvec *iov, } static int ceph_tcp_sendpage(struct socket *sock, struct page *page, - int offset, size_t size, int more) + int offset, size_t size, bool more) { int flags = MSG_DONTWAIT | MSG_NOSIGNAL | (more ? MSG_MORE : MSG_EOR); int ret; @@ -1132,7 +1132,7 @@ static int write_partial_msg_pages(struct ceph_connection *con) } ret = ceph_tcp_sendpage(con->sock, page, con->out_msg_pos.page_pos + bio_offset, - len, 1); + len, true); if (ret <= 0) goto out; @@ -1161,7 +1161,7 @@ static int write_partial_skip(struct ceph_connection *con) while (con->out_skip > 0) { size_t size = min(con->out_skip, (int) PAGE_CACHE_SIZE); - ret = ceph_tcp_sendpage(con->sock, zero_page, 0, size, 1); + ret = ceph_tcp_sendpage(con->sock, zero_page, 0, size, true); if (ret <= 0) goto out; con->out_skip -= ret; |