diff options
author | Theodore Ts'o <tytso@mit.edu> | 2006-09-27 12:50:48 +0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-09-27 19:26:17 +0400 |
commit | eaf796e7ef6014f208c409b2b14fddcfaafe7e3a (patch) | |
tree | 4a872d4b2b086132a9ebdaec1420b8a861ddf6b7 /fs/inode.c | |
parent | 4c1541680f8d189d21dd07b053bc12996574646e (diff) | |
download | linux-eaf796e7ef6014f208c409b2b14fddcfaafe7e3a.tar.xz |
[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.c | 2 |
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); |