[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <48DF0187.5030005@redhat.com>
Date: Sat, 27 Sep 2008 23:01:11 -0500
From: Eric Sandeen <sandeen@...hat.com>
To: Rusty Russell <rusty@...tcorp.com.au>
CC: linux-ext4@...r.kernel.org, Alex Tomas <alex@...sterfs.com>,
Mike Travis <travis@....com>
Subject: Re: Unusual code in mballoc.c.
Rusty Russell wrote:
> 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.
Hi Rusty - I sent a patch for this a while back...
http://repo.or.cz/w/ext4-patch-queue.git?a=blob;f=ext4-use-percpu-data-for-lg_prealloc_list;h=8ddebb7f6054f70e34b142d7ae6f314d6629aac7;hb=HEAD
Thanks,
-Eric
--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists