Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 106020
b: refs/heads/master
c: e59a04a
h: refs/heads/master
v: v3
  • Loading branch information
Pavel Emelyanov authored and Linus Torvalds committed Jul 25, 2008
1 parent 3a1792d commit ec6f4ea
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 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: 1c552858ac2b1732a99d234d46b98098baef41ff
refs/heads/master: e59a04a7aa5ce2483470aee4f2eb79ba6b9afe8b
9 changes: 5 additions & 4 deletions trunk/kernel/acct.c
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,10 @@ static struct bsd_acct_struct acct_globals __cacheline_aligned =
/*
* Called whenever the timer says to check the free space.
*/
static void acct_timeout(unsigned long unused)
static void acct_timeout(unsigned long x)
{
acct_globals.needcheck = 1;
struct bsd_acct_struct *acct = (struct bsd_acct_struct *)x;
acct->needcheck = 1;
}

/*
Expand Down Expand Up @@ -193,8 +194,8 @@ static void acct_file_reopen(struct file *file)
acct_globals.needcheck = 0;
acct_globals.active = 1;
/* It's been deleted if it was used before so this is safe */
init_timer(&acct_globals.timer);
acct_globals.timer.function = acct_timeout;
setup_timer(&acct_globals.timer, acct_timeout,
(unsigned long)&acct_globals);
acct_globals.timer.expires = jiffies + ACCT_TIMEOUT*HZ;
add_timer(&acct_globals.timer);
}
Expand Down

0 comments on commit ec6f4ea

Please sign in to comment.