Skip to contentSkip to conversation

NFSD: Swap the struct nfs4_operation getter and setter

PATCH In review [email protected] 2 participants 2 messages Aug 14, 2012

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 NFSD: Swap the struct nfs4_operation getter and setter

From: Bryan Schumaker <[email protected]>

stateid_setter should be matched to op_set_currentstateid, rather than op_get_currentstateid.

---
 fs/nfsd/nfs4proc.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
fs/nfsd/nfs4proc.c +2 -2
index c9c1c0a..f2bb0ef 100644
@@ -1054,8 +1054,8 @@ struct nfsd4_operation {
 	char *op_name;
 	/* Try to get response size before operation */
 	nfsd4op_rsize op_rsize_bop;
-	stateid_setter op_get_currentstateid;
-	stateid_getter op_set_currentstateid;
+	stateid_getter op_get_currentstateid;
+	stateid_setter op_set_currentstateid;
 };
 
 static struct nfsd4_operation nfsd4_ops[];
Signature · 1 line
1.7.11.4
#1 lore raw
Quoted 4 lines · On Tue, Aug 14, 2012 at 03:55:08PM -0400, [email protected] wrote:

From: Bryan Schumaker <[email protected]>

stateid_setter should be matched to op_set_currentstateid, rather than op_get_currentstateid.

Why didn't we notice that?

Oh, the two prototypes are actually identical. Eh. OK, applying, thanks.

--b.

Quoted 24 lines
---
 fs/nfsd/nfs4proc.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
fs/nfsd/nfs4proc.c +2 -2
index c9c1c0a..f2bb0ef 100644
@@ -1054,8 +1054,8 @@ struct nfsd4_operation {
 	char *op_name;
 	/* Try to get response size before operation */
 	nfsd4op_rsize op_rsize_bop;
-	stateid_setter op_get_currentstateid;
-	stateid_getter op_set_currentstateid;
+	stateid_getter op_get_currentstateid;
+	stateid_setter op_set_currentstateid;
 };
 
 static struct nfsd4_operation nfsd4_ops[];
Signature · 1 line
1.7.11.4