diff options
author | OGAWA Hirofumi <hirofumi@mail.parknet.co.jp> | 2008-04-28 02:16:24 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-04-28 08:58:46 -0700 |
commit | 3754a544474b9fd4fdd32a96d98bc4ab558b2bb6 (patch) | |
tree | e11746d2b298283850215b36d41c540e9056c879 /fs | |
parent | d5dee5c395062a55236318ac4eec1f4ebb9de6db (diff) | |
download | kernel_samsung_smdk4412-3754a544474b9fd4fdd32a96d98bc4ab558b2bb6.zip kernel_samsung_smdk4412-3754a544474b9fd4fdd32a96d98bc4ab558b2bb6.tar.gz kernel_samsung_smdk4412-3754a544474b9fd4fdd32a96d98bc4ab558b2bb6.tar.bz2 |
fat: kill is_bad_inode() check
FAT doesn't need to check bad inode anymore.
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>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/fat/inode.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/fs/fat/inode.c b/fs/fat/inode.c index 53f3cf6..f22f287 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); |