Commit eaf796e7 authored by Theodore Ts'o's avatar Theodore Ts'o Committed by Linus Torvalds
Browse files

[PATCH] inode-diet: Move i_bdev into a union

Move the i_bdev pointer in struct inode into a union.
Signed-off-by: default avatar"Theodore Ts'o" <>
Signed-off-by: default avatarAndrew Morton <>
Signed-off-by: default avatarLinus Torvalds <>
parent 4c154168
......@@ -254,7 +254,7 @@ void clear_inode(struct inode *inode)
if (inode->i_sb && inode->i_sb->s_op->clear_inode)
if (inode->i_bdev)
if (S_ISBLK(inode->i_mode) && inode->i_bdev)
if (inode->i_cdev)
......@@ -531,8 +531,8 @@ struct inode {
struct list_head i_devices;
union {
struct pipe_inode_info *i_pipe;
struct block_device *i_bdev;
struct block_device *i_bdev;
struct cdev *i_cdev;
int i_cindex;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment