Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 144375
b: refs/heads/master
c: 9e4a5bd
h: refs/heads/master
i:
  144373: 2e8275a
  144371: 3f27fea
  144367: a054394
v: v3
  • Loading branch information
Andrea Righi authored and Linus Torvalds committed May 2, 2009
1 parent 6c47a6a commit c6eb5d9
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8713e01295140f674a41f2199b0f7ca99dfb69d5
refs/heads/master: 9e4a5bda89034502fb144331e71a0efdfd5fae97
4 changes: 4 additions & 0 deletions trunk/Documentation/sysctl/vm.txt
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,10 @@ will itself start writeback.
If dirty_bytes is written, dirty_ratio becomes a function of its value
(dirty_bytes / the amount of dirtyable system memory).

Note: the minimum value allowed for dirty_bytes is two pages (in bytes); any
value lower than this limit will be ignored and the old configuration will be
retained.

==============================================================

dirty_expire_centisecs
Expand Down
5 changes: 4 additions & 1 deletion trunk/kernel/sysctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,9 @@ static unsigned long one_ul = 1;
static int one_hundred = 100;
static int one_thousand = 1000;

/* this is needed for the proc_doulongvec_minmax of vm_dirty_bytes */
static unsigned long dirty_bytes_min = 2 * PAGE_SIZE;

/* this is needed for the proc_dointvec_minmax for [fs_]overflow UID and GID */
static int maxolduid = 65535;
static int minolduid;
Expand Down Expand Up @@ -1006,7 +1009,7 @@ static struct ctl_table vm_table[] = {
.mode = 0644,
.proc_handler = &dirty_bytes_handler,
.strategy = &sysctl_intvec,
.extra1 = &one_ul,
.extra1 = &dirty_bytes_min,
},
{
.procname = "dirty_writeback_centisecs",
Expand Down

0 comments on commit c6eb5d9

Please sign in to comment.