]> git.baikalelectronics.ru Git - kernel.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>
Tue, 4 Oct 2022 17:18:08 +0000 (19:18 +0200)
commit32d8ad30a71b94ce384200d8bc0840efbd6d197e
tree543794627c24d2a39e6b4ee1088dae8172ff3423
parentcd962d61087ba5774d85fb8749a1b9e527177ac7
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.

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