Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp12249pxb; Fri, 15 Jan 2021 06:35:57 -0800 (PST) X-Google-Smtp-Source: ABdhPJxD/JEeGawTgosXtnV1rt3l3TkALB0d/uV3f25MWBdRx+1bseBmiRn9a/4vXwYcCuyLMb0u X-Received: by 2002:a50:fc97:: with SMTP id f23mr2120961edq.307.1610721357143; Fri, 15 Jan 2021 06:35:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610721357; cv=none; d=google.com; s=arc-20160816; b=XPQQA2C1TRt6o+3JN4sDHb7vdMG4oAGeqAYp6aEZQvU1qHYDX4xyjBGgxVAthQDOoD 8zmV9h6Euhcko9vDMR7/tZAQAK6+DbocMbwcTbOEm4PhzRB6z2FMC6XStzcX+0dQzxHD hbeuMqNaTZFxa2yomoVu5x1Eys1Z1MFlp2voGiyk27CEd1/IHuk5U5JOAZtF5UvtYFxh Mp5c6oyguyx9In5m0gIvuJxb5sIV+LWQ1AZacZcyPc6OdySaB1mt6tY2iTi0Lr1lX7UX QUJ6U1d4UsileEGGmcJOxQBmaOgkBhEaU4ivrE67tl6xNbcxb5dq96Bg46HgwWe4n7/l YMgA== 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=JlKooYtElvoBMZ5GgPDQkCOzjeZLLHw0zI1ErnpiMME=; b=wJg8IdF2R1ibP04MIBjlY3O/hpOAqKKT1gP8rSWBZgmW/iod4U83kJ/mkr76INZsTf u7A+a60P6i+6P+c7aOqgCQACcBA+L9kdsrmDZCkFzdOgGCvGxoQQc4XKJWC0pu+2L4QY tW5t5dr84COURYIzMnLOnGSDNzj9t3g2UT0jGTyfhWRdcRNADZh5oMxQEKS/uhV4kAb7 ROlNva0PvjEZlFpf6lU8pywFf4HMQGS5NNGAzlUiy36ltgfInxWihZ87+pyFv9yRYlfr +fvVFFRrGPjGW9aLy6tIGt346YQ88f2rZ0vCGka69XENjJQ3GGOh5Fj/3RaQmkPcwIs/ lvZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=n84Ouihd; 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 b12si3867155edz.497.2021.01.15.06.35.31; Fri, 15 Jan 2021 06:35:57 -0800 (PST) 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=n84Ouihd; 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 S1730758AbhAOOeU (ORCPT + 99 others); Fri, 15 Jan 2021 09:34:20 -0500 Received: from mail.kernel.org ([198.145.29.99]:57470 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729489AbhAOOeU (ORCPT ); Fri, 15 Jan 2021 09:34:20 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 06050224F9; Fri, 15 Jan 2021 14:33:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1610721219; bh=JlKooYtElvoBMZ5GgPDQkCOzjeZLLHw0zI1ErnpiMME=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=n84OuihdpxPZSCEyu2+9PdEdvMGODoT7rfwGJKCJVQu+RWVvZv7kKTdyzVBwQHjER /KgPuCh4t/3RrSVuGEFnO+43KiugUEQ+1pxhLEnOjG+VoqPXRith5tGebZky3XctZ7 9vr+OIFeQnvqJPT313tBjeqbN2pO1vMzzFVrgPd7G5/h/7GEARTEleX6E83tTcZX4s f9LhQFOfAALetyeqoqT7wmf/2P/sel/bHB16EPXoStanCObOLhU3kP3C9tXWux6noH zaIb/UlThPWSsDD5ji8nY7q/9pFPFO5YQXKqPfPQyHG3SJ7Exv3FapLkH54c1lrrKy S1MzyvnqxCn9Q== Subject: Re: [f2fs-dev] [PATCH v2 1/2] f2fs: introduce checkpoint=merge mount option To: Daeho Jeong , Chao Yu Cc: Daeho Jeong , Sungjong Seo , kernel-team@android.com, linux-kernel@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net References: <20210114062302.3809664-1-daeho43@gmail.com> <965dc435-c0a0-36ca-7e97-c3aaa3831bff@huawei.com> From: Chao Yu Message-ID: Date: Fri, 15 Jan 2021 22:33:37 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.6.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/1/15 22:00, Daeho Jeong wrote: >> ktime_get() returns time based ns unit, in extreme scenario, average >> time cp cost will overflow 32-bit variable, I doubt. >> > sum_diff is already turned into msec using ktime_ms_delta() above. Yup, I missed ktime_ms_delta(). On 2021/1/15 22:23, Daeho Jeong wrote: >>> How about updating queued_ckpt and total_ckpt in batch, update atomic >>> variable one by one is low efficient. >>> >> You mean like using spin_lock()? >> > Ah, you mean like updating these values as much as the count of the > loop at once? Correct. :) Thanks,