Skip to content

Commit 0ac203c

Browse files
GustavoARSilvaJ. Bruce Fields
authored andcommitted
nfsd: fix fall-through annotations
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 <gustavo@embeddedor.com> Signed-off-by: J. Bruce Fields <bfields@redhat.com>
1 parent 736c662 commit 0ac203c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

fs/nfsd/vfs.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1406,6 +1406,7 @@ do_nfsd_create(struct svc_rqst *rqstp, struct svc_fh *fhp,
14061406
*created = 1;
14071407
break;
14081408
}
1409+
/* fall through */
14091410
case NFS4_CREATE_EXCLUSIVE4_1:
14101411
if ( d_inode(dchild)->i_mtime.tv_sec == v_mtime
14111412
&& d_inode(dchild)->i_atime.tv_sec == v_atime
@@ -1414,7 +1415,7 @@ do_nfsd_create(struct svc_rqst *rqstp, struct svc_fh *fhp,
14141415
*created = 1;
14151416
goto set_attr;
14161417
}
1417-
/* fallthru */
1418+
/* fall through */
14181419
case NFS3_CREATE_GUARDED:
14191420
err = nfserr_exist;
14201421
}

0 commit comments

Comments
 (0)