From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.7 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 95680C4338F for ; Sat, 31 Jul 2021 00:43:00 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 675046103B for ; Sat, 31 Jul 2021 00:43:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234515AbhGaAnE (ORCPT ); Fri, 30 Jul 2021 20:43:04 -0400 Received: from mail.kernel.org ([198.145.29.99]:51290 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234326AbhGaAnD (ORCPT ); Fri, 30 Jul 2021 20:43:03 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 067AA60FED; Sat, 31 Jul 2021 00:42:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1627692178; bh=sPuGl+L1sdMhNZK/fg1Tmc3r36KfKxRqsunJdIUimWw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=HcZ0jAYDOWYePNYjE32BhhbV1DO76aUFx129ROMN5YtXrvNo1928acyqx85pVexu1 lhL1ur0K3CAv7GD/mwp9I26CHucFbCf7hPN6P7KpsvgB2f/ZSiAWTqRuFc5Z/cHhx2 lpz7mDt3sWZWaOR/JmdX0gx+ZFq1JOdHyZDSGW2tqhLdlEY7yIvus0DYyWCvz+gB/g izEUKS5BaM0IPVpDEJx0o5ohIMTeJkgVZ9iZnFmQ0j1s/A9Cl4nGmSaJb5i03TZys0 ERmI5EheTcG1rsrHivHRugQkTrY/7m6xs6HENEh3mog9/zFcnjvhw97osmnSkJKkkR pZcd5wowcV0eA== Date: Fri, 30 Jul 2021 17:42:56 -0700 From: Jaegeuk Kim To: Chao Yu Cc: Chao Yu , linux-kernel@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net Subject: Re: [f2fs-dev] [PATCH] f2fs: introduce nosmall_discard mount option Message-ID: References: <20210730100530.4401-1-chao@kernel.org> <1a540deb-4219-4000-2f8d-a72695f1dfde@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1a540deb-4219-4000-2f8d-a72695f1dfde@kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. > > > > > Thanks, > > > > > > _______________________________________________ > > Linux-f2fs-devel mailing list > > Linux-f2fs-devel@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel > >