Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 7428
b: refs/heads/master
c: 736c7b8
h: refs/heads/master
v: v3
  • Loading branch information
Coywolf Qi Hunt authored and Linus Torvalds committed Sep 7, 2005
1 parent e7cd194 commit e5bf01a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 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: 3f4bb1f4199b7dc0c958447b1e4898980013b884
refs/heads/master: 736c7b808f38f3bb72941345e11e236ec65dec3d
10 changes: 4 additions & 6 deletions trunk/fs/buffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -3046,10 +3046,9 @@ struct buffer_head *alloc_buffer_head(unsigned int __nocast gfp_flags)
{
struct buffer_head *ret = kmem_cache_alloc(bh_cachep, gfp_flags);
if (ret) {
preempt_disable();
__get_cpu_var(bh_accounting).nr++;
get_cpu_var(bh_accounting).nr++;
recalc_bh_state();
preempt_enable();
put_cpu_var(bh_accounting);
}
return ret;
}
Expand All @@ -3059,10 +3058,9 @@ void free_buffer_head(struct buffer_head *bh)
{
BUG_ON(!list_empty(&bh->b_assoc_buffers));
kmem_cache_free(bh_cachep, bh);
preempt_disable();
__get_cpu_var(bh_accounting).nr--;
get_cpu_var(bh_accounting).nr--;
recalc_bh_state();
preempt_enable();
put_cpu_var(bh_accounting);
}
EXPORT_SYMBOL(free_buffer_head);

Expand Down

0 comments on commit e5bf01a

Please sign in to comment.