Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1413637imu; Tue, 11 Dec 2018 19:52:11 -0800 (PST) X-Google-Smtp-Source: AFSGD/WcfEvh1pmtXlVw/LxvApjF0ZE4+n4WpoRFawO2ywWvEzwhq8F8k7OvTfCEW+uCo3ADsxHk X-Received: by 2002:a63:193:: with SMTP id 141mr17054050pgb.136.1544586731572; Tue, 11 Dec 2018 19:52:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544586731; cv=none; d=google.com; s=arc-20160816; b=fzf6RTFY0X24qry5FwNOQCHa1jqjawglMqqxa1EClvpt89vvtV55tp72EhB48qGYY3 SXIrBmT/JsV+yA+C2vjEBVm639uyk4+/X8op/xtkZuVop1nKokc1N9JDqfBfXiPez5Le Cyrsf4khM0Hz88BdiJR3CCmet2rdS/WcZFP7Bf17q2QQqd3X+VIKn2VX/6SWhi5rDjen I19Meazlm6zsLX4hEWBgfoiypuuHZhw5dEqsaz+4UYoXqCknsKLbmUJnFEHMSXYY1DR+ rmoiF8BsTuG7+XPcMcrsSqUELGbQjlDClvZMil5TPSvHEVY/FcyGwroFq1Lca/IkEile kfuw== 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=FNIytxQ4H0Bd/gym1eGZqZhtbHHfaKrS1KNIgcapBlQ=; b=RU1BCdoljV1zmtOYcnEha4fTCPPieWzbtro5qHuLtH8Cwf3buCfzhv38VA5lkp5MMn I4TdynXDqILOpys9PJyla6ybdltw3+IkQ67Pot3Zc06y7O6CJpC67rmQEF4VqTRytUKx 5gPM8mSaFMWdJOl53e/YvDURxrDwRl9mXYcCdfMaMclAop3Gkkx1DLA6Ct3EhAWcwSxi N6/t8gn/2xPeRQjB+PRPdYgYr1i/P2absvSpJUUbobCoksvLor+5ObqCihiagSizGkNn UcYwaGOLgRei280eQhIJFM4Abi34byr13utadXfBOxH81E7e3wpxG0ahz3NUfXDQmITo tjSQ== 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 u129si14843574pfu.117.2018.12.11.19.51.31; Tue, 11 Dec 2018 19:52:11 -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 S1726298AbeLLDuf (ORCPT + 99 others); Tue, 11 Dec 2018 22:50:35 -0500 Received: from szxga07-in.huawei.com ([45.249.212.35]:52120 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726218AbeLLDuf (ORCPT ); Tue, 11 Dec 2018 22:50:35 -0500 Received: from DGGEMS413-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id B322043946855; Wed, 12 Dec 2018 11:50:30 +0800 (CST) Received: from huawei.com (10.113.189.234) by DGGEMS413-HUB.china.huawei.com (10.3.19.213) with Microsoft SMTP Server id 14.3.408.0; Wed, 12 Dec 2018 11:50:26 +0800 From: Yunlong Song To: , , , , CC: , , , , , Subject: [PATCH v2] f2fs: remove codes of unused wio_mutex Date: Wed, 12 Dec 2018 11:50:20 +0800 Message-ID: <1544586620-124300-1-git-send-email-yunlong.song@huawei.com> X-Mailer: git-send-email 1.8.5.2 In-Reply-To: <1540368582-14312-1-git-send-email-yunlong.song@huawei.com> References: <1540368582-14312-1-git-send-email-yunlong.song@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.113.189.234] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org v1->v2: delete comments in f2fs.h: "/* bio ordering for NODE/DATA */" Signed-off-by: Yunlong Song Reviewed-by: Chao Yu Signed-off-by: Jaegeuk Kim --- fs/f2fs/f2fs.h | 2 -- fs/f2fs/super.c | 5 +---- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/fs/f2fs/f2fs.h b/fs/f2fs/f2fs.h index 1e03197..195850e 100644 --- a/fs/f2fs/f2fs.h +++ b/fs/f2fs/f2fs.h @@ -1170,8 +1170,6 @@ struct f2fs_sb_info { /* for bio operations */ struct f2fs_bio_info *write_io[NR_PAGE_TYPE]; /* for write bios */ - struct mutex wio_mutex[NR_PAGE_TYPE - 1][NR_TEMP_TYPE]; - /* bio ordering for NODE/DATA */ /* keep migration IO order for LFS mode */ struct rw_semaphore io_order_lock; mempool_t *write_io_dummy; /* Dummy pages */ diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c index af58b2c..2d18de5 100644 --- a/fs/f2fs/super.c +++ b/fs/f2fs/super.c @@ -2674,7 +2674,7 @@ int f2fs_sanity_check_ckpt(struct f2fs_sb_info *sbi) static void init_sb_info(struct f2fs_sb_info *sbi) { struct f2fs_super_block *raw_super = sbi->raw_super; - int i, j; + int i; sbi->log_sectors_per_block = le32_to_cpu(raw_super->log_sectors_per_block); @@ -2710,9 +2710,6 @@ static void init_sb_info(struct f2fs_sb_info *sbi) INIT_LIST_HEAD(&sbi->s_list); mutex_init(&sbi->umount_mutex); - for (i = 0; i < NR_PAGE_TYPE - 1; i++) - for (j = HOT; j < NR_TEMP_TYPE; j++) - mutex_init(&sbi->wio_mutex[i][j]); init_rwsem(&sbi->io_order_lock); spin_lock_init(&sbi->cp_lock); -- 1.8.5.2