[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <a8e1da0707301821n1532669el4d6f2f8cfc90c406@mail.gmail.com>
Date: Tue, 31 Jul 2007 01:21:05 +0000
From: "Dave Young" <hidave.darkstar@...il.com>
To: "Satyam Sharma" <satyam@...radead.org>
Cc: "Christoph Hellwig" <hch@....de>,
"Andrew Morton" <akpm@...ux-foundation.org>,
"Grant Wilson" <grant.wilson@....co.uk>,
linux-kernel@...r.kernel.org
Subject: Re: 2.6.23-rc1-mm1
>On 7/30/07, Satyam Sharma <satyam@...radead.org> wrote:
>
>
> On Mon, 30 Jul 2007, Christoph Hellwig wrote:
>
> > On Mon, Jul 30, 2007 at 11:27:20AM -0700, Andrew Morton wrote:
> > > ho hum, crap. Yes, ioctl_by_bdev() doesn't have a file* and so it makes
> > > unlocked_ioctl() rather tricky. We could cook up a `struct file' on the
> > > stack (we do that in various places), but that sucks.
> > >
> > > Christoph, have you any clever suggestions?
> >
> > There's two ways to deal with it, one ugly and quick and one to do it
> > right.
> >
> > The quick hack is to fake up a file struct similar to blkdev_get().
>
Why pick file as param in unlocked_ioctl, why not inode, could someone
explain this? THX.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists