|
@@ -519,7 +519,7 @@ nfsd4_read(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate,
|
|
/* check stateid */
|
|
/* check stateid */
|
|
if ((status = nfs4_preprocess_stateid_op(&cstate->current_fh,
|
|
if ((status = nfs4_preprocess_stateid_op(&cstate->current_fh,
|
|
&read->rd_stateid,
|
|
&read->rd_stateid,
|
|
- CHECK_FH | RD_STATE, &read->rd_filp))) {
|
|
|
|
|
|
+ RD_STATE, &read->rd_filp))) {
|
|
dprintk("NFSD: nfsd4_read: couldn't process stateid!\n");
|
|
dprintk("NFSD: nfsd4_read: couldn't process stateid!\n");
|
|
goto out;
|
|
goto out;
|
|
}
|
|
}
|
|
@@ -651,7 +651,7 @@ nfsd4_setattr(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate,
|
|
if (setattr->sa_iattr.ia_valid & ATTR_SIZE) {
|
|
if (setattr->sa_iattr.ia_valid & ATTR_SIZE) {
|
|
nfs4_lock_state();
|
|
nfs4_lock_state();
|
|
status = nfs4_preprocess_stateid_op(&cstate->current_fh,
|
|
status = nfs4_preprocess_stateid_op(&cstate->current_fh,
|
|
- &setattr->sa_stateid, CHECK_FH | WR_STATE, NULL);
|
|
|
|
|
|
+ &setattr->sa_stateid, WR_STATE, NULL);
|
|
nfs4_unlock_state();
|
|
nfs4_unlock_state();
|
|
if (status) {
|
|
if (status) {
|
|
dprintk("NFSD: nfsd4_setattr: couldn't process stateid!\n");
|
|
dprintk("NFSD: nfsd4_setattr: couldn't process stateid!\n");
|
|
@@ -690,7 +690,7 @@ nfsd4_write(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate,
|
|
|
|
|
|
nfs4_lock_state();
|
|
nfs4_lock_state();
|
|
status = nfs4_preprocess_stateid_op(&cstate->current_fh, stateid,
|
|
status = nfs4_preprocess_stateid_op(&cstate->current_fh, stateid,
|
|
- CHECK_FH | WR_STATE, &filp);
|
|
|
|
|
|
+ WR_STATE, &filp);
|
|
if (filp)
|
|
if (filp)
|
|
get_file(filp);
|
|
get_file(filp);
|
|
nfs4_unlock_state();
|
|
nfs4_unlock_state();
|