[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20190129224330.GA87266@dennisz-mbp.dhcp.thefacebook.com>
Date: Tue, 29 Jan 2019 17:43:30 -0500
From: Dennis Zhou <dennis@...nel.org>
To: Nikolay Borisov <nborisov@...e.com>
Cc: Dennis Zhou <dennis@...nel.org>, David Sterba <dsterba@...e.com>,
Josef Bacik <josef@...icpanda.com>, Chris Mason <clm@...com>,
Omar Sandoval <osandov@...ndov.com>,
Nick Terrell <terrelln@...com>, kernel-team@...com,
linux-btrfs@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH 03/11] btrfs: manage heuristic workspace as index 0
On Tue, Jan 29, 2019 at 09:53:33AM +0200, Nikolay Borisov wrote:
>
>
> On 28.01.19 г. 23:24 ч., Dennis Zhou wrote:
> > While the heuristic workspaces aren't really compression workspaces,
> > they use the same interface for managing them. So rather than branching,
> > let's just handle them once again as the index 0 compression type.
> >
> > Signed-off-by: Dennis Zhou <dennis@...nel.org>
>
> Reviewed-by: Nikolay Borisov <nborisov@...e.com> albeit one minor nit
> below.
> > ---
> > fs/btrfs/compression.c | 107 +++++++++++-----------------------------
> > fs/btrfs/compression.h | 3 +-
> > fs/btrfs/ioctl.c | 2 +-
> > fs/btrfs/tree-checker.c | 4 +-
> > 4 files changed, 33 insertions(+), 83 deletions(-)
> >
> > diff --git a/fs/btrfs/compression.c b/fs/btrfs/compression.c
> > index aced261984e2..bda7e8d2cbc7 100644
> > --- a/fs/btrfs/compression.c
> > +++ b/fs/btrfs/compression.c
> > @@ -37,6 +37,8 @@ const char* btrfs_compress_type2str(enum btrfs_compression_type type)
> > case BTRFS_COMPRESS_ZSTD:
> > case BTRFS_COMPRESS_NONE:
> > return btrfs_compress_types[type];
> > + default:
> > + return NULL;
>
> nit: With this change...
>
> > }
> >
> > return NULL;
>
> This becomes redundant. I doubt the compiler will issue a warning since
> it should be clever enough to figure we will never exit the switch()
> construct.
>
Ah yes. I've removed it for v2.
Thanks,
Dennis
Powered by blists - more mailing lists