Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp2955pxv; Fri, 30 Jul 2021 16:50:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxjNM3tahuyzSwddR0PqBXEx5Gaok9ljSQIh6GoCwHgAZbb+VnWDXOEt9rwrqFD3uQpNxaf X-Received: by 2002:a05:6402:b99:: with SMTP id cf25mr6216286edb.130.1627689012279; Fri, 30 Jul 2021 16:50:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627689012; cv=none; d=google.com; s=arc-20160816; b=bn3U+WqS+HL3yyEo5vxYnKY4Otjybwzh/9zrsf+Nb0uSyouhpazwxT5mSTC2LezuvI EzRb0wJUZbsAEz2Uf4sN0qHA992vWEc70f6Ff1zuEbQflfz/uaDxGcyi7HhSVInKf/vB Yq57G/OkIIBgdTE4j2l7/vc095GkjXkV/8BZM7bkBw+6Ydrd893YlHlEwIm/gmU9iII5 S/T8dh7qGCA/qt8uHa55C7qFcmW+y16YT8B5xYd+dko++RGAsNQfYDmZ0I6SmtzpdTaJ xsG//0iigqZ06tyPamwat7+bhujqIvp3tEOzpWQ287zOLODP7cPn5Tg6UMVIlHHab6fw 8CLw== 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=jAyq703vH5fPc/0XjCleB/ZlvS59Go+unrD5CQzkHcI=; b=BuuxzfEhfHQFhK3OLRsKop2kgi4L4b2gVaLLyrb0mbTM0KHbmUi6dXTAQDk8ovs5cy Gq9NCP+1FnntZMTLIWRQFRcHk+ddGCliv7gcKjjIqAuOj8L2SQKYclkl5bVnvc4XwNa/ PdxhqPIf/oLzgi9AelGv+A5BLvEFD84U38fXCq8nHKaUwp5C/iIM1AZ/lTxVRNQxW3c8 CNOe2huH96vviwx5OMV4+8ZVHSIZ1A+Za7btAJb5/6BvqIIFJFUtGT+ksd4b6Or1oS65 OYPiYjsNZ1jYDwNAJVirNQQreNnHIonPuaelb7OEKbohJI2F2F2jcjCj7EqfvUMYl6HB bRhQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=OeCT6v0Y; 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 l32si3076293ede.260.2021.07.30.16.49.46; Fri, 30 Jul 2021 16:50:12 -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=OeCT6v0Y; 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 S234161AbhG3Xs1 (ORCPT + 99 others); Fri, 30 Jul 2021 19:48:27 -0400 Received: from mail.kernel.org ([198.145.29.99]:36444 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231253AbhG3Xs1 (ORCPT ); Fri, 30 Jul 2021 19:48:27 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id D60D160EFF; Fri, 30 Jul 2021 23:48:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1627688901; bh=f6q+H13wgYJiez7omm0CrRokrHgcc4Jfz9N8xk7Ur54=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=OeCT6v0YaN+2zeHoyvr1eoMaZ/UVirYeQYxY9d9K7SZFoPlXYKKpbTtUgICU9X1YL CH1WfGGEwK8wnRRQU5iShUx4SHNeIGFudnM1EZqK/KZJAIhjzs1TBh6031FLg69dIa HP7plJEu0dz5ntfL2oHGscEU8sjGAcxpz/t/wADMvpUlaGlvbbnt5RVoD0J0xp7wps lVFn46CbIFuGKrxi2ZFdchfXN4vaBetCMM9jWRFN6BBRXiqXbMYLrWmEqIwSvuKzeg YkLVt1lKMwCjcSMbMzDcdmbbLwTL73g+ILCXg/t9s+RczZBhk+DkY/iJDc+xNPIpzl ke59o1aC3ZqKA== Subject: Re: [f2fs-dev] [PATCH] f2fs: introduce nosmall_discard mount option To: Jaegeuk Kim Cc: Chao Yu , linux-kernel@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net References: <20210730100530.4401-1-chao@kernel.org> From: Chao Yu Message-ID: <1a540deb-4219-4000-2f8d-a72695f1dfde@kernel.org> Date: Sat, 31 Jul 2021 07:48:20 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.12.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/7/31 7:41, Chao Yu wrote: > On 2021/7/31 2:28, Jaegeuk Kim wrote: >> how about adding "discard_gran=[small|segment|section]", and keeping discard_map >> in the small case only? And, I think we should set the section mode for zoned >> device automatically. > > Yup, better, > > About the naming, it look discard_gran is not clear here, since there is another > sysfs entry /sys/fs/f2fs//discard_granularity has the same name, and > also semantics of newly added mount option is not only control the smallest discard > size, but also indicate discard start offset should be aligned to segment or section. > So how about using: "aligned_discard=[none|segment|section]" instead? Maybe: "aligned_discard=[block|segment|section]"? > > Thanks, > > > _______________________________________________ > Linux-f2fs-devel mailing list > Linux-f2fs-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel >