Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 250106
b: refs/heads/master
c: 7003092
h: refs/heads/master
v: v3
  • Loading branch information
OGAWA Hirofumi committed Apr 12, 2011
1 parent 9e76e1a commit a4a3b30
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 384f5c96ea05aba24a11172ebd6f5d427ca199fc
refs/heads/master: 700309295551ef9217e4ae00a5b1d3030fc5438c
7 changes: 7 additions & 0 deletions trunk/fs/fat/cache.c
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,13 @@ static void fat_cache_add(struct inode *inode, struct fat_cache_id *new)
spin_unlock(&MSDOS_I(inode)->cache_lru_lock);

tmp = fat_cache_alloc(inode);
if (!tmp) {
spin_lock(&MSDOS_I(inode)->cache_lru_lock);
MSDOS_I(inode)->nr_caches--;
spin_unlock(&MSDOS_I(inode)->cache_lru_lock);
return;
}

spin_lock(&MSDOS_I(inode)->cache_lru_lock);
cache = fat_cache_merge(inode, new);
if (cache != NULL) {
Expand Down

0 comments on commit a4a3b30

Please sign in to comment.