Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp402079imu; Wed, 12 Dec 2018 19:53:58 -0800 (PST) X-Google-Smtp-Source: AFSGD/U4mfQBqCIkcqN7bbR/ShDAadXT3Y/QMfTT61LZRw3Xp0K/w0R0KXg35hJtmnHNBuB1DZhb X-Received: by 2002:a63:2d46:: with SMTP id t67mr21032477pgt.140.1544673238551; Wed, 12 Dec 2018 19:53:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544673238; cv=none; d=google.com; s=arc-20160816; b=s1ePxfjyrsLuTwnsznASxLNp6xdKyczigcnX8bOBweZFQ2+37wSy1b7lbiMSQgS3o5 x2hR0bHbkChNRyctKWFrMJLlYYQNcOVNr1j61EWNTEv+7Y3z6F6lNEbMS9RaPG7p4E75 pGabGm1bRaCyLzZHva6/ELTAXx6osJDSFMkLeCmQ4ZZwYHuq/vSmwydUmnUggIWCEU9m faFEH/k3WPOsjmhiAroe4tzwzGnzN7e3F2dT4AOO38N0EShRQcYRHEO901AoH0+pGzh4 4M1byHibmu5/uB4KoD3Yinncxwdr7ctbVJrqACKJnr18Wmz1cuts7zcvFnXWZf1PMpdr KSPw== 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=OYtbGcpOcoyLs9OUOpIpw4qWgZ7GT263VKGOHudE7zs=; b=AJFdv2wvIbRDYw6vlpFIw75PZG+sG2Tn6ShiPZQTw07Wk1xm4H6+EiGEcAvQ9Loc9E KhLpBfhHxPl5xAJdmnut/CLUTPPN8JASli5VHynqDGrV/cyxApWZtrMWUKjMOwY5//XX tzuPLSrUVv3sU0s3buFwwzeesr7gmZ2CgcO6c2J/XbF6K3cKAMkFZa9zLz/c51LMiw5X PUr+WmeSskjsBysGgcSdvpUkq04l8aFNzvz9bwrTlJCUTO4p/2CTIlafF0aHFEsWmAiu gCJ9UMJ0FaJ7tF5cyM1b190YhcYm0f3/hhz7KZX/VJxHlBkiKBxyJ9VMCo40dDWFTCXC cCZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=rw8OQ8yp; 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 k72si548740pge.310.2018.12.12.19.53.42; Wed, 12 Dec 2018 19:53:58 -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=rw8OQ8yp; 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 S1726883AbeLMDu6 (ORCPT + 99 others); Wed, 12 Dec 2018 22:50:58 -0500 Received: from mail.kernel.org ([198.145.29.99]:49042 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726453AbeLMDu5 (ORCPT ); Wed, 12 Dec 2018 22:50:57 -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 DA01320870; Thu, 13 Dec 2018 03:50:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1544673056; bh=ET6G0COmJhTaHrrkYOzyPIJqXpsPaTfQJBYNYMIEw/U=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=rw8OQ8ypttR4rIpeFVqVqOlw2t9qTq6yOIA7bZ+GZCrvZaDwlk+a2L7zVG/HPOmY0 kc4OmQI4w6l4fw+G7M5RzqMhPJn9UtL0yOQMVPpUAI9K/Jtr4Sm2LbE9/WYQLE6E5A aoP8BJpsQT0ABnZtWDwesT81ifQp29xUvLfKd1mM= Date: Wed, 12 Dec 2018 19:50:56 -0800 From: Jaegeuk Kim To: Yunlong Song Cc: chao@kernel.org, yuchao0@huawei.com, yunlong.song@icloud.com, miaoxie@huawei.com, bintian.wang@huawei.com, shengyong1@huawei.com, heyunlei@huawei.com, linux-f2fs-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] f2fs: remove codes of unused wio_mutex Message-ID: <20181213035056.GA33959@jaegeuk-macbookpro.roam.corp.google.com> References: <1540368582-14312-1-git-send-email-yunlong.song@huawei.com> <1544586620-124300-1-git-send-email-yunlong.song@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1544586620-124300-1-git-send-email-yunlong.song@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 On 12/12, Yunlong Song wrote: > v1->v2: delete comments in f2fs.h: "/* bio ordering for NODE/DATA */" It's quite late for me to rebase the repo. Could you please send another patch for this? > > 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