Re: C/R review

From: Dave Hansen
Date: Wed Mar 18 2009 - 13:54:13 EST


On Wed, 2009-03-18 at 00:01 +0300, Alexey Dobriyan wrote:
> > +static inline loff_t file_pos_read(struct file *file)
> > +{
> > + return file->f_pos;
> > +}
> > +
> > +static inline void file_pos_write(struct file *file, loff_t pos)
> > +{
> > + file->f_pos = pos;
> > +}
>
> I failed myself to understand need for this wrappers at all.
>
> If dump is single-threaded, who is going to change f_pos under you?
>
> I'm passing &file->f_pos to vfs_write().

/me git-blames...

They're already in the kernel and they've been there since the beginning
of git as far as I can see. I think Oren was just trying to use what is
there already, so he moved them to a header.

-- Dave

--
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/