Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp2077326rdb; Tue, 20 Feb 2024 17:04:42 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUxQ+C/8a7Gz119vp0+rIR0VV2Q539Wyx7e9d7NWJdTXGBMMK5Bos1YsmvVqYNJQWUD6oafhqesf4raTd2r1tLfCiYvsxp5HIpE1CBy4g== X-Google-Smtp-Source: AGHT+IGYxLAqJi0U2wyVW9FTQTPgzGU3gDuwa+immFv8OcMal575ojhaR/VDIMY3CzJmOHk168Ko X-Received: by 2002:ac2:5f8a:0:b0:512:9858:774e with SMTP id r10-20020ac25f8a000000b005129858774emr8900310lfe.13.1708477482242; Tue, 20 Feb 2024 17:04:42 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708477482; cv=pass; d=google.com; s=arc-20160816; b=Z3C0xcCUxDLazpOoKkMSogKHDSd391zaygv2VwMsRESW3CSDdbrYyB7mXMT0NvdwTr ErY6PWgg+Q5ACY5aYdviT6lsqRLqVP3P+0TDkMWFop1DkKA+kIxSYvJxRGRok8s+Kx9U caC6x1VAWmt2U5Pp3w4wQxJkeeVqlE4Pr+S4jSKVhVhy8odslAlPTHBHTx1tq0TfnLRT RjZ6PbLj1jYjfVQx9VPipPPCbih5PEe0WsFVg79CurhUwXl+1FWeJSJqPvK5aBcd1crI Jby5aQZmw1U9CdBwnnEao4o9uqLqdEoNrPMSnV86q2vkWNDJ1Iam6ugep/IWv7XcDHdq leXw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=4Bi2/WK4U8qrB047yhVOFHvdBxG81qeilni47DjDlWg=; fh=imjFzjLG4qph4h5QWRTC1cq+KRDJyzf1iF2L5GqgaZs=; b=jteKvG3RqYxohHyE++kZI29fGIDl6qdvYkA9qxcQmjOpJosHX82TKPmmahdkRqNXnt aVEH7/vDRdg9W5C/FIOryNwtPmfch3tuqFaFH8YJ1kyDT7zMrtuhPHT/biFr3qJYuTFJ OcnST3RQKqi5pSbT/wTCmSeIZp1dOutt2jmj0Cx9qN8TVnSw3imwtOPaMfjbETo9d9ZU aLi7OO4uJeWZBqOCTAarv8IpndLSJTkTsX99BmclB7dQtMusGDf+ArVunr7FkbCmaFgP k1IFPrDxqGfDertYTeLoPjoDbdQQuJogKPcI1WeazgATalbKcBaMY5EHN8k4Sw6GQvU8 DG0Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="T/5NAwCm"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-73893-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-73893-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id kl24-20020a170907995800b00a3d35dc1932si4073334ejc.856.2024.02.20.17.04.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Feb 2024 17:04:42 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-73893-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="T/5NAwCm"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-73893-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-73893-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id F34951F239B2 for ; Wed, 21 Feb 2024 01:04:41 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 70B6F20E3; Wed, 21 Feb 2024 01:04:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="T/5NAwCm" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9850D17D5 for ; Wed, 21 Feb 2024 01:04:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708477474; cv=none; b=YelhoLrAQehORNaDuPZ1X9TP1JwAVkEYGT84jYTZhn0e89otN6dwknK5PEL3uGFI7Ev43+mX9p50cn83TGQ/Zdi8Lw/Pu1qhYMSEZExO09T87ZbW0P4dNlfuP5AMRv7AHhV1KsBJP5TGQdSUx80wRjfPHqW2FENa95aDut7Po2w= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708477474; c=relaxed/simple; bh=lY1BvwYdkdPQgChfmKA+k2lduIGy+T+Lsl5kVFPtli8=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=GQJDltkuQND9fAscgSe1Orn44+LMIgSqgWwrmo1JuOObfmbebL4bzzONE84Stj5NlO246+XXOErx9GDU49QZERaxeeXf3JgOIyFIisbtLO2EQxEJ31l3rmrgRmj3ftyopGIDYnkTybPgPJCcovv+RAYrrFfg8SfdVKCzKDVEHvI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=T/5NAwCm; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 58F45C433F1; Wed, 21 Feb 2024 01:04:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708477474; bh=lY1BvwYdkdPQgChfmKA+k2lduIGy+T+Lsl5kVFPtli8=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=T/5NAwCmZfaacxe9uGeGXDlgNRfGgHaGKYDpOIkYlAdhMz9Hd4baHZ2NIGTLWpD8S 0xSPWBi9xNK2xExQ+aVoGv22dO7ael31gcQZCVQX5i6eIdVdnZADIqRe34sJNQVi5b PJdobMLdBlX/7ta6+L8URQdNBU+FSMkl0VfXxtrneA56bVWc+o2O23RlmjFUxn1kQK KGGVUYU42pyAIjHg4TAJFaFXdLnNQ/SYsAx6Kp6AEymrO8Udx171yNkSxh0PQoIohx FR2ZLXXR8NE4E/ryO8H6mPwdiVnZ1/vPYE9t2Qt50OO9PhsXsg1osjMP/l5P3xE9Ta BfsiV7v3gwZMg== Message-ID: <73c8c2b1-b5c1-4cdc-b8c3-f64d7dfdb125@kernel.org> Date: Wed, 21 Feb 2024 09:04:30 +0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [f2fs-dev] [PATCH 2/3 v2] f2fs: use BLKS_PER_SEG, BLKS_PER_SEC, and SEGS_PER_SEC Content-Language: en-US To: Jaegeuk Kim Cc: linux-kernel@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net References: <20240207005105.3744811-1-jaegeuk@kernel.org> <20240207005105.3744811-2-jaegeuk@kernel.org> From: Chao Yu In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 2024/2/21 4:33, Jaegeuk Kim wrote: >> @@ -4723,7 +4723,7 @@ static int f2fs_fill_super(struct super_block *sb, void *data, int silent) >> .reason = CP_DISCARD, >> .trim_start = 0, >> .trim_end = MAIN_SEGS(sbi) - 1, >> - .trim_minlen = sbi->blocks_per_seg, >> + .trim_minlen = BLKS_PER_SEG(sbi), > > We don't have this. Oh, it's due to my branch is not clean... I should rebase this diff to last dev-test, sorry. Thanks, > >> }; >> f2fs_write_checkpoint(sbi, &cpc); >> } >> -- >> 2.40.1