summaryrefslogtreecommitdiffstats
path: root/fs/inode.c
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2006-09-27 01:50:48 -0700
committerLinus Torvalds <torvalds@g5.osdl.org>2006-09-27 08:26:17 -0700
commiteaf796e7ef6014f208c409b2b14fddcfaafe7e3a (patch)
tree4a872d4b2b086132a9ebdaec1420b8a861ddf6b7 /fs/inode.c
parent4c1541680f8d189d21dd07b053bc12996574646e (diff)
downloadblackbird-op-linux-eaf796e7ef6014f208c409b2b14fddcfaafe7e3a.tar.gz
blackbird-op-linux-eaf796e7ef6014f208c409b2b14fddcfaafe7e3a.zip
[PATCH] inode-diet: Move i_bdev into a union
Move the i_bdev 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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/inode.c b/fs/inode.c
index 77e254792025..41b462232f7f 100644
--- a/fs/inode.c
+++ b/fs/inode.c
@@ -254,7 +254,7 @@ void clear_inode(struct inode *inode)
DQUOT_DROP(inode);
if (inode->i_sb && inode->i_sb->s_op->clear_inode)
inode->i_sb->s_op->clear_inode(inode);
- if (inode->i_bdev)
+ if (S_ISBLK(inode->i_mode) && inode->i_bdev)
bd_forget(inode);
if (inode->i_cdev)
cd_forget(inode);
OpenPOWER on IntegriCloud