Radu Rendec wrote, On 11/05/2007 06:31 PM:Radu, as far as I know Jamal (from reading) he most probably is busy with some conference! Since these patches aren't so big I think you could try Jamal's at first, and if it doesn't work, and nothing new from Jamal in the meantime, resend your version. Cutdown in u32_change() seems to add more to the fastpath, but maybe Jamal thinks about something else. Thanks! But, I did it wrong: + 1 is unnecessary. And since, ffs() checks for 0 anyway, this should be simpler: - { - u8 i = 0; - u32 mask = s->hmask; - if (mask) { - while (!(mask & 1)) { - i++; - mask>>=1; - } - } - n->fshift = i; + n->fshift = ffs(s->hmask); - } Plus maybe (u8) cast on warnings... On the other hand, only now I see here is some hack (or bug) with this u8, so ffs() would mean a change here. I definitely need to rethink this. So, it's probably better to make and test this ffs() patch separately (2 parts). Since, there is only this one file, with no changes, there will be no difference, so it's up to your taste. Cheers, Jarek P. - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
| Alistair John Strachan | cpu time oddity (was Re: Linux 2.6.27-rc5) |
| Bart Van Assche | Integration of SCST in the mainstream Linux kernel |
| mkrufky | Re: [v4l-dvb-maintainer] modpost errors ( Re: 2.6.23-rc6-mm1) |
| Avi Kivity | [PATCH 022/104] KVM: Remove dead code in the cmpxchg instruction emulation |
git: | |
| Sander | 'struct task_struct' has no member named 'mems_allowed' (was: Re: 2.6.20-rc4-mm1) |
| David Miller | [GIT]: Networking |
| Jarek Poplawski | [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| Gerrit Renker | [PATCH 18/37] dccp: Support for Mandatory options |
| Natalie Protasevich | [BUG] New Kernel Bugs |
