Skip to contentSkip to conversation

FAT: remove wrong BUG_ON()

PATCH New OGAWA Hirofumi 1 participant 1 message Oct 31, 2004

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 FAT: remove wrong BUG_ON()

Hi,

Please apply

Signature · 24 lines
OGAWA Hirofumi <[email protected]>


This is valid state if file was accessed by multiple processes at the
same time.

Signed-off-by: OGAWA Hirofumi <[email protected]>
---

 fs/fat/cache.c |    1 -
 1 files changed, 1 deletion(-)

diff -puN fs/fat/cache.c~fat-cache-bug_on-fix fs/fat/cache.c
--- linux-2.6.10-rc1/fs/fat/cache.c~fat-cache-bug_on-fix	2004-10-31 08:14:49.000000000 +0900
+++ linux-2.6.10-rc1-hirofumi/fs/fat/cache.c	2004-10-31 08:14:49.000000000 +0900
@@ -147,7 +147,6 @@ static void fat_cache_add(struct inode *
 		goto out;	/* this cache was invalidated */
 
 	cache = fat_cache_merge(inode, new);
-	BUG_ON(new->id == FAT_CACHE_VALID && cache != NULL);
 	if (cache == NULL) {
 		if (MSDOS_I(inode)->nr_caches < fat_max_cache(inode)) {
 			MSDOS_I(inode)->nr_caches++;
_