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>
This commit is contained in:

committed by
Tejun Heo

orang tua
4ea7334b6d
melakukan
ca0c9584b1
@@ -3932,7 +3932,7 @@ static void ext4_mb_group_or_file(struct ext4_allocation_context *ac)
|
||||
* per cpu locality group is to reduce the contention between block
|
||||
* request from multiple CPUs.
|
||||
*/
|
||||
ac->ac_lg = per_cpu_ptr(sbi->s_locality_groups, raw_smp_processor_id());
|
||||
ac->ac_lg = __this_cpu_ptr(sbi->s_locality_groups);
|
||||
|
||||
/* we're going to use group allocation */
|
||||
ac->ac_flags |= EXT4_MB_HINT_GROUP_ALLOC;
|
||||
|
Reference in New Issue
Block a user