[patch] epoll struct epitem size reduction ...
From: Davide Libenzi
Date: Thu Feb 05 2004 - 13:59:36 EST
Andrew, as suggested by Eric Dumazet the following patch achieve a more
compact struct epitem on 64 bit archs.
- Davide
Index: fs/eventpoll.c
===================================================================
RCS file: /usr/src/bkcvs/linux-2.5/fs/eventpoll.c,v
retrieving revision 1.26
diff -u -r1.26 eventpoll.c
--- a/fs/eventpoll.c 21 Jan 2004 03:11:23 -0000 1.26
+++ b/fs/eventpoll.c 5 Feb 2004 18:49:13 -0000
@@ -238,6 +238,9 @@
/* List header used to link this structure to the eventpoll ready list */
struct list_head rdllink;
+ /* The file descriptor this item refers to */
+ int fd;
+
/* Number of active wait queue attached to poll operations */
int nwait;
@@ -246,9 +249,6 @@
/* The "container" of this item */
struct eventpoll *ep;
-
- /* The file descriptor this item refers to */
- int fd;
/* The file this item refers to */
struct file *file;
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/