]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
libxfs: annotate a case fallthrough in libxfs_ialloc
authorEric Sandeen <sandeen@redhat.com>
Mon, 14 Apr 2014 06:13:17 +0000 (16:13 +1000)
committerDave Chinner <david@fromorbit.com>
Mon, 14 Apr 2014 06:13:17 +0000 (16:13 +1000)
This is all working as intended, but add a comment to
make it more obvious to readers and static code
checkers.

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
libxfs/util.c

index 03befb732e93f056e647ccea94ae98e9d917013f..4c40324806d7a1783fd09a80b2e0ccecccd65d07 100644 (file)
@@ -265,6 +265,7 @@ libxfs_ialloc(
        case S_IFSOCK:
                /* doesn't make sense to set an rdev for these */
                rdev = 0;
+               /* FALLTHROUGH */
        case S_IFCHR:
        case S_IFBLK:
                ip->i_d.di_format = XFS_DINODE_FMT_DEV;