diff options
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) | |||
254 | DQUOT_DROP(inode); | 254 | DQUOT_DROP(inode); |
255 | if (inode->i_sb && inode->i_sb->s_op->clear_inode) | 255 | if (inode->i_sb && inode->i_sb->s_op->clear_inode) |
256 | inode->i_sb->s_op->clear_inode(inode); | 256 | inode->i_sb->s_op->clear_inode(inode); |
257 | if (inode->i_bdev) | 257 | if (S_ISBLK(inode->i_mode) && inode->i_bdev) |
258 | bd_forget(inode); | 258 | bd_forget(inode); |
259 | if (inode->i_cdev) | 259 | if (inode->i_cdev) |
260 | cd_forget(inode); | 260 | cd_forget(inode); |