Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 23439
b: refs/heads/master
c: 8a14342
h: refs/heads/master
i:
  23437: 9dcf3d8
  23435: 4f9383c
  23431: 06868df
  23423: ffd4903
v: v3
  • Loading branch information
Eric Dumazet authored and Linus Torvalds committed Mar 24, 2006
1 parent c7af999 commit 8a402b8
Show file tree
Hide file tree
Showing 2 changed files with 5 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: 2ecb9e633c5057d1203a59ef3e5c3aaea37c402e
refs/heads/master: 8a14342683b1e3adcf5f78660a42fcbd95b44a35
5 changes: 4 additions & 1 deletion trunk/fs/buffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -3078,7 +3078,7 @@ static void recalc_bh_state(void)
if (__get_cpu_var(bh_accounting).ratelimit++ < 4096)
return;
__get_cpu_var(bh_accounting).ratelimit = 0;
for_each_cpu(i)
for_each_online_cpu(i)
tot += per_cpu(bh_accounting, i).nr;
buffer_heads_over_limit = (tot > max_buffer_heads);
}
Expand Down Expand Up @@ -3127,6 +3127,9 @@ static void buffer_exit_cpu(int cpu)
brelse(b->bhs[i]);
b->bhs[i] = NULL;
}
get_cpu_var(bh_accounting).nr += per_cpu(bh_accounting, cpu).nr;
per_cpu(bh_accounting, cpu).nr = 0;
put_cpu_var(bh_accounting);
}

static int buffer_cpu_notify(struct notifier_block *self,
Expand Down

0 comments on commit 8a402b8

Please sign in to comment.