diff options
author | Christoph Lameter <cl@linux-foundation.org> | 2009-10-03 06:48:22 -0400 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2009-10-03 06:48:22 -0400 |
commit | ca0c9584b1f16bd5911893647cb7f1be82e60554 (patch) | |
tree | 7dd9453ec36f56b50ce519ce964af9f35b80f381 /fs/ext4/mballoc.c | |
parent | 4ea7334b6de818b0123fa4be32af4cb8ac65174c (diff) |
this_cpu: Straight transformations
Use this_cpu_ptr and __this_cpu_ptr in locations where straight
transformations are possible because per_cpu_ptr is used with
either smp_processor_id() or raw_smp_processor_id().
cc: David Howells <dhowells@redhat.com>
Acked-by: Tejun Heo <tj@kernel.org>
cc: Ingo Molnar <mingo@elte.hu>
cc: Rusty Russell <rusty@rustcorp.com.au>
cc: Eric Dumazet <dada1@cosmosbay.com>
Signed-off-by: Christoph Lameter <cl@linux-foundation.org>
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'fs/ext4/mballoc.c')
-rw-r--r-- | fs/ext4/mballoc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ext4/mballoc.c b/fs/ext4/mballoc.c index bba12824defa..d527fd384582 100644 --- a/fs/ext4/mballoc.c +++ b/fs/ext4/mballoc.c | |||
@@ -3932,7 +3932,7 @@ static void ext4_mb_group_or_file(struct ext4_allocation_context *ac) | |||
3932 | * per cpu locality group is to reduce the contention between block | 3932 | * per cpu locality group is to reduce the contention between block |
3933 | * request from multiple CPUs. | 3933 | * request from multiple CPUs. |
3934 | */ | 3934 | */ |
3935 | ac->ac_lg = per_cpu_ptr(sbi->s_locality_groups, raw_smp_processor_id()); | 3935 | ac->ac_lg = __this_cpu_ptr(sbi->s_locality_groups); |
3936 | 3936 | ||
3937 | /* we're going to use group allocation */ | 3937 | /* we're going to use group allocation */ |
3938 | ac->ac_flags |= EXT4_MB_HINT_GROUP_ALLOC; | 3938 | ac->ac_flags |= EXT4_MB_HINT_GROUP_ALLOC; |