mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-27 17:11:46 +00:00
[PATCH] Replace regular code with appropriate calls to container_of()
Replace a small number of expressions with a call to the "container_of()" macro. Signed-off-by: Robert P. J. Day <rpjday@mindspring.com> Acked-by: Paul Mackerras <paulus@samba.org> Cc: "David S. Miller" <davem@davemloft.net> Cc: Martin Schwidefsky <schwidefsky@de.ibm.com> Cc: Stephen Smalley <sds@tycho.nsa.gov> Cc: James Morris <jmorris@namei.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
521dae191e
commit
b385a144ee
5 changed files with 6 additions and 10 deletions
|
@ -492,7 +492,7 @@ struct request_sock;
|
|||
* Note that the fown_struct, @fown, is never outside the context of a
|
||||
* struct file, so the file structure (and associated security information)
|
||||
* can always be obtained:
|
||||
* (struct file *)((long)fown - offsetof(struct file,f_owner));
|
||||
* container_of(fown, struct file, f_owner)
|
||||
* @tsk contains the structure of task receiving signal.
|
||||
* @fown contains the file owner information.
|
||||
* @sig is the signal that will be sent. When 0, kernel sends SIGIO.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue