Commit 350e8099 authored by Andrew Morton's avatar Andrew Morton Committed by Greg Kroah-Hartman

[PATCH] epoll struct epitem size reduction

From: Davide Libenzi <davidel@xmailserver.org>

As suggested by Eric Dumazet the following patch achieve a more compact
struct epitem on 64 bit archs.
parent 6462ecbe
...@@ -238,6 +238,9 @@ struct epitem { ...@@ -238,6 +238,9 @@ struct epitem {
/* List header used to link this structure to the eventpoll ready list */ /* List header used to link this structure to the eventpoll ready list */
struct list_head rdllink; struct list_head rdllink;
/* The file descriptor this item refers to */
int fd;
/* Number of active wait queue attached to poll operations */ /* Number of active wait queue attached to poll operations */
int nwait; int nwait;
...@@ -247,9 +250,6 @@ struct epitem { ...@@ -247,9 +250,6 @@ struct epitem {
/* The "container" of this item */ /* The "container" of this item */
struct eventpoll *ep; struct eventpoll *ep;
/* The file descriptor this item refers to */
int fd;
/* The file this item refers to */ /* The file this item refers to */
struct file *file; struct file *file;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment