Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp21797847ybl; Mon, 6 Jan 2020 11:27:43 -0800 (PST) X-Google-Smtp-Source: APXvYqyoVLPrebSfKm2S318DLGjyjlVG8Xw9trdmsVzfkNibjlu4hUoGR+uEMqj0kiY1YMhhnhR8 X-Received: by 2002:aca:c386:: with SMTP id t128mr6404773oif.32.1578338863291; Mon, 06 Jan 2020 11:27:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578338863; cv=none; d=google.com; s=arc-20160816; b=tqIOpKaOjnzxFaZ422ArwoNWKTDWTco1U6JTFuXxl7iLIC6jfADz72sD9CJqSiLTyr ZhuId1jlw4mwc6a9keCyCJxyv2xvakEbDd518JFabnDySuXWgHSm2x563mu3sqiW7ITF M2nN3VIkwsf/8heNj3jJkRkKPpNS4NQHBIWKxaPNxoCYHEWdSm9eslbVwgFaUWhz+Wqe P9Vm0DXhHk9i1GIMaCgSI+ESFDY9r7pT6dMEgrdxWnqrYVLXICRo4ynsMXt6Nyt+b3vL Pw6dqngsAG2YkoZzvxhLPv4Kuv5carm+YOa9cArw+MYOITh5KLt0M+InNv0krqefL15F nOlA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=GO0UzBoLhk3X6zPIIyPoFsmhqx78YbnC1/SO0j/SCM0=; b=iP1PEKJ9uMh+4S+FNbayde+WftoQqbcKsiZ2AHNbKKjDV/vyqu3l0w8I8XOumbiC5J Wr8/Z+dzLlh5N4+gY/nuHe3rVSShwjLdkiYmVPrJmnyygEA4PnQma7ihCW5CIdNujoXh DT3JZdaXFiYaewPB5EoLoAbW3w2JU91XhMm6EjObqBuGXmFMW8bt/iw6qN7LHIRCu8er UOKbe3ysVgpOxKZJ8nYBq8ffelV4aU+9TcKhUq/6dSxEXIu5d63+b4jFhxKTAMcY3XHg jKWUVU34wkrSDy6M2mZPrOsR77kaQikZorqmsWvsLXI3YAMqVUvSi7Mt6NQnSzmZh49+ 1Zvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=AF9AnPuV; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b137si35625834oii.63.2020.01.06.11.27.30; Mon, 06 Jan 2020 11:27:43 -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; dkim=pass header.i=@kernel.org header.s=default header.b=AF9AnPuV; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726739AbgAFT0d (ORCPT + 99 others); Mon, 6 Jan 2020 14:26:33 -0500 Received: from mail.kernel.org ([198.145.29.99]:45414 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726569AbgAFT0d (ORCPT ); Mon, 6 Jan 2020 14:26:33 -0500 Received: from localhost (unknown [104.132.0.81]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id B1921207FD; Mon, 6 Jan 2020 19:26:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1578338792; bh=VqTyU2RlTLgSzL+Ruz0hd8I1VqsH4XlXPDI9GzRjKhM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=AF9AnPuV6xe29dgVNaLfENYinKREP1vSQDAaZWjLgGFPhSoqUnN0bhj+HJ5afJxrS WZfDIS4wgMj2ume86S5efZdD+t929q+QSrFDG7mCvvm5EZxDesnrbib/PBNaPbB1e5 uLFXiybTwHT11AS9w6i6oeREiY8YwQTejY6xI0Bw= Date: Mon, 6 Jan 2020 11:26:31 -0800 From: Jaegeuk Kim To: Chao Yu Cc: linux-f2fs-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org, chao@kernel.org Subject: Re: [PATCH 2/4] f2fs: compress: revert error path fix Message-ID: <20200106192631.GF50058@jaegeuk-macbookpro.roam.corp.google.com> References: <20200106080144.52363-1-yuchao0@huawei.com> <20200106080144.52363-2-yuchao0@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200106080144.52363-2-yuchao0@huawei.com> User-Agent: Mutt/1.8.2 (2017-04-18) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Chao, Could you please check this out? https://github.com/jaegeuk/f2fs/commits/g-dev-test 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