]> 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)
committerJeff Layton <jlayton@kernel.org>
Tue, 31 May 2022 14:44:35 +0000 (10:44 -0400)
commit608f178614d4d7134277d0883ec5e6093f0441ec
tree716584e3c018e0e6baa1e770d8e9e1baf03ca925
parentd83cff47828a199b7d91c74a10f7f70dce8718f3
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