Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 175895
b: refs/heads/master
c: 7a9e02d
h: refs/heads/master
i:
  175893: 923e9f8
  175891: a161dfb
  175887: 3ba6903
v: v3
  • Loading branch information
Christoph Lameter authored and Tejun Heo committed Oct 3, 2009
1 parent a7d2a26 commit 76440fb
Show file tree
Hide file tree
Showing 2 changed files with 7 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: e7dcaa4755e35d7540bf19f316f8798357c53fa0
refs/heads/master: 7a9e02d6bb05b268dc403d7ee87ce4198062f838
12 changes: 6 additions & 6 deletions trunk/fs/xfs/xfs_mount.c
Original file line number Diff line number Diff line change
Expand Up @@ -2389,12 +2389,12 @@ xfs_icsb_modify_counters(
{
xfs_icsb_cnts_t *icsbp;
long long lcounter; /* long counter for 64 bit fields */
int cpu, ret = 0;
int ret = 0;

might_sleep();
again:
cpu = get_cpu();
icsbp = (xfs_icsb_cnts_t *)per_cpu_ptr(mp->m_sb_cnts, cpu);
preempt_disable();
icsbp = this_cpu_ptr(mp->m_sb_cnts);

/*
* if the counter is disabled, go to slow path
Expand Down Expand Up @@ -2438,11 +2438,11 @@ xfs_icsb_modify_counters(
break;
}
xfs_icsb_unlock_cntr(icsbp);
put_cpu();
preempt_enable();
return 0;

slow_path:
put_cpu();
preempt_enable();

/*
* serialise with a mutex so we don't burn lots of cpu on
Expand Down Expand Up @@ -2490,7 +2490,7 @@ xfs_icsb_modify_counters(

balance_counter:
xfs_icsb_unlock_cntr(icsbp);
put_cpu();
preempt_enable();

/*
* We may have multiple threads here if multiple per-cpu
Expand Down

0 comments on commit 76440fb

Please sign in to comment.