Re: [PATCH 17/17] btrfs: add sha256 as another checksum algorithm

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.



[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux