diff options
Diffstat (limited to 'fs/hostfs/hostfs_kern.c')
-rw-r--r-- | fs/hostfs/hostfs_kern.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/hostfs/hostfs_kern.c b/fs/hostfs/hostfs_kern.c index 07c516bfea76..2afa5bbccf9b 100644 --- a/fs/hostfs/hostfs_kern.c +++ b/fs/hostfs/hostfs_kern.c | |||
@@ -240,7 +240,7 @@ static struct inode *hostfs_alloc_inode(struct super_block *sb) | |||
240 | static void hostfs_evict_inode(struct inode *inode) | 240 | static void hostfs_evict_inode(struct inode *inode) |
241 | { | 241 | { |
242 | truncate_inode_pages(&inode->i_data, 0); | 242 | truncate_inode_pages(&inode->i_data, 0); |
243 | end_writeback(inode); | 243 | clear_inode(inode); |
244 | if (HOSTFS_I(inode)->fd != -1) { | 244 | if (HOSTFS_I(inode)->fd != -1) { |
245 | close_file(&HOSTFS_I(inode)->fd); | 245 | close_file(&HOSTFS_I(inode)->fd); |
246 | HOSTFS_I(inode)->fd = -1; | 246 | HOSTFS_I(inode)->fd = -1; |