linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] AFS: The AFS RPC op CBGetCapabilities is actually CBTellMeAboutYourself
@ 2008-04-02 17:48 David Howells
  2008-04-03 17:15 ` Bob Copeland
  0 siblings, 1 reply; 3+ messages in thread
From: David Howells @ 2008-04-02 17:48 UTC (permalink / raw)
  To: torvalds, akpm; +Cc: dhowells, linux-kernel

The AFS RxRPC op CBGetCapabilities is actually CBTellMeAboutYourself.

Signed-off-by: David Howells <dhowells@redhat.com>
---

 fs/afs/afs_cm.h    |    2 +-
 fs/afs/cmservice.c |   26 +++++++++++++-------------
 2 files changed, 14 insertions(+), 14 deletions(-)


diff --git a/fs/afs/afs_cm.h b/fs/afs/afs_cm.h
index 7b4d4fa..5f62f3e 100644
--- a/fs/afs/afs_cm.h
+++ b/fs/afs/afs_cm.h
@@ -24,7 +24,7 @@ enum AFS_CM_Operations {
 	CBGetXStatsVersion	= 209,	/* get version of extended statistics */
 	CBGetXStats		= 210,	/* get contents of extended statistics data */
 	CBInitCallBackState3	= 213,	/* initialise callback state, version 3 */
-	CBGetCapabilities	= 65538, /* get client capabilities */
+	CBTellMeAboutYourself	= 65538, /* get client capabilities */
 };
 
 #define AFS_CAP_ERROR_TRANSLATION	0x1
diff --git a/fs/afs/cmservice.c b/fs/afs/cmservice.c
index 47b71c8..9b19c02 100644
--- a/fs/afs/cmservice.c
+++ b/fs/afs/cmservice.c
@@ -26,8 +26,8 @@ static int afs_deliver_cb_init_call_back_state3(struct afs_call *,
 						struct sk_buff *, bool);
 static int afs_deliver_cb_probe(struct afs_call *, struct sk_buff *, bool);
 static int afs_deliver_cb_callback(struct afs_call *, struct sk_buff *, bool);
-static int afs_deliver_cb_get_capabilities(struct afs_call *, struct sk_buff *,
-					   bool);
+static int afs_deliver_cb_tell_me_about_yourself(struct afs_call *,
+						 struct sk_buff *, bool);
 static void afs_cm_destructor(struct afs_call *);
 
 /*
@@ -71,11 +71,11 @@ static const struct afs_call_type afs_SRXCBProbe = {
 };
 
 /*
- * CB.GetCapabilities operation type
+ * CB.TellMeAboutYourself operation type
  */
-static const struct afs_call_type afs_SRXCBGetCapabilites = {
-	.name		= "CB.GetCapabilities",
-	.deliver	= afs_deliver_cb_get_capabilities,
+static const struct afs_call_type afs_SRXCBTellMeAboutYourself = {
+	.name		= "CB.",
+	.deliver	= afs_deliver_cb_tell_me_about_yourself,
 	.abort_to_error	= afs_abort_to_error,
 	.destructor	= afs_cm_destructor,
 };
@@ -103,8 +103,8 @@ bool afs_cm_incoming_call(struct afs_call *call)
 	case CBProbe:
 		call->type = &afs_SRXCBProbe;
 		return true;
-	case CBGetCapabilities:
-		call->type = &afs_SRXCBGetCapabilites;
+	case CBTellMeAboutYourself:
+		call->type = &afs_SRXCBTellMeAboutYourself;
 		return true;
 	default:
 		return false;
@@ -395,7 +395,7 @@ static int afs_deliver_cb_probe(struct afs_call *call, struct sk_buff *skb,
 /*
  * allow the fileserver to ask about the cache manager's capabilities
  */
-static void SRXAFSCB_GetCapabilities(struct work_struct *work)
+static void SRXAFSCB_TellMeAboutYourself(struct work_struct *work)
 {
 	struct afs_interface *ifs;
 	struct afs_call *call = container_of(work, struct afs_call, work);
@@ -456,10 +456,10 @@ static void SRXAFSCB_GetCapabilities(struct work_struct *work)
 }
 
 /*
- * deliver request data to a CB.GetCapabilities call
+ * deliver request data to a CB.TellMeAboutYourself call
  */
-static int afs_deliver_cb_get_capabilities(struct afs_call *call,
-					   struct sk_buff *skb, bool last)
+static int afs_deliver_cb_tell_me_about_yourself(struct afs_call *call,
+						 struct sk_buff *skb, bool last)
 {
 	_enter(",{%u},%d", skb->len, last);
 
@@ -471,7 +471,7 @@ static int afs_deliver_cb_get_capabilities(struct afs_call *call,
 	/* no unmarshalling required */
 	call->state = AFS_CALL_REPLYING;
 
-	INIT_WORK(&call->work, SRXAFSCB_GetCapabilities);
+	INIT_WORK(&call->work, SRXAFSCB_TellMeAboutYourself);
 	schedule_work(&call->work);
 	return 0;
 }


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] AFS: The AFS RPC op CBGetCapabilities is actually CBTellMeAboutYourself
  2008-04-02 17:48 [PATCH] AFS: The AFS RPC op CBGetCapabilities is actually CBTellMeAboutYourself David Howells
@ 2008-04-03 17:15 ` Bob Copeland
  2008-04-03 18:01   ` David Howells
  0 siblings, 1 reply; 3+ messages in thread
From: Bob Copeland @ 2008-04-03 17:15 UTC (permalink / raw)
  To: David Howells; +Cc: torvalds, akpm, linux-kernel

On Wed, Apr 2, 2008 at 1:48 PM, David Howells <dhowells@redhat.com> wrote:
>  -static const struct afs_call_type afs_SRXCBGetCapabilites = {
>  -       .name           = "CB.GetCapabilities",
>  -       .deliver        = afs_deliver_cb_get_capabilities,
>  +static const struct afs_call_type afs_SRXCBTellMeAboutYourself = {
>  +       .name           = "CB.",
>  +       .deliver        = afs_deliver_cb_tell_me_about_yourself,

Just curious, is .name meant to be that way?

-Bob

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] AFS: The AFS RPC op CBGetCapabilities is actually CBTellMeAboutYourself
  2008-04-03 17:15 ` Bob Copeland
@ 2008-04-03 18:01   ` David Howells
  0 siblings, 0 replies; 3+ messages in thread
From: David Howells @ 2008-04-03 18:01 UTC (permalink / raw)
  To: Bob Copeland; +Cc: dhowells, torvalds, akpm, linux-kernel

Bob Copeland <me@bobcopeland.com> wrote:

> >  +static const struct afs_call_type afs_SRXCBTellMeAboutYourself = {
> >  +       .name           = "CB.",
> >  +       .deliver        = afs_deliver_cb_tell_me_about_yourself,
> 
> Just curious, is .name meant to be that way?

Ummm... No.

David

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-04-03 18:01 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-02 17:48 [PATCH] AFS: The AFS RPC op CBGetCapabilities is actually CBTellMeAboutYourself David Howells
2008-04-03 17:15 ` Bob Copeland
2008-04-03 18:01   ` David Howells

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).