Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp1014896pxb; Wed, 1 Sep 2021 15:19:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwX7tpdd4K2isHfGBbbxzCR9ckiSE6sSLIz1GMctTSjP+pLIxcIqzJ0kzwV6Jy90YvN2rgH X-Received: by 2002:a17:906:a3d2:: with SMTP id ca18mr129698ejb.10.1630534792428; Wed, 01 Sep 2021 15:19:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630534792; cv=none; d=google.com; s=arc-20160816; b=CXAsuKW0jfhxuw/5nDohLPmCQqpqLhPdy+R4tUz/qvGqRe+yjkZwDPlLFBeA7d6uOZ MuqC6muNFjclrt6J8gfRkmPlUIEPP/CdX/Xt7nUnxIJm/sLSLF2gtKvOZOo3HuCoTVTM gmXLEKWa4o3Ml8uFFE6zYEaTSfXBb+/h26GNOQhDAwFTnYtEfhcZGZr/9fA1g4198fQn hnHwnaxbWsgAfhCuqQPa09Fu4T5A/ETdsV9oHT4Mc9mc+lhnfpD8sC7fURBpSf1mepn4 Yu9RQOI2PQGS0DhTjtvfrVYL0OgApvN5+RSPOWThT2yo1pDbhpGvoqVZL91iYWqhd8KZ tcNQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=/GGmOUmP/HWfyFYlF4fSiVjkuTnkEVuMct1cxrvUQZ4=; b=tdK8ZfVHn4Oyf8HT4WU8Z/6yLziEvuN175K5Q7hsN+q84b5OvGVz7NJvfhEiIu5kdP mC3g9tp1AmMVagZ9EzhPwa1v0UCMyQ/DPvqOxqDhSj7kenOXfhBfsDS8XjQsokg7XO25 Ql/0xS5czRch80lcg77vwXwWT44cYotx5AQiR+9e0z8GwxaH1D8vF7i9WWUUk+4HJJjm AY2cDdV6ik1LdlXD429SrrE/bKz3uyJ2ppimWCbCXPzoBoEiQSdBi9QaveVhHh4geUxH NmIp9t+J9Lky78pXyucq622Xivm9U4hLhkRbigaRx9NyaifaKZdjh7zMjjC2d2UlCP2s 2waA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=NmEmdHPJ; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id jr12si1053569ejb.335.2021.09.01.15.19.29; Wed, 01 Sep 2021 15:19:52 -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=@gmail.com header.s=20210112 header.b=NmEmdHPJ; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343577AbhIAPSe (ORCPT + 99 others); Wed, 1 Sep 2021 11:18:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40510 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233464AbhIAPSc (ORCPT ); Wed, 1 Sep 2021 11:18:32 -0400 Received: from mail-lj1-x236.google.com (mail-lj1-x236.google.com [IPv6:2a00:1450:4864:20::236]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5D629C061575 for ; Wed, 1 Sep 2021 08:17:35 -0700 (PDT) Received: by mail-lj1-x236.google.com with SMTP id s12so5679611ljg.0 for ; Wed, 01 Sep 2021 08:17:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=/GGmOUmP/HWfyFYlF4fSiVjkuTnkEVuMct1cxrvUQZ4=; b=NmEmdHPJEhOBweZo8F+2InfFyID4brlXdOBGB3F9Wn66QGiotlqQzBoHBUKcN9nDjm 2hWvPwkxOX6dU3PFew4NiENqTCTuHwkE4DzRlNjuidyLBg7iepn6TGXAMlOv9FfcLAdA XRKAnrDf3ChNzZSUNf+uhaY7tmRlLTOYa7KhpAaESisk/daem0ShsCimR1i+yJT8m3H/ s2h3JvJH2wL94PIZ+NMDmB/G1xsym0azMewbFd/wUac7nLlkJftlS4G6q4WbfT10JOpX WutEwH912hhtBRuWN7Bt78ZsZwmH5MjKL6iD3oGkz46yq9EqcAgbrKRQmNrtlmfr6VRW fF5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=/GGmOUmP/HWfyFYlF4fSiVjkuTnkEVuMct1cxrvUQZ4=; b=dcKJnZRQX+qcaZ3DQitb9B4Su5O1D5/8kgXd4V73K3G/Tsr1KapBUT0xdgiHFnjNBl /HmU6GbIdSoP81zuK/XYR31nwxvFTw0P3qVoaqujV4YQ7rhR3tKRnWEHoBXq7HWWnVmt 7C/3krl///mKHKqMnuGIQu0UswivZF4ZCJjhBI1MzizG6lb6Sydbfbl4aRVe5asodT+y 3v4TrDMbh7O9B8u+Wu642bVvw++5JUfcfEML8HZMDN0Lkjz/aW4WR4JNhCV56EngaKEt AFtCBj+fza6TR5L6nryHC2h4pBiG8NTFRW0XKAvUazvDaVnqADDO1skB04Z1mKE63JEi dLGA== X-Gm-Message-State: AOAM531KNCkqTycQPYcmlgxXC2rjBWO1kgm4tYlXXKPcRVQ6LQzKxOvP X16fXLPb2ILEifmRcMGvqarENDhr8X+n9ZEByMM= X-Received: by 2002:a2e:9296:: with SMTP id d22mr110958ljh.413.1630509453492; Wed, 01 Sep 2021 08:17:33 -0700 (PDT) MIME-Version: 1.0 References: <20210831051037.3108944-1-daeho43@gmail.com> <33e7e327-5318-e30f-4419-42497fe90b31@kernel.org> In-Reply-To: <33e7e327-5318-e30f-4419-42497fe90b31@kernel.org> From: Daeho Jeong Date: Wed, 1 Sep 2021 08:17:21 -0700 Message-ID: Subject: Re: [f2fs-dev] [PATCH v3] f2fs: introduce fragment allocation mode mount option To: Chao Yu Cc: linux-kernel@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net, kernel-team@android.com, Daeho Jeong Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > > 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.