From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.8 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id BF4CAC4361B for ; Fri, 18 Dec 2020 16:18:30 +0000 (UTC) Received: from lists.sourceforge.net (lists.sourceforge.net [216.105.38.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 6FAA623B70; Fri, 18 Dec 2020 16:18:30 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 6FAA623B70 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=linux-f2fs-devel-bounces@lists.sourceforge.net Received: from [127.0.0.1] (helo=sfs-ml-1.v29.lw.sourceforge.com) by sfs-ml-1.v29.lw.sourceforge.com with esmtp (Exim 4.90_1) (envelope-from ) id 1kqISb-0001e6-UX; Fri, 18 Dec 2020 16:18:29 +0000 Received: from [172.30.20.202] (helo=mx.sourceforge.net) by sfs-ml-1.v29.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kqIRz-0001ZC-Lr for linux-f2fs-devel@lists.sourceforge.net; Fri, 18 Dec 2020 16:17:51 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sourceforge.net; s=x; h=Content-Transfer-Encoding:MIME-Version:References: In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=quP+czEOAJSN581ibiN+saAlyOrsdEnJ9LjaDNg9uhw=; b=eCtzEWhQKVXgVWklsdYYPSyDIN DfRBSHSRQr+Qf5D3Ah8vM5IGVyInxnUkuRXe5/oPYkBzDaHlIORfYrZHBTeV2MvtcIzb4Snnfc4Vx VgFuFV7ijsKH4Y/lTnXhtTHPAzVodfz1zA9SzVQSN5warxOBYz6ygwMmT6BSxvGDo380=; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x ; h=Content-Transfer-Encoding:MIME-Version:References:In-Reply-To:Message-Id: Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=quP+czEOAJSN581ibiN+saAlyOrsdEnJ9LjaDNg9uhw=; b=N7wV8teGSj1OK87agxUKQWiysh qsVawHrGuR+FMQQDSjNTiLrJRVA+keF+fyn45QirCNInXdUd9uL1alNlxCCjG+pneQ1cmyVGLiT9h oXz2aVctsDqDCRKHpo00tPSKvcRQ3u5y91i/kbpQ4jrLXuh/UG+7m6uqAlOk/rjm5L8c=; Received: from mail.kernel.org ([198.145.29.99]) by sfi-mx-1.v28.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92.2) id 1kqIRp-001bG6-PC for linux-f2fs-devel@lists.sourceforge.net; Fri, 18 Dec 2020 16:17:50 +0000 From: Jaegeuk Kim Authentication-Results: mail.kernel.org; dkim=permerror (bad message/signature format) To: linux-f2fs-devel@lists.sourceforge.net Date: Fri, 18 Dec 2020 08:17:08 -0800 Message-Id: <20201218161708.927900-3-jaegeuk@kernel.org> X-Mailer: git-send-email 2.29.2.729.g45daf8777d-goog In-Reply-To: <20201218161708.927900-1-jaegeuk@kernel.org> References: <20201218161708.927900-1-jaegeuk@kernel.org> MIME-Version: 1.0 X-Headers-End: 1kqIRp-001bG6-PC Subject: [f2fs-dev] [PATCH 3/3] mkfs.f2fs: allocate zones together to avoid random access X-BeenThere: linux-f2fs-devel@lists.sourceforge.net X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Jaegeuk Kim Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: linux-f2fs-devel-bounces@lists.sourceforge.net This patch allocates zones to initial logs together, if it's on zoned device. Signed-off-by: Jaegeuk Kim --- mkfs/f2fs_format.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/mkfs/f2fs_format.c b/mkfs/f2fs_format.c index f60dcc029d58..b4bec92a24d9 100644 --- a/mkfs/f2fs_format.c +++ b/mkfs/f2fs_format.c @@ -510,6 +510,13 @@ static int f2fs_prepare_super_block(void) c.cur_seg[CURSEG_HOT_DATA] = prev_zone(CURSEG_COLD_NODE); c.cur_seg[CURSEG_COLD_DATA] = 0; c.cur_seg[CURSEG_WARM_DATA] = next_zone(CURSEG_COLD_DATA); + } else if (c.zoned_mode) { + c.cur_seg[CURSEG_HOT_NODE] = 0; + c.cur_seg[CURSEG_WARM_NODE] = next_zone(CURSEG_HOT_NODE); + c.cur_seg[CURSEG_COLD_NODE] = next_zone(CURSEG_WARM_NODE); + c.cur_seg[CURSEG_HOT_DATA] = next_zone(CURSEG_COLD_NODE); + c.cur_seg[CURSEG_WARM_DATA] = next_zone(CURSEG_HOT_DATA); + c.cur_seg[CURSEG_COLD_DATA] = next_zone(CURSEG_WARM_DATA); } else { c.cur_seg[CURSEG_HOT_NODE] = 0; c.cur_seg[CURSEG_WARM_NODE] = next_zone(CURSEG_HOT_NODE); -- 2.29.2.729.g45daf8777d-goog _______________________________________________ Linux-f2fs-devel mailing list Linux-f2fs-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel