Skip to content

Commit

Permalink
nfsd: fix fall-through annotations
Browse files Browse the repository at this point in the history
Replace "fallthru" with a proper "fall through" annotation.

Also, add an annotation were it is expected to fall through.

These fixes are part of the ongoing efforts to enabling
-Wimplicit-fallthrough

Signed-off-by: Gustavo A. R. Silva <[email protected]>
Signed-off-by: J. Bruce Fields <[email protected]>
  • Loading branch information
GustavoARSilva authored and J. Bruce Fields committed Oct 29, 2018
1 parent 736c662 commit 0ac203c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion fs/nfsd/vfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -1406,6 +1406,7 @@ do_nfsd_create(struct svc_rqst *rqstp, struct svc_fh *fhp,
*created = 1;
break;
}
/* fall through */
case NFS4_CREATE_EXCLUSIVE4_1:
if ( d_inode(dchild)->i_mtime.tv_sec == v_mtime
&& d_inode(dchild)->i_atime.tv_sec == v_atime
Expand All @@ -1414,7 +1415,7 @@ do_nfsd_create(struct svc_rqst *rqstp, struct svc_fh *fhp,
*created = 1;
goto set_attr;
}
/* fallthru */
/* fall through */
case NFS3_CREATE_GUARDED:
err = nfserr_exist;
}
Expand Down

0 comments on commit 0ac203c

Please sign in to comment.