|
@@ -1525,8 +1525,6 @@ typedef __be32(*nfsd4op_func)(struct svc_rqst *, struct nfsd4_compound_state *,
|
|
|
void *);
|
|
|
typedef u32(*nfsd4op_rsize)(struct svc_rqst *, struct nfsd4_op *op);
|
|
|
|
|
|
-typedef void(*stateid_getter)(struct nfsd4_compound_state *, void *);
|
|
|
-
|
|
|
enum nfsd4_op_flags {
|
|
|
ALLOWED_WITHOUT_FH = 1 << 0, /* No current filehandle required */
|
|
|
ALLOWED_ON_ABSENT_FS = 1 << 1, /* ops processed on absent fs */
|
|
@@ -1563,7 +1561,8 @@ struct nfsd4_operation {
|
|
|
char *op_name;
|
|
|
/* Try to get response size before operation */
|
|
|
nfsd4op_rsize op_rsize_bop;
|
|
|
- stateid_getter op_get_currentstateid;
|
|
|
+ void (*op_get_currentstateid)(struct nfsd4_compound_state *,
|
|
|
+ union nfsd4_op_u *);
|
|
|
void (*op_set_currentstateid)(struct nfsd4_compound_state *,
|
|
|
union nfsd4_op_u *);
|
|
|
};
|
|
@@ -2104,7 +2103,7 @@ static struct nfsd4_operation nfsd4_ops[] = {
|
|
|
.op_flags = OP_MODIFIES_SOMETHING,
|
|
|
.op_name = "OP_CLOSE",
|
|
|
.op_rsize_bop = (nfsd4op_rsize)nfsd4_status_stateid_rsize,
|
|
|
- .op_get_currentstateid = (stateid_getter)nfsd4_get_closestateid,
|
|
|
+ .op_get_currentstateid = nfsd4_get_closestateid,
|
|
|
.op_set_currentstateid = nfsd4_set_closestateid,
|
|
|
},
|
|
|
[OP_COMMIT] = {
|
|
@@ -2124,7 +2123,7 @@ static struct nfsd4_operation nfsd4_ops[] = {
|
|
|
.op_flags = OP_MODIFIES_SOMETHING,
|
|
|
.op_name = "OP_DELEGRETURN",
|
|
|
.op_rsize_bop = nfsd4_only_status_rsize,
|
|
|
- .op_get_currentstateid = (stateid_getter)nfsd4_get_delegreturnstateid,
|
|
|
+ .op_get_currentstateid = nfsd4_get_delegreturnstateid,
|
|
|
},
|
|
|
[OP_GETATTR] = {
|
|
|
.op_func = (nfsd4op_func)nfsd4_getattr,
|
|
@@ -2161,7 +2160,7 @@ static struct nfsd4_operation nfsd4_ops[] = {
|
|
|
.op_flags = OP_MODIFIES_SOMETHING,
|
|
|
.op_name = "OP_LOCKU",
|
|
|
.op_rsize_bop = (nfsd4op_rsize)nfsd4_status_stateid_rsize,
|
|
|
- .op_get_currentstateid = (stateid_getter)nfsd4_get_lockustateid,
|
|
|
+ .op_get_currentstateid = nfsd4_get_lockustateid,
|
|
|
},
|
|
|
[OP_LOOKUP] = {
|
|
|
.op_func = (nfsd4op_func)nfsd4_lookup,
|
|
@@ -2198,7 +2197,7 @@ static struct nfsd4_operation nfsd4_ops[] = {
|
|
|
.op_flags = OP_MODIFIES_SOMETHING,
|
|
|
.op_name = "OP_OPEN_DOWNGRADE",
|
|
|
.op_rsize_bop = (nfsd4op_rsize)nfsd4_status_stateid_rsize,
|
|
|
- .op_get_currentstateid = (stateid_getter)nfsd4_get_opendowngradestateid,
|
|
|
+ .op_get_currentstateid = nfsd4_get_opendowngradestateid,
|
|
|
.op_set_currentstateid = nfsd4_set_opendowngradestateid,
|
|
|
},
|
|
|
[OP_PUTFH] = {
|
|
@@ -2226,7 +2225,7 @@ static struct nfsd4_operation nfsd4_ops[] = {
|
|
|
.op_func = (nfsd4op_func)nfsd4_read,
|
|
|
.op_name = "OP_READ",
|
|
|
.op_rsize_bop = (nfsd4op_rsize)nfsd4_read_rsize,
|
|
|
- .op_get_currentstateid = (stateid_getter)nfsd4_get_readstateid,
|
|
|
+ .op_get_currentstateid = nfsd4_get_readstateid,
|
|
|
},
|
|
|
[OP_READDIR] = {
|
|
|
.op_func = (nfsd4op_func)nfsd4_readdir,
|
|
@@ -2282,7 +2281,7 @@ static struct nfsd4_operation nfsd4_ops[] = {
|
|
|
.op_name = "OP_SETATTR",
|
|
|
.op_flags = OP_MODIFIES_SOMETHING | OP_CACHEME,
|
|
|
.op_rsize_bop = (nfsd4op_rsize)nfsd4_setattr_rsize,
|
|
|
- .op_get_currentstateid = (stateid_getter)nfsd4_get_setattrstateid,
|
|
|
+ .op_get_currentstateid = nfsd4_get_setattrstateid,
|
|
|
},
|
|
|
[OP_SETCLIENTID] = {
|
|
|
.op_func = (nfsd4op_func)nfsd4_setclientid,
|
|
@@ -2308,7 +2307,7 @@ static struct nfsd4_operation nfsd4_ops[] = {
|
|
|
.op_flags = OP_MODIFIES_SOMETHING | OP_CACHEME,
|
|
|
.op_name = "OP_WRITE",
|
|
|
.op_rsize_bop = (nfsd4op_rsize)nfsd4_write_rsize,
|
|
|
- .op_get_currentstateid = (stateid_getter)nfsd4_get_writestateid,
|
|
|
+ .op_get_currentstateid = nfsd4_get_writestateid,
|
|
|
},
|
|
|
[OP_RELEASE_LOCKOWNER] = {
|
|
|
.op_func = (nfsd4op_func)nfsd4_release_lockowner,
|
|
@@ -2388,7 +2387,7 @@ static struct nfsd4_operation nfsd4_ops[] = {
|
|
|
.op_func = (nfsd4op_func)nfsd4_free_stateid,
|
|
|
.op_flags = ALLOWED_WITHOUT_FH | OP_MODIFIES_SOMETHING,
|
|
|
.op_name = "OP_FREE_STATEID",
|
|
|
- .op_get_currentstateid = (stateid_getter)nfsd4_get_freestateid,
|
|
|
+ .op_get_currentstateid = nfsd4_get_freestateid,
|
|
|
.op_rsize_bop = (nfsd4op_rsize)nfsd4_only_status_rsize,
|
|
|
},
|
|
|
#ifdef CONFIG_NFSD_PNFS
|