Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp89216pxb; Mon, 16 Aug 2021 00:12:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyElGALY3xfgebnotACnSUUEcC6unSLjyGkatnQOTKneMYks6X8MPy5bikmTQnPUiSEN90o X-Received: by 2002:a92:c702:: with SMTP id a2mr9376660ilp.210.1629097965471; Mon, 16 Aug 2021 00:12:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629097965; cv=none; d=google.com; s=arc-20160816; b=yPKYuq04eAaOx+O/ibzGp9sfvyWz7cNZxqCmtF0Uz0sIunLL6aIkyN7LgPsFjh2X+m 7cj+2y7JJCC2/iEvYnlV0g/QSAcIt0qQRGJ2KhZo6DVmG1kSN/09LaKQ9G/YBf74OS6A RYFh/BVT/uX/lvNAipPM12ocFaDKjEYqtI0Bzhu0Z9FuN/7eNH/QTirwTntnNB/j1KMH CaVYmzKbNwgDhWX+f0alcbefjxFhb3sUSo+ydfArRUGhokn6wk6J0NagDIm1dJO+obdE rpbD7yhsJSh0g65n/6eB93p/b7E09hBheFh/p0JIsqnDiac4DsysFbuin9ZEd39unAq9 gZHQ== 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=K1MP/CLQ5UxOhTtXkR4NWOKZQUDna/VXaqmZ5Y18D+Y=; b=xS+pWx+x1XMukpGHYObdhs2ofY3SkXHm3lNORd2OTe2tN9KaM6FGR/3k00j1YTV1pd P2yEMgB3E28Y3bVEGcdjVtU/sZoaXN/6Fdw9wj3E118pyEDBFSYMiR+rHNbum5JVI8fp KRX7RR6PD40rQQK1WuZhPCUhMQOxHOPiSYdw9Ntcyk9Ex+s17zam0zVLcubpvYVgbPKa RRmH7n1Snik1Js03SIQQ9/5BubUwsP10Okd2p0a9R1mh/xILC0QFBFYIafFdzEXHjVej pQbKcdAi1hXGIIi4kaxWVneSX8NBeSQWq2V2MhaV9bVMvFsMgqdyZJU0E6+lYQP9TXPp HiBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=dv4s8wYR; 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 r28si5941093jao.16.2021.08.16.00.12.33; Mon, 16 Aug 2021 00:12:45 -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=20161025 header.b=dv4s8wYR; 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 S233732AbhHPHL7 (ORCPT + 99 others); Mon, 16 Aug 2021 03:11:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47542 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233600AbhHPHL6 (ORCPT ); Mon, 16 Aug 2021 03:11:58 -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 010BCC061764 for ; Mon, 16 Aug 2021 00:11:27 -0700 (PDT) Received: by mail-lj1-x236.google.com with SMTP id d16so7537154ljq.4 for ; Mon, 16 Aug 2021 00:11:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=K1MP/CLQ5UxOhTtXkR4NWOKZQUDna/VXaqmZ5Y18D+Y=; b=dv4s8wYRv2UexG5fYe/L9LefRe2lJY2AlCbdse1UgIPHE5tFl4/+9gzjG1+20V78Y7 XFuieXknWYc1tLKwQXAjEVv8RK65X5Bx7FaNsk3UjQjpq09Z85GgcDa/pr0hg3Od1IkP LDHM3JNzHl/+mrYSlGA+TPbiptx+ajmIft7bM9Z4UvHqp5BUP6WzRSQvWXpcrgHK6Nw2 /JZ55NGMyfaG2OLnF/pE3tthDNGGbeTg+oLJULUAvNt5iR+KNZrmzUgfh9NPTeET5VG4 hhuXfsSwd9VG1coXJBUPPJoh/K7/pMYw0p4l736zMLNx5S2BrUZb+bRxIQe0D4/055Fu UNhA== 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=K1MP/CLQ5UxOhTtXkR4NWOKZQUDna/VXaqmZ5Y18D+Y=; b=I7Ls95QtD5iHXDX06PxWkfmQ3b1uXRTvNkCUvs9IgIR40dcrUVWWlOPFfM6KAQfbom 4XPAc5B9SFQp7JzgIxCNUiARSlRbgQB9OuDoiyWJOsgOx2yf840loFs5//lx8+h4aK10 imAJIK9Q5QrdliyfUCc3ImVNWaJz0j1/D5bApZRvnCfvnOi0S8AqfR6NI9hhgYsOUyc3 EuORFMGCBmdPlu6MUS4n69ChtqtbrvrDU4hhPIYfiuMkEYoTgTVHmMWi9sh+QLMH2vQK w8YEYNO4PYnwKixAxTyYrbjswpdtIT1KWDcP97G+n8PHhiME2jG7vwGsbgigyNwlD3SY DYHg== X-Gm-Message-State: AOAM533oF+L9Oxz6Pc9fCOSY5JaVhXgMMjcRdvLnvVwgAq2anJe2SVkz d6vERiYNy3KDrzLjIju+srETG3eWOQ0jM4iZHYY= X-Received: by 2002:a2e:2d01:: with SMTP id t1mr11200831ljt.400.1629097885325; Mon, 16 Aug 2021 00:11:25 -0700 (PDT) MIME-Version: 1.0 References: <20210809185449.2565768-1-daeho43@gmail.com> <425daf77-8020-26ce-dc9f-019d9a881b78@kernel.org> <071534dd-cf10-38d3-b83b-c833f9c0a70a@kernel.org> In-Reply-To: From: Daeho Jeong Date: Mon, 16 Aug 2021 00:11:14 -0700 Message-ID: Subject: Re: [f2fs-dev] [PATCH v2] f2fs: introduce blk_alloc_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 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. If we can handle this, we might use "fragment" mode for both simulating after fragmentation and making the filesystem fragmented.