lkml.org 
[lkml]   [2004]   [Feb]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[patch] epoll struct epitem size reduction ...

    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@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2005-03-22 14:00    [W:0.026 / U:31.280 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site