summaryrefslogtreecommitdiff
path: root/libdiskfs
diff options
context:
space:
mode:
authorJustus Winter <4winter@informatik.uni-hamburg.de>2015-08-14 12:41:58 +0200
committerJustus Winter <4winter@informatik.uni-hamburg.de>2015-08-20 08:26:46 +0200
commitfddacaea0c816639e5ad02e5c7237c4e53ebb5f7 (patch)
treed2593263900bace4543e02234e83b1fbb6bbf685 /libdiskfs
parent714c72349f136c4b798d0df847f85340c6e76aa8 (diff)
libdiskfs: fix parent lookup in the name cache
* libdiskfs/name-cache.c (diskfs_check_lookup_cache): Drop stray negation.
Diffstat (limited to 'libdiskfs')
-rw-r--r--libdiskfs/name-cache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libdiskfs/name-cache.c b/libdiskfs/name-cache.c
index d8f86b15..e9fe27ea 100644
--- a/libdiskfs/name-cache.c
+++ b/libdiskfs/name-cache.c
@@ -355,7 +355,7 @@ diskfs_check_lookup_cache (struct node *dir, const char *name)
pthread_mutex_lock (&cache_lock);
found = lookup (dir->cache_id, name, key, &bucket, &i);
if (! found
- || ! bucket->node_cache_id[i] != id)
+ || bucket->node_cache_id[i] != id)
{
pthread_mutex_unlock (&cache_lock);