Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp5704668ybv; Tue, 18 Feb 2020 02:24:40 -0800 (PST) X-Google-Smtp-Source: APXvYqxwwKco5alSGaM9d0npDMDyjHll82tp/PdT+6bXrWJz4UfgSFbglp3QtVrGQ8bTJ//ydFLF X-Received: by 2002:a9d:7ad9:: with SMTP id m25mr14579090otn.13.1582021480508; Tue, 18 Feb 2020 02:24:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582021480; cv=none; d=google.com; s=arc-20160816; b=Nsw67cnTxAk/HVeDPRKvDctApBsUGjVWkukLu9Jw7xHZYjdfxsegxPrerO9fikr4g1 EJEMhXxPp2Dfzijd6XQOAPhwxMD6lNP0OK0CeoPrCLw5G8wDbjCpoq5XIkk76HGG8lGQ sbFzLZRgwKkO2T/mWI7BAVgQbMw0PESI7Z6ZrV1wbGU1nv/NUdLBEfkhVX8tT4Wxy231 +J52fClM6xhjOwXAdoFcjrw/RPtXzZdaFn3kNo1RTbja0zvs/830UtkUnDi0s7W7/Y/+ V4rJdRsGyIw7Cjs8hi8O80KnxSuzCrP7vem0LyrMNsIprAsMIa3K5WlXLXykTeCQsWI8 u0GQ== 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=w59j3vIX7OT2UFGUjYmhKaCJw84nfm1DE+MxYDDZ3vQ=; b=VlGgnsQ1EZbTSHxvlRBf3BhoamuFQ2bxZxB4PbMnSrjCkic7AGnr3xHDxI9fCGYKeG MCH/JkVfPYWqgRa79mnWbjrEYheDbn7X1wdj4JgVXsEqyzYCozDsy4u088+iM8p1geZU biynyMsrgqRwopLbT2tHnjDg33UEvzU+pmCnFydkHl23MYs+L5vuY6F2ubxXDjPBlqm1 qbdaBbNqh0ykMvelZ2tlXZLsliUhVdfDThY/fAG6Pa/jSKBZEgZnmPYUVPc7UuPNEgzK 9j0FAwIVIkcYSZbqnHbFaZGbZnjjjFZjjAmOuToLVDO3qdR+M27xqSKbo9TgsoegZXui B8Bg== 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 10si7634708ois.76.2020.02.18.02.24.28; Tue, 18 Feb 2020 02:24:40 -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 S1726567AbgBRKXA (ORCPT + 99 others); Tue, 18 Feb 2020 05:23:00 -0500 Received: from szxga07-in.huawei.com ([45.249.212.35]:40678 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726496AbgBRKXA (ORCPT ); Tue, 18 Feb 2020 05:23:00 -0500 Received: from DGGEMS404-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 84050E62389C5A75AAAA; Tue, 18 Feb 2020 18:22:35 +0800 (CST) Received: from szvp000203569.huawei.com (10.120.216.130) by DGGEMS404-HUB.china.huawei.com (10.3.19.204) with Microsoft SMTP Server id 14.3.439.0; Tue, 18 Feb 2020 18:22:29 +0800 From: Chao Yu To: CC: , , , Chao Yu Subject: [PATCH 3/3] f2fs: avoid unneeded barrier in do_checkpoint() Date: Tue, 18 Feb 2020 18:21:36 +0800 Message-ID: <20200218102136.32150-3-yuchao0@huawei.com> X-Mailer: git-send-email 2.18.0.rc1 In-Reply-To: <20200218102136.32150-1-yuchao0@huawei.com> References: <20200218102136.32150-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 We don't need to wait all dirty page submitting IO twice, remove unneeded wait step. Signed-off-by: Chao Yu --- fs/f2fs/checkpoint.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/fs/f2fs/checkpoint.c b/fs/f2fs/checkpoint.c index 751815cb4c2b..9c88fb3d255a 100644 --- a/fs/f2fs/checkpoint.c +++ b/fs/f2fs/checkpoint.c @@ -1384,8 +1384,6 @@ static int do_checkpoint(struct f2fs_sb_info *sbi, struct cp_control *cpc) /* Flush all the NAT/SIT pages */ f2fs_sync_meta_pages(sbi, META, LONG_MAX, FS_CP_META_IO); - /* Wait for all dirty meta pages to be submitted for IO */ - f2fs_wait_on_all_pages(sbi, F2FS_DIRTY_META); /* * modify checkpoint -- 2.18.0.rc1