From: OGAWA Hirofumi Date: Mon, 28 Apr 2008 09:16:24 +0000 (-0700) Subject: fat: kill is_bad_inode() check X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=3754a544474b9fd4fdd32a96d98bc4ab558b2bb6;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git fat: kill is_bad_inode() check FAT doesn't need to check bad inode anymore. 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 53f3cf62b7c1..f22f287e507a 100644 --- a/fs/fat/inode.c +++ b/fs/fat/inode.c @@ -433,11 +433,8 @@ EXPORT_SYMBOL_GPL(fat_build_inode); static void fat_delete_inode(struct inode *inode) { truncate_inode_pages(&inode->i_data, 0); - - if (!is_bad_inode(inode)) { - inode->i_size = 0; - fat_truncate(inode); - } + inode->i_size = 0; + fat_truncate(inode); clear_inode(inode); } @@ -445,8 +442,6 @@ static void fat_clear_inode(struct inode *inode) { struct msdos_sb_info *sbi = MSDOS_SB(inode->i_sb); - if (is_bad_inode(inode)) - return; lock_kernel(); spin_lock(&sbi->inode_hash_lock); fat_cache_inval_inode(inode);