[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <1237398814.8286.174.camel@nimitz>
Date: Wed, 18 Mar 2009 10:53:34 -0700
From: Dave Hansen <dave@...ux.vnet.ibm.com>
To: Alexey Dobriyan <adobriyan@...il.com>
Cc: orenl@...columbia.edu, xemul@...allels.com,
containers@...ts.linux-foundation.org,
linux-kernel@...r.kernel.org, hch@...radead.org,
akpm@...ux-foundation.org, torvalds@...ux-foundation.org,
mingo@...e.hu
Subject: Re: C/R review
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@...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