mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Gao Xiang <gaoxiang25@huawei.com>
To: Chao Yu <yuchao0@huawei.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	<devel@driverdev.osuosl.org>, LKML <linux-kernel@vger.kernel.org>,
	<linux-fsdevel@vger.kernel.org>, <linux-erofs@lists.ozlabs.org>,
	Chao Yu <chao@kernel.org>, Fang Wei <fangwei1@huawei.com>,
	Miao Xie <miaoxie@huawei.com>, Du Wei <weidu.du@huawei.com>
Subject: Re: [PATCH v2 3/8] staging: erofs: move per-CPU buffers implementation to utils.c
Date: Fri, 21 Jun 2019 16:32:31 +0800	[thread overview]
Message-ID: <abe96e3d-cda7-e71e-68b1-9669fe2f2241@huawei.com> (raw)
In-Reply-To: <1d296b86-69e2-4888-2ac9-1d77f38ac3e3@huawei.com>

Hi Chao,

On 2019/6/21 15:57, Chao Yu wrote:
> On 2019/6/21 0:07, Gao Xiang wrote:
>> +static inline void *erofs_get_pcpubuf(unsigned int pagenr)
>> +{
>> +	return ERR_PTR(-ENOTSUPP);
>> +}
> 
> [snip]
> 
>> +	percpu_data = erofs_get_pcpubuf(0);
> 
> If erofs_get_pcpubuf may return error once EROFS_PCPUBUF_NR_PAGES equals to
> zero, we'd better to check the error number here.

decompressor.c will be built-in only when decompression is enabled
and if decompression is enabled EROFS_PCPUBUF_NR_PAGES is not zero.

But I think introducing some error handling logic is not bad as well.
Will fix in the next version.

Thanks,
Gao Xiang

> 
> Thanks,
> 

  reply	other threads:[~2019-06-21  8:33 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-06-20 16:07 [PATCH v2 0/8] staging: erofs: decompression inplace approach Gao Xiang
2019-06-20 16:07 ` [PATCH v2 1/8] staging: erofs: add compacted ondisk compression indexes Gao Xiang
2019-06-21  7:46   ` Chao Yu
2019-06-21  8:05     ` Gao Xiang
2019-06-20 16:07 ` [PATCH v2 2/8] staging: erofs: add compacted compression indexes support Gao Xiang
2019-06-21  7:53   ` Chao Yu
2019-06-21  8:08     ` Gao Xiang
2019-06-20 16:07 ` [PATCH v2 3/8] staging: erofs: move per-CPU buffers implementation to utils.c Gao Xiang
2019-06-21  7:57   ` Chao Yu
2019-06-21  8:32     ` Gao Xiang [this message]
2019-06-20 16:07 ` [PATCH v2 4/8] staging: erofs: move stagingpage operations to compress.h Gao Xiang
2019-06-21  8:04   ` Chao Yu
2019-06-20 16:07 ` [PATCH v2 5/8] staging: erofs: introduce generic decompression backend Gao Xiang
2019-06-21  9:46   ` Chao Yu
2019-06-21 10:42     ` Gao Xiang
2019-06-24  7:39       ` Chao Yu
2019-06-20 16:07 ` [PATCH v2 6/8] staging: erofs: introduce LZ4 decompression inplace Gao Xiang
2019-06-21  9:50   ` Chao Yu
2019-06-20 16:07 ` [PATCH v2 7/8] staging: erofs: switch to new decompression backend Gao Xiang
2019-06-21  9:51   ` Chao Yu
2019-06-20 16:07 ` [PATCH v2 8/8] staging: erofs: integrate decompression inplace Gao Xiang
2019-06-21  9:51   ` Chao Yu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=abe96e3d-cda7-e71e-68b1-9669fe2f2241@huawei.com \
    --to=gaoxiang25@huawei.com \
    --cc=chao@kernel.org \
    --cc=devel@driverdev.osuosl.org \
    --cc=fangwei1@huawei.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=linux-erofs@lists.ozlabs.org \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=miaoxie@huawei.com \
    --cc=weidu.du@huawei.com \
    --cc=yuchao0@huawei.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®