libceph: change ceph_pagelist_encode_string() to take u32
authorIlya Dryomov <idryomov@gmail.com>
Wed, 27 Jun 2018 14:42:51 +0000 (16:42 +0200)
committerIlya Dryomov <idryomov@gmail.com>
Thu, 2 Aug 2018 19:26:11 +0000 (21:26 +0200)
commitc9ed51c9123ab5e8f79b7d53a9afd786b43d4fe6
tree705775edaad9b421f78b57f51dd6031f7a6d2bf1
parent6d54228fd1f293d00576ab2c3d2e4992c7cce12f
libceph: change ceph_pagelist_encode_string() to take u32

The wire format dictates that the length of string fits into 4 bytes.
Take u32 instead of size_t to reflect that.

We were already truncating len in ceph_pagelist_encode_32() -- this
just pushes that truncation one level up.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
include/linux/ceph/pagelist.h