Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp21231291ybl; Mon, 6 Jan 2020 00:03:15 -0800 (PST) X-Google-Smtp-Source: APXvYqz/Yz2hQZL0WFTFkPXDWc+wHY4cFt667x6fWHimWqoOctog/OSzQVwZ/DOX4r7uIW2ztIEN X-Received: by 2002:a9d:6c55:: with SMTP id g21mr13899375otq.312.1578297795730; Mon, 06 Jan 2020 00:03:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578297795; cv=none; d=google.com; s=arc-20160816; b=TA62hAlMsPcocWI1GjccK5EIHEktIojJD17LBL6qgFCOljhzAEC0zFmHthcpKldVv5 5OyoP5e1HN/mnl8fHavk9V2UPEWl3sg1wvdgGQftQnvARp9UKBn3spIGn80Nbhwfh8Ta G54o3ojBu7hHXAgoGiQRz0c8rzj7t37+6Fh9z9eFE1h5jg/PY7W5lwm3jr4E4rU1B2FH Uro6vylxNT/ALZaJ87D5txPQQ+z6rtmRJH2FHV8KspqGLa+tdtm02NhPOuuFTQAr+E8W H8cClFEPaAfFCywgzw0/mnOUnTD/wDAgJrtVUKj1Y+QhjiLCHlK/XX/9ErW5GMYq/4Af 5Riw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=FwYlepXhhR+20dRVaS+AH/tnWYbawETSy4VVRZSPPys=; b=BM565I8endV17R9uc8Vb6Zckm2/z9ySuqRVRDKIKCttE7Ux6En9BQd46zoLuQkuVEy XdLlZ4Adt7m01pcjGBXsrdHlSYpGK1Xo0+KnoK2RJFnaUJJDuPJsZ4TSXkbmm9ozmLlG 30sUBM2bhN3wYKQo/19R0hd9zZpyqnd0DgK6rM4v0PBvoz8ngQEWVw3w0bzewy/zJIC9 FD6oJApcDL1K7Z5YLyt0ibqmTqpbpup0PjfBWyoA1mDj2ccZoFO8ZswgjHpqD8Ady4+B EQOkdDH9j932E8VIWXpXYykJ/uQvfBobyxO7SnZjdrvQlhzQHAld04qjMLZI/Xz9oH4B pZTQ== 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 k21si29748662otr.1.2020.01.06.00.03.03; Mon, 06 Jan 2020 00:03:15 -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 S1726373AbgAFIB6 (ORCPT + 99 others); Mon, 6 Jan 2020 03:01:58 -0500 Received: from szxga06-in.huawei.com ([45.249.212.32]:42252 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726290AbgAFIB6 (ORCPT ); Mon, 6 Jan 2020 03:01:58 -0500 Received: from DGGEMS401-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id DE27F63262B5E8685A10; Mon, 6 Jan 2020 16:01:55 +0800 (CST) Received: from szvp000203569.huawei.com (10.120.216.130) by DGGEMS401-HUB.china.huawei.com (10.3.19.201) with Microsoft SMTP Server id 14.3.439.0; Mon, 6 Jan 2020 16:01:47 +0800 From: Chao Yu To: CC: , , , Chao Yu Subject: [PATCH 2/4] f2fs: compress: revert error path fix Date: Mon, 6 Jan 2020 16:01:42 +0800 Message-ID: <20200106080144.52363-2-yuchao0@huawei.com> X-Mailer: git-send-email 2.18.0.rc1 In-Reply-To: <20200106080144.52363-1-yuchao0@huawei.com> References: <20200106080144.52363-1-yuchao0@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.120.216.130] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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