]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-client.git/commit
libceph: drop last_piece flag from ceph_msg_data_cursor
authorJeff Layton <jlayton@kernel.org>
Wed, 25 May 2022 10:11:00 +0000 (06:11 -0400)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 15 Aug 2022 12:51:40 +0000 (14:51 +0200)
commit311f1412f64c067e083ad2e5f33c72e50897ffcc
tree8d9943d54bc81f063c1b7a099925d91db8f145ea
parent61c6c0a70fa163a8d467b4ca134b1ca018d607a8
libceph: drop last_piece flag from ceph_msg_data_cursor

ceph_msg_data_next is always passed a NULL pointer for this field. Some
of the "next" operations look at it in order to determine the length,
but we can just take the min of the data on the page or cursor->resid.

Reviewed-by: Xiubo Li <xiubli@redhat.com>
Signed-off-by: Jeff Layton <jlayton@kernel.org>
include/linux/ceph/messenger.h
net/ceph/messenger.c
net/ceph/messenger_v1.c
net/ceph/messenger_v2.c