Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp603497ybl; Wed, 8 Jan 2020 02:48:47 -0800 (PST) X-Google-Smtp-Source: APXvYqwxvkU92jTVg7nGq82ha83Nn+Ft5fXsLkiLQq4cYkHdncIXE+HJYU478v0hk7qzxSz56Ys+ X-Received: by 2002:a05:6830:128e:: with SMTP id z14mr3613439otp.184.1578480526979; Wed, 08 Jan 2020 02:48:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578480526; cv=none; d=google.com; s=arc-20160816; b=Nvuo6dwqsZAEGAxJi8L7CqFee3MPQ1mgmbpNEwBXwXp1Pce+Ah9SpAsRoWGzwOI0+g uRfKCP80lQ5GKCwGXwpDIq71QrTLb123R4NzCaYI4LH6weergF22RCWbE9ix4WHQKWX0 NUHCC+03iiXDq7UFsroGGwYkBrE0BOYdCcwcsmgSQug5ANcVI/1DKMwdDcZArXT8QMsf g8wZzMnw+R7rTyV/oZXMH4PlhJGacRA0HBHPKlmm3hpRiRN77wujZvhWXN2/Q/Q7qJAw IP90wv2Fs9hHi90IJNBCcMyMOl8QE2O1x+0KsBdRrvUOBO1KD+2ViO19IHLuqbCvhNV7 coIQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=q0l3R8tdx1r0gNB0Z/CGJ5LGn6dKJW6U29Pa7ovmZ6I=; b=qWmla3QezPx1Wg/RW5R9bq0DVjogL3ZFqqFhSUoat1cNBDwtgnofHpnyAKA7INfSgG bmNGQjB/LK9l7KZ94A4WbkeY0+2bW8KhyYLPj7oU+2mEeRlk255T3gMbg1/cAL9Gw9ac Ift9wQ2l/IplSiGNww5zuM56k/fGMsn7lIb8Lj6M01yZu9q8lUxvM1yYbuDDsBzHuZl0 BAiK2hvz2SlRWjFO3JPod8BJsHUnmxFM++Swe7p0NyLTaJa8WEcLjl4ZlJKDiSajTIMo CO/0dOWOUNhTB2iYz20rXO8CS75QYT4sSCig+Zx9k5bD7QeOqawNx0YxFBIQ7pB/9X9r 8F3Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i13si1517925otc.228.2020.01.08.02.48.35; Wed, 08 Jan 2020 02:48:46 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727644AbgAHJds (ORCPT + 99 others); Wed, 8 Jan 2020 04:33:48 -0500 Received: from szxga05-in.huawei.com ([45.249.212.191]:8241 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727224AbgAHJds (ORCPT ); Wed, 8 Jan 2020 04:33:48 -0500 Received: from DGGEMS413-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id E513B71813FFC5664CC6; Wed, 8 Jan 2020 17:33:45 +0800 (CST) Received: from [10.134.22.195] (10.134.22.195) by smtp.huawei.com (10.3.19.213) with Microsoft SMTP Server (TLS) id 14.3.439.0; Wed, 8 Jan 2020 17:33:41 +0800 Subject: Re: [PATCH 2/4] f2fs: compress: revert error path fix To: Jaegeuk Kim CC: , , References: <20200106080144.52363-1-yuchao0@huawei.com> <20200106080144.52363-2-yuchao0@huawei.com> <20200106192631.GF50058@jaegeuk-macbookpro.roam.corp.google.com> From: Chao Yu Message-ID: Date: Wed, 8 Jan 2020 17:33:40 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20200106192631.GF50058@jaegeuk-macbookpro.roam.corp.google.com> Content-Type: text/plain; charset="windows-1252" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.134.22.195] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020/1/7 3:26, Jaegeuk Kim wrote: > Hi Chao, > > Could you please check this out? > https://github.com/jaegeuk/f2fs/commits/g-dev-test Looks good to me, I add some minor comments on github. Any comments on below thread? Re: [f2fs-dev] [PATCH 3/4] f2fs: compress: fix error path in prepare_compress_overwrite() Thanks, > > Thanks, > > On 01/06, Chao Yu wrote: >> Revert incorrect fix in ("TEMP: f2fs: support data compression - fix1") >> >> Signed-off-by: Chao Yu >> --- >> fs/f2fs/compress.c | 6 +++--- >> 1 file changed, 3 insertions(+), 3 deletions(-) >> >> diff --git a/fs/f2fs/compress.c b/fs/f2fs/compress.c >> index f993b4ce1970..fc4510729654 100644 >> --- a/fs/f2fs/compress.c >> +++ b/fs/f2fs/compress.c >> @@ -601,7 +601,7 @@ static int prepare_compress_overwrite(struct compress_ctx *cc, >> fgp_flag, GFP_NOFS); >> if (!page) { >> ret = -ENOMEM; >> - goto release_pages; >> + goto unlock_pages; >> } >> >> if (PageUptodate(page)) >> @@ -616,13 +616,13 @@ static int prepare_compress_overwrite(struct compress_ctx *cc, >> ret = f2fs_read_multi_pages(cc, &bio, cc->cluster_size, >> &last_block_in_bio, false); >> if (ret) >> - goto unlock_pages; >> + goto release_pages; >> if (bio) >> f2fs_submit_bio(sbi, bio, DATA); >> >> ret = f2fs_init_compress_ctx(cc); >> if (ret) >> - goto unlock_pages; >> + goto release_pages; >> } >> >> for (i = 0; i < cc->cluster_size; i++) { >> -- >> 2.18.0.rc1 > . >