Received: by 2002:ac0:aa62:0:0:0:0:0 with SMTP id w31-v6csp298151ima; Wed, 24 Oct 2018 01:10:33 -0700 (PDT) X-Google-Smtp-Source: AJdET5cy99gkJ0AsNv2d9YfXLSMUBtfyZRxicFk2EelPWQ8sA1o8ScesjeIAT9CvVbJX76KhgnjN X-Received: by 2002:a17:902:9004:: with SMTP id a4-v6mr1589874plp.334.1540368633177; Wed, 24 Oct 2018 01:10:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540368633; cv=none; d=google.com; s=arc-20160816; b=rI4K2EXd5wC7uNDRkA8A349JSsV9CDO91V6VWQF98EdeuKvduM9zsIl7wFHdasWGUC SjlIucJUTviCA4+Pg0qgUzMRdnVurLZv3E+Mx9PvVaiVqdseyLqkbnPl08SUO4MszzjA jd95iv3F9J84UIm6s8SJvOyVTWiW6uzNGRST/D/P9tmAuDgsgNAV1Zvpzp8sOFy5uJQo NnXPKpVdp7S3gKai8e9COvE4YhsPnNKsIP4JNuNjp9/JVtiUXPBIxiJoG7/ppLUop4oh YOMPyxeV5zwZNM4SJOB7G2SlQhKtuA0I8//XB9h9ttSyHo4h48YZ23/Wj68sflmBJx3v ptig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=bWI23x0Fx4BSHga9874fkTwBDPAnqc9Nfrn1s6ehTgY=; b=vnzMe64bJw1YC24UQPlU9+QbbSlrJCkmYauj3qVzCUP3xLT+XxjFkiBPTAUjVDun+V XR3strtsIdmt8yNsJXT3f2bCNboK8skvKe63I0ke2ov1897bgeY/8wV+IkH4SWN+bDN9 JyGUxIqXDNjAqg3Obb8fBn8tzTzb+9MKhO63yMW1hXKYLvv6X/CVVdW05khUMIe5rI+7 paWtEW0S9Id1hFuZ+GEM/7LLC2VlCXH9MX/E0QyLiIi2jEfuqvt5RZebitMW9m9ma4XD MdjLvSjY5qc9OkpchSoC6lzoDNTfOflM3ic4uP3XKwqpa0unBQBqK5bQjjB7ZJEJd/fx pz7g== 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 z7-v6si3914106pgc.343.2018.10.24.01.10.17; Wed, 24 Oct 2018 01:10:33 -0700 (PDT) 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 S1727654AbeJXQg6 (ORCPT + 99 others); Wed, 24 Oct 2018 12:36:58 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:14113 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727465AbeJXQg6 (ORCPT ); Wed, 24 Oct 2018 12:36:58 -0400 Received: from DGGEMS411-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 825EF126A089E; Wed, 24 Oct 2018 16:09:52 +0800 (CST) Received: from huawei.com (10.113.189.234) by DGGEMS411-HUB.china.huawei.com (10.3.19.211) with Microsoft SMTP Server id 14.3.408.0; Wed, 24 Oct 2018 16:09:47 +0800 From: Yunlong Song To: , , , , CC: , , , , , Subject: [PATCH] f2fs: remove codes of unused wio_mutex Date: Wed, 24 Oct 2018 16:09:42 +0800 Message-ID: <1540368582-14312-1-git-send-email-yunlong.song@huawei.com> X-Mailer: git-send-email 1.8.5.2 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 Signed-off-by: Yunlong Song --- fs/f2fs/f2fs.h | 1 - fs/f2fs/super.c | 5 +---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/fs/f2fs/f2fs.h b/fs/f2fs/f2fs.h index 56204a8..4dfa28d 100644 --- a/fs/f2fs/f2fs.h +++ b/fs/f2fs/f2fs.h @@ -1170,7 +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; 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