Thread (7 messages) 7 messages, 4 authors, 2013-08-27

RE: [PATCH 0/2] fs: supply inode uid/gid setting interface

From: David Laight <hidden>
Date: 2013-08-27 09:20:50
Also in: cgroups, linux-fsdevel, linux-rdma, linux-s390, linuxppc-dev, lkml, netdev

Subject: Re: [PATCH 0/2] fs: supply inode uid/gid setting interface

On 2013/8/23 12:10, Greg KH wrote:
quoted
On Fri, Aug 23, 2013 at 10:48:36AM +0800, Rui Xiang wrote:
quoted
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, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help