]> 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)
commit5f21a391ed66466fcb3541a31fa53f83295f7c94
tree543794627c24d2a39e6b4ee1088dae8172ff3423
parent24894d74e14a4d586a8f8fa1b48445fd4cb138aa
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