Re: [GIT] /proc/*/task getdents fixlet

From: Linus Torvalds
Date: Tue Mar 17 2009 - 13:05:21 EST




On Tue, 17 Mar 2009, Alexey Dobriyan wrote:

> On Tue, Mar 17, 2009 at 09:15:46AM -0700, Linus Torvalds wrote:
> >
> > I assume the only difference is to avoid using a "switch()" on a 64-bit
> > variable, and just cast it to "unsigned long". No?
>
> Yes,
>
> + switch ((unsigned long)filp->f_pos) {

Ok, I'll do just that one by hand.

Linus
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/