lkml.org 
[lkml]   [2006]   [Jul]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[patch 2/8] inode-diet: Move i_pipe into a union
    Move the i_pipe pointer into a union that will be shared with i_bdev
    and i_cdev.

    Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>


    Index: linux-2.6.17-mm5/include/linux/fs.h
    ===================================================================
    --- linux-2.6.17-mm5.orig/include/linux/fs.h 2006-07-02 20:27:00.000000000 -0400
    +++ linux-2.6.17-mm5/include/linux/fs.h 2006-07-02 20:28:45.000000000 -0400
    @@ -523,9 +523,10 @@
    #ifdef CONFIG_QUOTA
    struct dquot *i_dquot[MAXQUOTAS];
    #endif
    - /* These three should probably be a union */
    struct list_head i_devices;
    - struct pipe_inode_info *i_pipe;
    + union {
    + struct pipe_inode_info *i_pipe;
    + };
    struct block_device *i_bdev;
    struct cdev *i_cdev;
    int i_cindex;
    --
    -
    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: 2006-07-03 03:02    [W:0.020 / U:29.716 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site