lkml.org 
[lkml]   [2021]   [Jan]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [f2fs-dev] [PATCH v2 1/2] f2fs: introduce checkpoint=merge mount option
From
Date
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,

\
 
 \ /
  Last update: 2021-01-15 15:35    [W:0.094 / U:0.496 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site