public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [patch] represent-dirty__centisecs-as-jiffies-internally.patch comment fix
@ 2006-04-08 10:10 Coywolf Qi Hunt
  2006-04-08 17:16 ` Bart Samwel
  0 siblings, 1 reply; 2+ messages in thread
From: Coywolf Qi Hunt @ 2006-04-08 10:10 UTC (permalink / raw)
  To: linux-kernel; +Cc: bart, Andrew Morton

[-- Attachment #1: Type: text/plain, Size: 1002 bytes --]

2006/3/25, akpm@osdl.org <akpm@osdl.org>:

> From: Bart Samwel <bart@samwel.tk>
>
> Make that the internal values for:
>
> /proc/sys/vm/dirty_writeback_centisecs
> /proc/sys/vm/dirty_expire_centisecs
>
> are stored as jiffies instead of centiseconds.  Let the sysctl interface do
> the conversions with full precision using clock_t_to_jiffies, instead of
> doing overflow-sensitive on-the-fly conversions every time the values are
> used.

> diff -puN mm/page-writeback.c~represent-dirty__centisecs-as-jiffies-internally mm/page-writeback.c
> --- devel/mm/page-writeback.c~represent-dirty__centisecs-as-jiffies-internally  2006-03-24 03:00:41.000000000 -0800
> +++ devel-akpm/mm/page-writeback.c      2006-03-24 03:00:41.000000000 -0800
> @@ -75,12 +75,12 @@ int vm_dirty_ratio = 40;
>   * The interval between `kupdate'-style writebacks, in centiseconds
>   * (hundredths of a second)

Bart,

You forgot to fix the comments. The attached patch fixes them.
--
Coywolf Qi Hunt

[-- Attachment #2: represent-dirty__centisecs-as-jiffies-internally-comment-fix.diff --]
[-- Type: text/x-patch, Size: 693 bytes --]


Signed-off-by: Coywolf Qi Hunt <qiyong@fc-cn.com>
---

diff --git a/mm/page-writeback.c b/mm/page-writeback.c
index 6dcce3a..75d7f48 100644
--- a/mm/page-writeback.c
+++ b/mm/page-writeback.c
@@ -72,13 +72,12 @@ int dirty_background_ratio = 10;
 int vm_dirty_ratio = 40;
 
 /*
- * The interval between `kupdate'-style writebacks, in centiseconds
- * (hundredths of a second)
+ * The interval between `kupdate'-style writebacks, in jiffies
  */
 int dirty_writeback_interval = 5 * HZ;
 
 /*
- * The longest number of centiseconds for which data is allowed to remain dirty
+ * The longest number of jiffies for which data is allowed to remain dirty
  */
 int dirty_expire_interval = 30 * HZ;
 

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [patch] represent-dirty__centisecs-as-jiffies-internally.patch comment fix
  2006-04-08 10:10 [patch] represent-dirty__centisecs-as-jiffies-internally.patch comment fix Coywolf Qi Hunt
@ 2006-04-08 17:16 ` Bart Samwel
  0 siblings, 0 replies; 2+ messages in thread
From: Bart Samwel @ 2006-04-08 17:16 UTC (permalink / raw)
  To: Coywolf Qi Hunt; +Cc: linux-kernel, Andrew Morton

Coywolf Qi Hunt wrote:
> 2006/3/25, akpm@osdl.org <akpm@osdl.org>:
> 
>> From: Bart Samwel <bart@samwel.tk>
>>
>> Make that the internal values for:
>>
>> /proc/sys/vm/dirty_writeback_centisecs
>> /proc/sys/vm/dirty_expire_centisecs
>>
>> are stored as jiffies instead of centiseconds.  Let the sysctl interface do
>> the conversions with full precision using clock_t_to_jiffies, instead of
>> doing overflow-sensitive on-the-fly conversions every time the values are
>> used.
> 
>> diff -puN mm/page-writeback.c~represent-dirty__centisecs-as-jiffies-internally mm/page-writeback.c
>> --- devel/mm/page-writeback.c~represent-dirty__centisecs-as-jiffies-internally  2006-03-24 03:00:41.000000000 -0800
>> +++ devel-akpm/mm/page-writeback.c      2006-03-24 03:00:41.000000000 -0800
>> @@ -75,12 +75,12 @@ int vm_dirty_ratio = 40;
>>   * The interval between `kupdate'-style writebacks, in centiseconds
>>   * (hundredths of a second)
> 
> Bart,
> 
> You forgot to fix the comments. The attached patch fixes them.

Thanks, well spotted. I think the other patch already went into Linus' 
tree, I guess this should go in there as well?

Cheers,
Bart

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-04-08 17:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-04-08 10:10 [patch] represent-dirty__centisecs-as-jiffies-internally.patch comment fix Coywolf Qi Hunt
2006-04-08 17:16 ` Bart Samwel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox