@@ -600,33 +600,33 @@ nfsd4_open(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate,
600600 goto out ;
601601
602602 switch (open -> op_claim_type ) {
603- case NFS4_OPEN_CLAIM_DELEGATE_CUR :
604- case NFS4_OPEN_CLAIM_NULL :
605- status = do_open_lookup (rqstp , cstate , open , & resfh );
606- if (status )
607- goto out ;
608- break ;
609- case NFS4_OPEN_CLAIM_PREVIOUS :
610- status = nfs4_check_open_reclaim (cstate -> clp );
611- if (status )
612- goto out ;
613- open -> op_openowner -> oo_flags |= NFS4_OO_CONFIRMED ;
614- reclaim = true;
615- fallthrough ;
616- case NFS4_OPEN_CLAIM_FH :
617- case NFS4_OPEN_CLAIM_DELEG_CUR_FH :
618- status = do_open_fhandle (rqstp , cstate , open );
619- if (status )
620- goto out ;
621- resfh = & cstate -> current_fh ;
622- break ;
623- case NFS4_OPEN_CLAIM_DELEG_PREV_FH :
624- case NFS4_OPEN_CLAIM_DELEGATE_PREV :
625- status = nfserr_notsupp ;
603+ case NFS4_OPEN_CLAIM_DELEGATE_CUR :
604+ case NFS4_OPEN_CLAIM_NULL :
605+ status = do_open_lookup (rqstp , cstate , open , & resfh );
606+ if (status )
626607 goto out ;
627- default :
628- status = nfserr_inval ;
608+ break ;
609+ case NFS4_OPEN_CLAIM_PREVIOUS :
610+ status = nfs4_check_open_reclaim (cstate -> clp );
611+ if (status )
629612 goto out ;
613+ open -> op_openowner -> oo_flags |= NFS4_OO_CONFIRMED ;
614+ reclaim = true;
615+ fallthrough ;
616+ case NFS4_OPEN_CLAIM_FH :
617+ case NFS4_OPEN_CLAIM_DELEG_CUR_FH :
618+ status = do_open_fhandle (rqstp , cstate , open );
619+ if (status )
620+ goto out ;
621+ resfh = & cstate -> current_fh ;
622+ break ;
623+ case NFS4_OPEN_CLAIM_DELEG_PREV_FH :
624+ case NFS4_OPEN_CLAIM_DELEGATE_PREV :
625+ status = nfserr_notsupp ;
626+ goto out ;
627+ default :
628+ status = nfserr_inval ;
629+ goto out ;
630630 }
631631 /*
632632 * nfsd4_process_open2() does the actual opening of the file. If
0 commit comments