Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp105933pxb; Mon, 16 Aug 2021 00:44:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJySPlSsKe44ACgchUhHMV09Bp0McZmeFJL4k/+BVqqJz0tEPvXeLr//tYELrpdQmxAso4lv X-Received: by 2002:a5d:97cc:: with SMTP id k12mr11933445ios.4.1629099891157; Mon, 16 Aug 2021 00:44:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629099891; cv=none; d=google.com; s=arc-20160816; b=eNwmtTIOTGGZ7I9iY/QqL2oPAG0cMJqXPJcHRHi/w12Ux+fyjPf3p3nmbx38lkec7N klM73YdP5B9VdQQa4R8wghlkh7aOd4sUOtd99pzgEG/NeqCKEK0wdV0Us407j2BzBI+Z rMd6QczYEWtXxOOEmTL57x9IYmw7eJWBErvt4z4vQHZ7JqFfRX7+X/+b/KkV5tjL9qZt vfwhkBz3j4LvUaGs3RO+DRkEYreuK+RnAn39TGueI5hIdgC34y53X5ac9l0hO3FA0l4Z 7nz3oEhEhbHsAmjZTUxRRxxbOtliElC1OYpr9bGuiYPew3oJsrHh5/YFpsnzRAAguAy3 L9MQ== 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=s+63QJ05dtCVukhGva5F/UPrKhdv+C6Z4TSULz1aydM=; b=P7KEhWDY8W98FsvU2hDoAEFo9uUYch/opZYe2LmPc3cy+S8cuQT8/Up2uRGP8yHZTH Y8xG9Gz3RmQ6R0h/2sj6Y4prUqecO4hDBHzoAbzpjBcMK40SUIFWUhZ1HfqZJxbS2yK8 ZIZ+Plh6G9OBDVM1fcy1vBzkwnOinuTCBrRJYom+A5Uq34/QByzrSkkinVVgp18ktOth LdA+oF/Jm/kN/emXmKU0XrzFtYSkexW3i336VIv9YkY2SUyXHyHXrHc8yZ8/W4Y/F2y2 y3jV1r99JTDQ6RwMXOH/6yi7cmqC+GN29/s/hTOFXJFzvI6N80dhAnh8qjz6m9rk0Yn6 Tb/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=h8CnmTOX; 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 k17si7691747jao.14.2021.08.16.00.44.39; Mon, 16 Aug 2021 00:44:51 -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=h8CnmTOX; 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 S234423AbhHPHoL (ORCPT + 99 others); Mon, 16 Aug 2021 03:44:11 -0400 Received: from mail.kernel.org ([198.145.29.99]:47060 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234168AbhHPHoK (ORCPT ); Mon, 16 Aug 2021 03:44:10 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id BA1C761ACF; Mon, 16 Aug 2021 07:43:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1629099819; bh=U/7WQDfo/Qzy9+DjcIIAqHhrpYiE7FohGVxSzIJvDVo=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=h8CnmTOXZnIpGStqbefpN8NqUfXS02jg7aHR4K+eppyHbzr+9JN/t2BYf/EykzQQe zvQr0wbG/MTqFl3mXTzk5Z4ofW7x010aZFcYRoOfJvWWztgAm6e5Z2gAhoDOInhA/6 8SF6A9eA5QMGMs3QBPWL+MeRocZu4bX6UOR62fx/EUK/zvEa/MiXHa0rL3xUPzM+Nm o4419Beq4E4sVz7YDZ0CpAE4o0Y/OaD3Ij0Yf7ByapyFK3KkjjTFZDcST9skepALrR yc1T3dhg8CMVanxf/smyUOMzTMvD77u40/gK8mCQBKf7w64AfOwDT/0KsgwoFzHrLK 2KP3sM1FUyK+g== Subject: Re: [f2fs-dev] [PATCH v2] f2fs: introduce blk_alloc_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: <20210809185449.2565768-1-daeho43@gmail.com> <425daf77-8020-26ce-dc9f-019d9a881b78@kernel.org> <071534dd-cf10-38d3-b83b-c833f9c0a70a@kernel.org> From: Chao Yu Message-ID: <50bfbeee-e165-5bcf-1c47-a45ef8b36ebf@kernel.org> Date: Mon, 16 Aug 2021 15:43:36 +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/8/16 15:11, Daeho Jeong wrote: > I agree with you. But still I think "fragment" mode should work even > in low free space conditions. > Otherwise, it will be seeking the free blocks again and again like a busy loop. > Or we can change the block allocation way into adaptive mode under low > free space even staying in "fragment" mode. I think fallbacking to adaptive mode sounds good to me, so the condition of fallback may be there is no more free segments? Thanks, > > If we can handle this, we might use "fragment" mode for both > simulating after fragmentation and making the filesystem fragmented. >