Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp34977pxv; Fri, 30 Jul 2021 17:52:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw8xRZS0u5EhX7jjrNgH8ntzSvV6ECCWw1BjNnikRIyhnXO+cm+WOEQm9KvWoOi629InbAm X-Received: by 2002:a17:906:f15:: with SMTP id z21mr5440477eji.177.1627692755466; Fri, 30 Jul 2021 17:52:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627692755; cv=none; d=google.com; s=arc-20160816; b=bHKPhpZoy5Cg3TyQQmDmo0BcSItzWfCanSwryRx1Ae6yGjwhOPtizoskQ7dRPladaY AXh2g1192LZ49p2E7m3M0yBFjeuwGyBXJ/xpgJ9bGpYBe33Zq+olIDnqCenausSfE5zC 93En/nnfcyuA8mbMpTfNheeVws1TCrNeFb5YxU993p0IKPqdcmfEJszxNkrKwnBiBHVe +RsWCJW6hbyci7jNUPhar9JlnFNchC8oYVLUxpld8rGHuY1TL1UVhpvs4m//7x7ltslb VDpIuLMjG6u7rOAigSDb3AQbcbYtKAEJdPkq1W7Oys5WdHA/ypKxWy7U64n8Wi1wvMIo Nlaw== 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=P9LJFT6sJH4lGIklAdMq1IGHW8ZkA2isPzEWn4l/mHQ=; b=CUSFhgNodHJ11JK1q+GZ/5BBMHIzwZLn0XPHndQXVn9RuZ8tNJvfXvaR2P+/biliWC JmUN9qxNUUdhgEv0jHhWqdZPf+tuhANF8Ga359yDDsnZsLg3dllu75exECAZlufTsggB 47uWqgPTXrE/rSA/txv4BS1S/nTTBD61Zv76LhP6xbfj3NbPtv6bQQoRYlBB82xuJ1zB mbNFBuMbADXiuxKpRIPNXz6K8TUqW+aeMWqG9uodLt0gCnbYdIhzbFlDU4j11rxOIGel 0PZwXwI5aopXHbsbGUPPPj0mzqVUcJdjQx3L0ZNfQmGTpUnBDRq11ZTXUrvX/EOOl+J2 e/sA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=bn4prbbo; 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 mp40si3599917ejc.179.2021.07.30.17.52.11; Fri, 30 Jul 2021 17:52:35 -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=bn4prbbo; 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 S234459AbhGaAs1 (ORCPT + 99 others); Fri, 30 Jul 2021 20:48:27 -0400 Received: from mail.kernel.org ([198.145.29.99]:51934 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234326AbhGaAsY (ORCPT ); Fri, 30 Jul 2021 20:48:24 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 8589160FED; Sat, 31 Jul 2021 00:48:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1627692498; bh=UwDj/y8hR/ti9YDi57SbxdxNismgSQMBBvAIDtT+11U=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=bn4prbbocPP1EKdS4jyVAlSadb9WvZxtpgf7NfvCEwkdu0ZAahLuhsSMHg8Nq03WK A3r4GCSJwOj7Znl0UZ7d4b+EDd689KuksRAQeGgueKXTfXgkiNbn9xrosh+AkBh02M pdasRX//D7zxUIDskxoklFg6aCnD7oV1ro5RQpZs0i/ErIWq7nNv5/kTeMM1Sa6+x6 FjdVqZBpyPlVsQyOLfnaKBWiOMrs1yVuna7Fs4zwxgo86GUnR488bdlzpxJyveh/PJ bucXoH9uiCqW9TOafeXSvdapBJBBcbI98mozKc29rc4UxnEYNykkqS+6IFskqe832p g08dm9Reeg6RQ== 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> <1a540deb-4219-4000-2f8d-a72695f1dfde@kernel.org> From: Chao Yu Message-ID: Date: Sat, 31 Jul 2021 08:48:16 +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 8:42, Jaegeuk Kim wrote: > On 07/31, Chao Yu wrote: >> 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]"? > > How about discard_unit? I feel that issuing discards in one of those unit > indicate the offset. Looks fine to me, let me update the patch. Thanks, > >> >>> >>> Thanks, >>> >>> >>> _______________________________________________ >>> Linux-f2fs-devel mailing list >>> Linux-f2fs-devel@lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel >>>