On Wed, 2015-04-15 at 08:37 +0000, David Laight wrote:
> From: David Miller
> > Sent: 14 April 2015 18:56
> > > On Tue, Apr 14, 2015 at 04:25:24PM +0000, David Laight wrote:
> > >> From: Al Viro
> > >> > Sent: 11 April 2015 22:18
> > >> > it's equal to iov_iter_count(&msg->msg_iter) in all cases
> > >>
> > >> I don't know whether this is guaranteed for iov[] that come from
> > >> userspace.
> > >>
> > >> In any case iov_iter_count() is non-trivial and you don't
> > >> really want to call it when unnecessary.
> > >
> > > Really?
> > >
> > > static inline size_t iov_iter_count(struct iov_iter *i)
> > > {
> > >         return i->count;
> > > }
> > 
> > This just made my day.
> 
> I hate accessor functions

It is quite clear you do not really tweak linux code, do you ?

Typical linux developers love them when they want to add in accessor a
debugging facility or logic.


--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to