linux-ext4.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Unusual code in mballoc.c.
@ 2008-09-28  1:56 Rusty Russell
  2008-09-28  4:01 ` Eric Sandeen
  0 siblings, 1 reply; 2+ messages in thread
From: Rusty Russell @ 2008-09-28  1:56 UTC (permalink / raw)
  To: linux-ext4; +Cc: Alex Tomas, Mike Travis

Hi all,

   A grep lead me to fs/ext4/mballoc.c:

Line 2551:
	for (i = 0; i < nr_cpu_ids; i++) {

This is more normally "for_each_possible_cpu(i)".

Line 4097:
	ac->ac_lg = &sbi->s_locality_groups[get_cpu()];
	put_cpu();

This is presumably someone suppressing a warning.   It should be:
	ac->ac_lg = &sbi->s_locality_groups[raw_smp_processor_id()];

Thanks,
Rusty.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-09-28  4:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-28  1:56 Unusual code in mballoc.c Rusty Russell
2008-09-28  4:01 ` Eric Sandeen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).