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

From: Alexey Dobriyan
Date: Tue Mar 17 2009 - 12:53:29 EST


On Tue, Mar 17, 2009 at 09:15:46AM -0700, Linus Torvalds wrote:
>
>
> On Tue, 17 Mar 2009, Alexey Dobriyan wrote:
> >
> > Linus, please from
> >
> > git://git.kernel.org/pub/scm/linux/kernel/git/adobriyan/proc.git proc-linus
> >
> > to get the following patch:
> >
> > Zhang Le (1):
> > proc: update ->f_pos correctly in proc_task_readdir()
>
> Grr. I already took the previous patch.
>
> 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) {
--
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/