[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <AE90C24D6B3A694183C094C60CF0A2F6026B7307@saturn3.aculab.com>
Date: Tue, 27 Aug 2013 10:20:50 +0100
From: "David Laight" <David.Laight@...LAB.COM>
To: "Rui Xiang" <rui.xiang@...wei.com>,
"Greg KH" <gregkh@...uxfoundation.org>
Cc: <linux-s390@...r.kernel.org>, <linux-ia64@...r.kernel.org>,
<linux-rdma@...r.kernel.org>, <netdev@...r.kernel.org>,
<linux-usb@...r.kernel.org>, <linux-kernel@...r.kernel.org>,
<linux-mm@...ck.org>, <viro@...iv.linux.org.uk>,
<cgroups@...r.kernel.org>, <linux-fsdevel@...r.kernel.org>,
<v9fs-developer@...ts.sourceforge.net>,
<linuxppc-dev@...ts.ozlabs.org>
Subject: RE: [PATCH 0/2] fs: supply inode uid/gid setting interface
> Subject: Re: [PATCH 0/2] fs: supply inode uid/gid setting interface
>
> On 2013/8/23 12:10, Greg KH wrote:
> > On Fri, Aug 23, 2013 at 10:48:36AM +0800, Rui Xiang wrote:
> >> This patchset implements an accessor functions to set uid/gid
> >> in inode struct. Just finish code clean up.
> >
> > Why?
> >
> It can introduce a new function to reduce some codes.
> Just clean up.
In what sense is it a 'cleanup' ?
To my mind it just means that anyone reading the code has
to go and look at another file in order to see what the
function does (it might be expected to be more complex).
It also adds run time cost, while probably not directly
measurable I suspect it more than doubles the execution
time of that code fragment - do that everywhere and the
system will run like a sick pig.
The only real use for accessor functions is when you
don't want the structure offset to be public.
In this case that is obviously not the case since
all the drivers are directly accessing other members
of the structure.
David
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists