On Fri, May 10, 2019 at 03:30:36PM +0300, Nikolay Borisov wrote:
> >
> > #define BTRFS_EMPTY_DIR_SIZE 0
> >
> > diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c
> > index 2be8f05be1e6..bdcffa0d6b13 100644
> > --- a/fs/btrfs/disk-io.c
> > +++ b/fs/btrfs/disk-io.c
> > @@ -390,6 +390,8 @@ static bool btrfs_supported_super_csum(struct btrfs_super_block *sb)
> > switch (btrfs_super_csum_type(sb)) {
> > case BTRFS_CSUM_TYPE_CRC32:
> > return true;
> > + case BTRFS_CSUM_TYPE_SHA256:
> > + return true;
>
> nit: case BTRFS_CSUM_TYPE_CRC32:
> CASE BTRFS_CSUM_TYPE_SHA256:
> return true;
I'm not sure if the -Wimplicit-fallthrough accepts that without the
annotation or not.