Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp3810527pxu; Wed, 9 Dec 2020 00:45:56 -0800 (PST) X-Google-Smtp-Source: ABdhPJxv78wfx/zL9pAmEbKqkaRX2FTl+hpEUHIXj2gGTj/k/w7SVKY6mRuJ3G0ZTb9iZEenydAD X-Received: by 2002:a05:6402:1a2f:: with SMTP id be15mr1006187edb.209.1607503556139; Wed, 09 Dec 2020 00:45:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607503556; cv=none; d=google.com; s=arc-20160816; b=F5PDj4JuRlNww7YeyZnqDOUuh0zXCu/NP9w8w6Hr3s+C3E1uZTX3zSAcT34z1ijVn6 zvcePV+i+73ySSnBsdK1tv8KGuFwFkKYV94sgKBcQieLh17c19ohlfCVxt6UK23XqPFk aQ2TZXacfm6jLBnSj+zhIOMyRqG5fYJkmxMZGklRK+/QzPG8+JDUSqEA4GsXdkr8roo6 rHBDzlzU7WALWSUygkiQGJwIDro3mtaUMKYM512y/6rRmm97LoYL9v4qtq1yyGlS1mFf jwXje2xCRxJqBaeZUks7I5G39dBEEDMUbOUCrVFel450WuzR+PLjdnWXpNTXtwp7hKAc 73ZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:references:cc :to:from:subject; bh=9muWXIWigDMmV/icy4INHBzlQHFCw+63Mi2Af+3GDPM=; b=NdPIkO1m1U4yaMzRJ/nLiWQ6BMH48uuVnpasLpR/gjsr/9vo6mf9mAoCpjCLCe6ODf 7gGf/Vt18UeBPHFmszExVAqS40FH5oGNhjHKa/2YRAm40tDrATGV83JhaCp4Z1jFntgj hU2kDWiTjskITnyIF29z93bW/u/RYJmyGQV2cU6ddirfL676DrXTRtdTnjPh51IltxNa 5z0h5oxOQneInFjUitkhFCovC4j7FlzfkR49U2T2jNVSso0b2Tf6gHMatMKzhSuBYyxQ W4JanbIqFYXYWNE8WLQ507wbK9CTIaz/nab4uPIx1npSHbQcg2LWbG0ICYT8OGagujxj 4YCQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c2si494463edu.115.2020.12.09.00.45.32; Wed, 09 Dec 2020 00:45:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728152AbgLIInC (ORCPT + 99 others); Wed, 9 Dec 2020 03:43:02 -0500 Received: from szxga05-in.huawei.com ([45.249.212.191]:9042 "EHLO szxga05-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726297AbgLIInC (ORCPT ); Wed, 9 Dec 2020 03:43:02 -0500 Received: from DGGEMS402-HUB.china.huawei.com (unknown [172.30.72.60]) by szxga05-in.huawei.com (SkyGuard) with ESMTP id 4CrVs82s3NzhpgZ; Wed, 9 Dec 2020 16:41:48 +0800 (CST) Received: from [10.136.114.67] (10.136.114.67) by smtp.huawei.com (10.3.19.202) with Microsoft SMTP Server (TLS) id 14.3.487.0; Wed, 9 Dec 2020 16:42:15 +0800 Subject: Re: [f2fs-dev] [PATCH v4] f2fs: compress: support chksum From: Chao Yu To: Jaegeuk Kim CC: , References: <20201208031437.56627-1-yuchao0@huawei.com> <22ac4df6-53ec-fb7c-c4dd-26435352a701@huawei.com> <37d89d34-add1-5254-380b-233ef7a460d4@huawei.com> <5398c880-d4d3-81b9-f3c9-765ba1470e96@huawei.com> <0d4a20ec-f6e4-ff24-8733-94cc3762195d@huawei.com> Message-ID: Date: Wed, 9 Dec 2020 16:42:14 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.136.114.67] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020/12/9 16:31, Chao Yu wrote: > On 2020/12/9 16:23, Jaegeuk Kim wrote: >> On 12/09, Chao Yu wrote: >>> On 2020/12/9 12:28, Chao Yu wrote: >>>> On 2020/12/9 11:54, Jaegeuk Kim wrote: >>>>> Ah, could you please write another patch to adjust the new changes? >>>> >>>> No problem, will drop "f2fs: compress:support chksum" based on your dev branch, and >>>> apply all compress related patches on top of dev branch. >>> >>> Jaegeuk, could you please >>> - drop "f2fs: compress:support chksum", >> >> What I mean is keeping the old version in dev branch as is, since it gives >> another conflicts when dropping it. That can add another bug at this point. >> Can I get a separate patch to fix any issues in that original patch? > > Oops... The diff is as below: From 1ad86c640d3a295292960f6b90802cc5a9be7a0d Mon Sep 17 00:00:00 2001 From: Chao Yu Date: Wed, 9 Dec 2020 16:36:58 +0800 Subject: [PATCH] fix_chksum Signed-off-by: Chao Yu --- fs/f2fs/compress.c | 3 +-- fs/f2fs/compress.h | 0 2 files changed, 1 insertion(+), 2 deletions(-) create mode 100644 fs/f2fs/compress.h diff --git a/fs/f2fs/compress.c b/fs/f2fs/compress.c index f05d409fd0ed..4bcbacfe3325 100644 --- a/fs/f2fs/compress.c +++ b/fs/f2fs/compress.c @@ -796,7 +796,7 @@ void f2fs_decompress_pages(struct bio *bio, struct page *page, bool verity) ret = cops->decompress_pages(dic); - if (!ret && fi->i_compress_flag & 1 << COMPRESS_CHKSUM) { + if (!ret && (fi->i_compress_flag & 1 << COMPRESS_CHKSUM)) { u32 provided = le32_to_cpu(dic->cbuf->chksum); u32 calculated = f2fs_crc32(sbi, dic->cbuf->cdata, dic->clen); @@ -809,7 +809,6 @@ void f2fs_decompress_pages(struct bio *bio, struct page *page, bool verity) provided, calculated); } set_sbi_flag(sbi, SBI_NEED_FSCK); - WARN_ON_ONCE(1); } } diff --git a/fs/f2fs/compress.h b/fs/f2fs/compress.h new file mode 100644 index 000000000000..e69de29bb2d1 -- 2.29.2 > > Thanks, > >> >>> - manually fix conflict when applying "f2fs: add compress_mode mount option" >>> - and then apply last my resent patches. >>> >>> Thanks, >> . >> > > > _______________________________________________ > Linux-f2fs-devel mailing list > Linux-f2fs-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel > . >