Skip to content

Commit

Permalink
[PATCH] inode-diet: Move i_pipe into a union
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Theodore Ts'o authored and Linus Torvalds committed Sep 27, 2006
1 parent 8e18e29 commit 4c15416
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions include/linux/fs.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 4c15416

Please sign in to comment.