]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-client.git/commit
ceph: define new argument structure for send_cap_msg
authorJeff Layton <jlayton@redhat.com>
Thu, 10 Nov 2016 12:42:03 +0000 (07:42 -0500)
committerIlya Dryomov <idryomov@gmail.com>
Tue, 22 Nov 2016 09:55:53 +0000 (10:55 +0100)
commit299c089b03a8300ed3b9f89bd7585336ff83d379
tree5482641dd904a53fcc645e1c755db384dde9cf30
parente9b2933a49d4a205a2dfdb384e5dcaec618fa6a7
ceph: define new argument structure for send_cap_msg

When we get to this many arguments, it's hard to work with positional
parameters. send_cap_msg is already at 25 arguments, with more needed.

Define a new args structure and pass a pointer to it to send_cap_msg.
Eventually it might make sense to embed one of these inside
ceph_cap_snap instead of tracking individual fields.

Reviewed-by: "Yan, Zheng" <zyan@redhat.com>
Signed-off-by: Jeff Layton <jlayton@redhat.com>
fs/ceph/caps.c