Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 131280
b: refs/heads/master
c: fc3501d
h: refs/heads/master
v: v3
  • Loading branch information
Sven Wegener authored and Linus Torvalds committed Feb 11, 2009
1 parent 0a9953c commit 954feff
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 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: 35887b1cf74dc751dd0574b26515142d3cea9376
refs/heads/master: fc3501d411d34823fb9be248a95a0c44f945866f
5 changes: 3 additions & 2 deletions trunk/kernel/sysctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ static int two = 2;

static int zero;
static int one = 1;
static unsigned long one_ul = 1;
static int one_hundred = 100;

/* this is needed for the proc_dointvec_minmax for [fs_]overflow UID and GID */
Expand Down Expand Up @@ -974,7 +975,7 @@ static struct ctl_table vm_table[] = {
.mode = 0644,
.proc_handler = &dirty_background_bytes_handler,
.strategy = &sysctl_intvec,
.extra1 = &one,
.extra1 = &one_ul,
},
{
.ctl_name = VM_DIRTY_RATIO,
Expand All @@ -995,7 +996,7 @@ static struct ctl_table vm_table[] = {
.mode = 0644,
.proc_handler = &dirty_bytes_handler,
.strategy = &sysctl_intvec,
.extra1 = &one,
.extra1 = &one_ul,
},
{
.procname = "dirty_writeback_centisecs",
Expand Down
2 changes: 1 addition & 1 deletion trunk/mm/page-writeback.c
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ int dirty_bytes_handler(struct ctl_table *table, int write,
struct file *filp, void __user *buffer, size_t *lenp,
loff_t *ppos)
{
int old_bytes = vm_dirty_bytes;
unsigned long old_bytes = vm_dirty_bytes;
int ret;

ret = proc_doulongvec_minmax(table, write, filp, buffer, lenp, ppos);
Expand Down

0 comments on commit 954feff

Please sign in to comment.