]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
[PATCH] inode-diet: Move i_pipe into a union
authorTheodore Ts'o <tytso@mit.edu>
Wed, 27 Sep 2006 08:50:47 +0000 (01:50 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Wed, 27 Sep 2006 15:26:17 +0000 (08:26 -0700)
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>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
include/linux/fs.h

index 4f77ec9c33537b94ed5162c751e3578b54718be0..ca695fc8d69cb3ab21b893764c6c7c6edcfc9239 100644 (file)
@@ -528,9 +528,10 @@ struct inode {
 #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;