Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp825412pxb; Thu, 2 Sep 2021 16:25:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxKEKI3eylvIfPtAKAt2b+l+q2+wT5VukYWE/txnPP12/cdwe8IfouBF9mSgxPYHCCKKoiU X-Received: by 2002:a50:9e0f:: with SMTP id z15mr842828ede.40.1630625159712; Thu, 02 Sep 2021 16:25:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630625159; cv=none; d=google.com; s=arc-20160816; b=wh/PP8YO98C4Tskn7nXE4OSJykymTGdqFNqlJCdW4rNm/x6T75Um1Ky2YtlcL23MHB FMq1oNSF8bDoduyM/ke8EMkHshc/YTh1GX3xXfx+zWLPOK3GArHi4ctb9YqOxCZDatwR HbEttDHAf2EsCf0X5aZzeeQE7nKNvkFyODGmXibs61UYb4s6y5hf1i7elQmW81H3bKeM sOMmU1qa6Qg37d13wq1CklNI1u+9sq/wUH2e49nKt43UfdRLcohLjIYX9G2s9NfMuGI4 MS+O14Wd/nJhEcREHQy3AnghawjxDfhtY5G7SLZwREPC1Efq1Wz8rInqd/uW69bFhQ83 Jkdw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=N81l6JSl5HrQRRFYRHfoanvKhqvlMgSfXCXeShGc/3U=; b=vgmaYD5RDaQIJFIeXmwfp//kZGjqGZbXFRFUVPnyTrHRXEZPe2M+w8CaNsd6mYeGoG jmThYYPHOcYfBa9lXbAwWCaSAYxVV0dktYBUSp4y2jeSLdWRKx7LfHOsg8M2EDsSKPEl 0DKbmzrmuK6I+N0JmS0uBoXrKeoqV0BlfMqMs7B2Jm5fFuNqQEwFeHt5PHF9EIBhb2WU lK7TontI6j83dSzAocBhskYWRD/EXLo7BuX8qtNTE7CQ1weJwn0sadtrQfGLAXQKglN+ 0GjqH9NoEY0+f99EJC3f8FuvrlY8MobvMphNjrHbK0ApDOa7jPmk+a4VEYkSCPMuxALU hA7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=s+jwjSCy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id aq7si3336392ejc.75.2021.09.02.16.25.36; Thu, 02 Sep 2021 16:25:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=s+jwjSCy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1345432AbhIBOPg (ORCPT + 99 others); Thu, 2 Sep 2021 10:15:36 -0400 Received: from mail.kernel.org ([198.145.29.99]:39848 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345380AbhIBOPf (ORCPT ); Thu, 2 Sep 2021 10:15:35 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 2A65661057; Thu, 2 Sep 2021 14:14:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1630592077; bh=DVAsHIsJD7iFHpLVGXizimiu/8do/vccItG0f7F+Iys=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=s+jwjSCy2dFMjEkXniOZnpqcviUIxHmjT+b50QoEHKXFvk6/J9VEG6GZaBGo+EWkw Gn+tw8y+DdlUGLrD99+wLQ9K1CmPDW3q/a8jWt4e9dN+ApKMWkG7B2ElGbQy4pmzTm kbCX+BaioAtZtrLNijSzmUwa3ojoQ0RNRzVUP2ukkzd9r1dSQ1faLqAtlSVKwVxGBG 5DpnchAqUANnzQAjYyP/jsTH5+x+mX5WhS+NXI0DtTeeuciEfDIkhTy8PzPqWlQypx Yc8PeWDY0EUsCeL4ANav3JXAIzjmCaXEown9VqEDIAU7YZ8ltDmbMJQ/cYOP8dI7D1 7pSnPhdofv9YQ== Subject: Re: [f2fs-dev] [PATCH v3] f2fs: introduce fragment allocation mode mount option To: Daeho Jeong Cc: linux-kernel@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net, kernel-team@android.com, Daeho Jeong References: <20210831051037.3108944-1-daeho43@gmail.com> <33e7e327-5318-e30f-4419-42497fe90b31@kernel.org> From: Chao Yu Message-ID: <04c6fb07-0e56-bfda-44b2-8fcb4a9fe72a@kernel.org> Date: Thu, 2 Sep 2021 22:14:33 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2021/9/1 23:17, Daeho Jeong wrote: >> >> if (F2FS_OPTION(sbi).fs_mode == FS_MODE_FRAGMENT_SEG)? >> >> It needs to randomize position of next segment only in fragment_seg mode? IIRC. >> > > I want the randomness of segment allocation in fragment:*_block mode > to simulate real filesystem fragmentation. > How about just using fragment:rand_block for the simulation. I mean we > can use segment randomness for fragment:segment and > fragment:rand_block. Okay, so it needs to describe that fragment:rand_block option has implicitly enables fragment:segment option in document? >