aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/fs.h
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2006-09-27 04:50:47 -0400
committerLinus Torvalds <torvalds@g5.osdl.org>2006-09-27 11:26:17 -0400
commit4c1541680f8d189d21dd07b053bc12996574646e (patch)
tree82028e01537a968ef66b075f79f3c95f8c60fd70 /include/linux/fs.h
parent8e18e2941c53416aa219708e7dcad21fb4bd6794 (diff)
[PATCH] 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> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/linux/fs.h')
-rw-r--r--include/linux/fs.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h
index 4f77ec9c3353..ca695fc8d69c 100644
--- a/include/linux/fs.h
+++ b/include/linux/fs.h
@@ -528,9 +528,10 @@ struct inode {
528#ifdef CONFIG_QUOTA 528#ifdef CONFIG_QUOTA
529 struct dquot *i_dquot[MAXQUOTAS]; 529 struct dquot *i_dquot[MAXQUOTAS];
530#endif 530#endif
531 /* These three should probably be a union */
532 struct list_head i_devices; 531 struct list_head i_devices;
533 struct pipe_inode_info *i_pipe; 532 union {
533 struct pipe_inode_info *i_pipe;
534 };
534 struct block_device *i_bdev; 535 struct block_device *i_bdev;
535 struct cdev *i_cdev; 536 struct cdev *i_cdev;
536 int i_cindex; 537 int i_cindex;