Skip to content

Commit

Permalink
fat: use fat_detach() in fat_clear_inode()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
OGAWA Hirofumi authored and Linus Torvalds committed Nov 6, 2008
1 parent 5e35dd4 commit a993b54
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions fs/fat/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit a993b54

Please sign in to comment.