aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOGAWA Hirofumi <hirofumi@mail.parknet.co.jp>2008-11-06 15:53:50 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2008-11-06 18:41:20 -0500
commita993b542bb4cd3e5a64863b7ef892bbebec2239b (patch)
tree36dd99548ad2ce2cac015aa166c2ce6ed19048c3
parent5e35dd4651002207948f10c576fc7d9bad448815 (diff)
fat: use fat_detach() in fat_clear_inode()
Use fat_detach() instead of opencoding it. Signed-off-by: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-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)