[Devel] Re: C/R review
Dave Hansen
dave at linux.vnet.ibm.com
Wed Mar 18 10:53:34 PDT 2009
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
_______________________________________________
Containers mailing list
Containers at lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/containers
More information about the Devel
mailing list