lkml.org 
[lkml]   [2002]   [Jun]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[PATCH] fs/locks.c use list_del_init
    Hi Linus,

    Trivial part of a patch by Matthew Wilcox. Please apply.

    --
    Cheers,
    Stephen Rothwell sfr@canb.auug.org.au
    http://www.canb.auug.org.au/~sfr/

    diff -ruN 2.5.20/fs/locks.c 2.5.20-sfr.1/fs/locks.c
    --- 2.5.20/fs/locks.c Fri Mar 8 14:37:19 2002
    +++ 2.5.20-sfr.1/fs/locks.c Wed Jun 5 14:23:33 2002
    @@ -397,10 +397,8 @@
    */
    static void locks_delete_block(struct file_lock *waiter)
    {
    - list_del(&waiter->fl_block);
    - INIT_LIST_HEAD(&waiter->fl_block);
    - list_del(&waiter->fl_link);
    - INIT_LIST_HEAD(&waiter->fl_link);
    + list_del_init(&waiter->fl_block);
    + list_del_init(&waiter->fl_link);
    waiter->fl_next = NULL;
    }

    -
    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 13:26    [W:0.022 / U:309.144 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site