From: OGAWA Hirofumi Date: Thu, 6 Nov 2008 20:53:50 +0000 (-0800) Subject: fat: use fat_detach() in fat_clear_inode() X-Git-Tag: v2.6.28-rc4~46 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=a993b542bb4cd3e5a64863b7ef892bbebec2239b;p=linux-2.6-omap-h63xx.git fat: use fat_detach() in fat_clear_inode() Use fat_detach() instead of opencoding it. Signed-off-by: OGAWA Hirofumi Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/fs/fat/inode.c b/fs/fat/inode.c index f58cd48d98b..8e1b75c63c7 100644 --- a/fs/fat/inode.c +++ b/fs/fat/inode.c @@ -429,13 +429,8 @@ static void fat_delete_inode(struct inode *inode) static void fat_clear_inode(struct inode *inode) { - struct super_block *sb = inode->i_sb; - struct msdos_sb_info *sbi = MSDOS_SB(sb); - - spin_lock(&sbi->inode_hash_lock); fat_cache_inval_inode(inode); - hlist_del_init(&MSDOS_I(inode)->i_fat_hash); - spin_unlock(&sbi->inode_hash_lock); + fat_detach(inode); } static void fat_write_super(struct super_block *sb)