Commit 2680a9bd authored by Hirofumi Ogawa's avatar Hirofumi Ogawa Committed by Linus Torvalds

[PATCH] FAT: remove incorrect BUG_ON()

This is valid state if file was accessed by multiple processes at the
same time.
Signed-off-by: default avatarOGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent bf38c7b6
...@@ -147,7 +147,6 @@ static void fat_cache_add(struct inode *inode, struct fat_cache_id *new) ...@@ -147,7 +147,6 @@ static void fat_cache_add(struct inode *inode, struct fat_cache_id *new)
goto out; /* this cache was invalidated */ goto out; /* this cache was invalidated */
cache = fat_cache_merge(inode, new); cache = fat_cache_merge(inode, new);
BUG_ON(new->id == FAT_CACHE_VALID && cache != NULL);
if (cache == NULL) { if (cache == NULL) {
if (MSDOS_I(inode)->nr_caches < fat_max_cache(inode)) { if (MSDOS_I(inode)->nr_caches < fat_max_cache(inode)) {
MSDOS_I(inode)->nr_caches++; MSDOS_I(inode)->nr_caches++;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment