diff options
author | Benoît Canet <[email protected]> | 2015-06-25 20:32:34 +0300 |
---|---|---|
committer | Ilya Dryomov <[email protected]> | 2015-06-29 20:03:46 +0300 |
commit | c2cfa19400979dc1a14bba75f83b451b0cd9507a (patch) | |
tree | be54f525471187bb09e130bdd9290e87015ba785 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | 6ba8edc0bcbdf337293e60123ddac8fc1c895a3c (diff) |
libceph: Fix ceph_tcp_sendpage()'s more boolean usage
From struct ceph_msg_data_cursor in include/linux/ceph/messenger.h:
bool last_piece; /* current is last piece */
In ceph_msg_data_next():
*last_piece = cursor->last_piece;
A call to ceph_msg_data_next() is followed by:
ret = ceph_tcp_sendpage(con->sock, page, page_offset,
length, last_piece);
while ceph_tcp_sendpage() is:
static int ceph_tcp_sendpage(struct socket *sock, struct page *page,
int offset, size_t size, bool more)
The logic is inverted: correct it.
Signed-off-by: Benoît Canet <[email protected]>
Reviewed-by: Alex Elder <[email protected]>
Signed-off-by: Ilya Dryomov <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions