aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
Diffstat (limited to 'fs')
-rw-r--r--fs/fat/inode.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/fs/fat/inode.c b/fs/fat/inode.c
index f58cd48d98b8..8e1b75c63c7f 100644
--- a/fs/fat/inode.c
+++ b/fs/fat/inode.c
@@ -429,13 +429,8 @@ static void fat_delete_inode(struct inode *inode)
429 429
430static void fat_clear_inode(struct inode *inode) 430static void fat_clear_inode(struct inode *inode)
431{ 431{
432 struct super_block *sb = inode->i_sb;
433 struct msdos_sb_info *sbi = MSDOS_SB(sb);
434
435 spin_lock(&sbi->inode_hash_lock);
436 fat_cache_inval_inode(inode); 432 fat_cache_inval_inode(inode);
437 hlist_del_init(&MSDOS_I(inode)->i_fat_hash); 433 fat_detach(inode);
438 spin_unlock(&sbi->inode_hash_lock);
439} 434}
440 435
441static void fat_write_super(struct super_block *sb) 436static void fat_write_super(struct super_block *sb)