[patchlet] Take two: Removing unneeded lines in vmtruncate.c (2.4.0-t8p1)

From: Rasmus Andersen (rasmus@jaquet.dk)
Date: Fri Sep 01 2000 - 16:31:11 EDT

  • Next message: Pavel Machek: "Re: [patch] string-486.h modified"

    Hi.

    (Thanks to Tigran Aivazian for catching me not being careful enough).

    The following patch removes two, AFAICS, unneeded lines from mm/memory.c:
    vmtruncate():

    --- linux-240test8-pre1/mm/memory.c Thu Aug 10 16:29:54 2000
    +++ linux/mm/memory.c Fri Sep 1 22:25:53 2000
    @@ -985,8 +985,6 @@
             } while ((mpnt = mpnt->vm_next_share) != NULL);
     out_unlock:
             spin_unlock(&mapping->i_shared_lock);
    - /* this should go into ->truncate */
    - inode->i_size = offset;
             if (inode->i_op && inode->i_op->truncate)
                     inode->i_op->truncate(inode);
             return;

    -- 
            Rasmus(rasmus@jaquet.dk)
    

    With Microsoft products, failure is not an option - it's a standard component. -- Anonymous - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org Please read the FAQ at http://www.tux.org/lkml/



    This archive was generated by hypermail 2b29 : Fri Sep 01 2000 - 16:40:22 EDT