]> git.hungrycats.org Git - linux/commitdiff
[PATCH] epoll struct epitem size reduction
authorAndrew Morton <akpm@osdl.org>
Fri, 6 Feb 2004 00:52:49 +0000 (16:52 -0800)
committerGreg Kroah-Hartman <greg@kroah.com>
Fri, 6 Feb 2004 00:52:49 +0000 (16:52 -0800)
From: Davide Libenzi <davidel@xmailserver.org>

As suggested by Eric Dumazet the following patch achieve a more compact
struct epitem on 64 bit archs.

fs/eventpoll.c

index 128465c75aefd68243fad57c38516ecae9f2403b..be204c5b2d7f75448cc553a05c4a9793da8573dd 100644 (file)
@@ -238,6 +238,9 @@ struct epitem {
        /* 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;
 
@@ -247,9 +250,6 @@ struct epitem {
        /* 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;