From 350e8099bf0a84ef86a69e691db32cb1011bff34 Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Thu, 5 Feb 2004 16:52:49 -0800 Subject: [PATCH] [PATCH] epoll struct epitem size reduction From: Davide Libenzi As suggested by Eric Dumazet the following patch achieve a more compact struct epitem on 64 bit archs. --- fs/eventpoll.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fs/eventpoll.c b/fs/eventpoll.c index 128465c75aefd..be204c5b2d7f7 100644 --- a/fs/eventpoll.c +++ b/fs/eventpoll.c @@ -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; -- 2.53.0