diff options
author | Theodore Ts'o <tytso@mit.edu> | 2006-09-27 10:50:49 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-09-27 17:26:17 +0200 |
commit | 577c4eb09d1034d0739e3135fd2cff50588024be (patch) | |
tree | 2eb22d60a62d013f300729ee563d1fe61f544da9 /fs/inode.c | |
parent | [PATCH] inode-diet: Move i_bdev into a union (diff) | |
download | linux-577c4eb09d1034d0739e3135fd2cff50588024be.tar.xz linux-577c4eb09d1034d0739e3135fd2cff50588024be.zip |
[PATCH] inode-diet: Move i_cdev into a union
Move the i_cdev pointer in struct inode into a union.
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 'fs/inode.c')
-rw-r--r-- | fs/inode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/inode.c b/fs/inode.c index 41b462232f7f..f5c04dd9ae8a 100644 --- a/fs/inode.c +++ b/fs/inode.c @@ -256,7 +256,7 @@ void clear_inode(struct inode *inode) inode->i_sb->s_op->clear_inode(inode); if (S_ISBLK(inode->i_mode) && inode->i_bdev) bd_forget(inode); - if (inode->i_cdev) + if (S_ISCHR(inode->i_mode) && inode->i_cdev) cd_forget(inode); inode->i_state = I_CLEAR; } |