[RFC] [PATCH 2/8] inode-diet: Move i_pipe into a union

Theodore Tso
2006-06-19T15:31:10Z

[-- Attachment #1: inode-slim-2 --]
[-- Type: text/plain, Size: 712 bytes --]

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/include/linux/fs.h
===================================================================
--- linux-2.6.17.orig/include/linux/fs.h 2006-06-18 19:37:39.000000000 -0400
+++ linux-2.6.17/include/linux/fs.h 2006-06-18 19:39:52.000000000 -0400
@@ -508,9 +508,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;

--