lkml.org 
[lkml]   [2008]   [Oct]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Subject[PATCH 09/21] fat: use fat_detach() in fat_clear_inode()
From
Date

Use fat_detach() instead of opencoding it.

Signed-off-by: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
---

fs/fat/inode.c | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)

diff -puN fs/fat/inode.c~fat-use-fat_detach fs/fat/inode.c
--- linux-2.6/fs/fat/inode.c~fat-use-fat_detach 2008-08-26 12:21:52.000000000 +0900
+++ linux-2.6-hirofumi/fs/fat/inode.c 2008-08-26 12:21:52.000000000 +0900
@@ -429,13 +429,8 @@ static void fat_delete_inode(struct inod

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)
_

\
 
 \ /
  Last update: 2008-10-15 16:39    [W:0.136 / U:1.328 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site