Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

afs: the AFS RPC op CBGetCapabilities is actually CBTellMeAboutYourself

The AFS RxRPC op CBGetCapabilities is actually CBTellMeAboutYourself.

Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

David Howells and committed by
Linus Torvalds
7c80bcce 0ae52d6f

+14 -14
+1 -1
fs/afs/afs_cm.h
··· 24 24 CBGetXStatsVersion = 209, /* get version of extended statistics */ 25 25 CBGetXStats = 210, /* get contents of extended statistics data */ 26 26 CBInitCallBackState3 = 213, /* initialise callback state, version 3 */ 27 - CBGetCapabilities = 65538, /* get client capabilities */ 27 + CBTellMeAboutYourself = 65538, /* get client capabilities */ 28 28 }; 29 29 30 30 #define AFS_CAP_ERROR_TRANSLATION 0x1
+13 -13
fs/afs/cmservice.c
··· 26 26 struct sk_buff *, bool); 27 27 static int afs_deliver_cb_probe(struct afs_call *, struct sk_buff *, bool); 28 28 static int afs_deliver_cb_callback(struct afs_call *, struct sk_buff *, bool); 29 - static int afs_deliver_cb_get_capabilities(struct afs_call *, struct sk_buff *, 30 - bool); 29 + static int afs_deliver_cb_tell_me_about_yourself(struct afs_call *, 30 + struct sk_buff *, bool); 31 31 static void afs_cm_destructor(struct afs_call *); 32 32 33 33 /* ··· 71 71 }; 72 72 73 73 /* 74 - * CB.GetCapabilities operation type 74 + * CB.TellMeAboutYourself operation type 75 75 */ 76 - static const struct afs_call_type afs_SRXCBGetCapabilites = { 77 - .name = "CB.GetCapabilities", 78 - .deliver = afs_deliver_cb_get_capabilities, 76 + static const struct afs_call_type afs_SRXCBTellMeAboutYourself = { 77 + .name = "CB.TellMeAboutYourself", 78 + .deliver = afs_deliver_cb_tell_me_about_yourself, 79 79 .abort_to_error = afs_abort_to_error, 80 80 .destructor = afs_cm_destructor, 81 81 }; ··· 103 103 case CBProbe: 104 104 call->type = &afs_SRXCBProbe; 105 105 return true; 106 - case CBGetCapabilities: 107 - call->type = &afs_SRXCBGetCapabilites; 106 + case CBTellMeAboutYourself: 107 + call->type = &afs_SRXCBTellMeAboutYourself; 108 108 return true; 109 109 default: 110 110 return false; ··· 395 395 /* 396 396 * allow the fileserver to ask about the cache manager's capabilities 397 397 */ 398 - static void SRXAFSCB_GetCapabilities(struct work_struct *work) 398 + static void SRXAFSCB_TellMeAboutYourself(struct work_struct *work) 399 399 { 400 400 struct afs_interface *ifs; 401 401 struct afs_call *call = container_of(work, struct afs_call, work); ··· 456 456 } 457 457 458 458 /* 459 - * deliver request data to a CB.GetCapabilities call 459 + * deliver request data to a CB.TellMeAboutYourself call 460 460 */ 461 - static int afs_deliver_cb_get_capabilities(struct afs_call *call, 462 - struct sk_buff *skb, bool last) 461 + static int afs_deliver_cb_tell_me_about_yourself(struct afs_call *call, 462 + struct sk_buff *skb, bool last) 463 463 { 464 464 _enter(",{%u},%d", skb->len, last); 465 465 ··· 471 471 /* no unmarshalling required */ 472 472 call->state = AFS_CALL_REPLYING; 473 473 474 - INIT_WORK(&call->work, SRXAFSCB_GetCapabilities); 474 + INIT_WORK(&call->work, SRXAFSCB_TellMeAboutYourself); 475 475 schedule_work(&call->work); 476 476 return 0; 477 477 }