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 2/8] staging: erofs: add compacted compression indexes support
Date: Fri, 21 Jun 2019 16:08:30 +0800	[thread overview]
Message-ID: <d04f83f7-9f01-e736-cc1b-8ee438e47d3c@huawei.com> (raw)
In-Reply-To: <4274208b-63bc-6dfd-a2c8-a94d2fa5c8d7@huawei.com>



On 2019/6/21 15:53, Chao Yu wrote:
> On 2019/6/21 0:07, Gao Xiang wrote:
>> This patch aims at compacted compression indexes:
>>  1) cleanup z_erofs_map_blocks_iter and move into zmap.c;
>>  2) add compacted 4/2B decoding support.
>>
>> On kirin980 platform, sequential read is increased about
>> 6% (725MiB/s -> 770MiB/s) on enwik9 dataset if compacted 2B
>> feature is enabled.
>>
>> Signed-off-by: Gao Xiang <gaoxiang25@huawei.com>
> 
> Reviewed-by: Chao Yu <yuchao0@huawei.com>
> 
>> +static int vle_legacy_load_cluster_from_disk(struct z_erofs_maprecorder *m,
>> +					     unsigned long lcn)
>> +{
>> +	struct inode *const inode = m->inode;
>> +	struct erofs_vnode *const vi = EROFS_V(inode);
>> +	const erofs_off_t ibase = iloc(EROFS_I_SB(inode), vi->nid);
>> +	const erofs_off_t pos = Z_EROFS_VLE_EXTENT_ALIGN(ibase +
>> +							 vi->inode_isize +
>> +							 vi->xattr_isize) +
>> +		16 + lcn * sizeof(struct z_erofs_vle_decompressed_index);
> 
> use macro instead of raw number?

OK, I will wrap it up in patch v3 too.

Thanks,
Gao Xiang

> 
> Thanks,
> 

  reply	other threads:[~2019-06-21  8:08 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 [this message]
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
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=d04f83f7-9f01-e736-cc1b-8ee438e47d3c@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®