diff options
author | Gustavo A. R. Silva <gustavo@embeddedor.com> | 2018-10-02 06:08:48 -0400 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2018-10-29 16:58:04 -0400 |
commit | 0ac203cb1f03734606c0674eded43aaefb5a491a (patch) | |
tree | 570fc5c2f7416048d976ab3d7421cc689503c757 /fs/nfsd/vfs.c | |
parent | 736c6625de666f3fd0b47428f10568154033151a (diff) |
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>
Diffstat (limited to 'fs/nfsd/vfs.c')
-rw-r--r-- | fs/nfsd/vfs.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/nfsd/vfs.c b/fs/nfsd/vfs.c index ddbac8776bd3..94412768b782 100644 --- a/fs/nfsd/vfs.c +++ b/fs/nfsd/vfs.c | |||
@@ -1406,6 +1406,7 @@ do_nfsd_create(struct svc_rqst *rqstp, struct svc_fh *fhp, | |||
1406 | *created = 1; | 1406 | *created = 1; |
1407 | break; | 1407 | break; |
1408 | } | 1408 | } |
1409 | /* fall through */ | ||
1409 | case NFS4_CREATE_EXCLUSIVE4_1: | 1410 | case NFS4_CREATE_EXCLUSIVE4_1: |
1410 | if ( d_inode(dchild)->i_mtime.tv_sec == v_mtime | 1411 | if ( d_inode(dchild)->i_mtime.tv_sec == v_mtime |
1411 | && d_inode(dchild)->i_atime.tv_sec == v_atime | 1412 | && d_inode(dchild)->i_atime.tv_sec == v_atime |
@@ -1414,7 +1415,7 @@ do_nfsd_create(struct svc_rqst *rqstp, struct svc_fh *fhp, | |||
1414 | *created = 1; | 1415 | *created = 1; |
1415 | goto set_attr; | 1416 | goto set_attr; |
1416 | } | 1417 | } |
1417 | /* fallthru */ | 1418 | /* fall through */ |
1418 | case NFS3_CREATE_GUARDED: | 1419 | case NFS3_CREATE_GUARDED: |
1419 | err = nfserr_exist; | 1420 | err = nfserr_exist; |
1420 | } | 1421 | } |