On Thu, Jun 30, 2005 at 05:57:41PM +1000, Stephen Rothwell wrote:
> On Wed, 29 Jun 2005 14:12:28 +0200 Andi Kleen <[EMAIL PROTECTED]> wrote:
> >
> > I think for the particular input case it would be still better
> > to just define ->compat_write at the VFS level.
> > 
> > This would require a new compat_sys_write() wrapper, but that would
> > be straight forward.
> 
> You mean something like this?

Yes, but ...

>  
> -ssize_t vfs_write(struct file *file, const char __user *buf, size_t count, 
> loff_t *pos)
> +static ssize_t do_vfs_write(struct file *file, const char __user *buf,
> +             size_t count, loff_t *pos, int compat)

Instead of the flag I would move the code figuring out the call vector
into the caller.

-Andi

Reply via email to