Displaying 3 results from an estimated 3 matches for "cache_nod".
Did you mean:
  cache_node
  
2009 Jun 03
0
[PATCH] Make sure all dirty blocks are written at commit time
...0000000 +0800
@@ -2399,13 +2399,29 @@ fail:
 
 }
 
+static struct btrfs_block_group_cache *
+next_block_group(struct btrfs_root *root,
+		 struct btrfs_block_group_cache *cache)
+{
+	struct rb_node *node;
+	spin_lock(&root->fs_info->block_group_cache_lock);
+	node = rb_next(&cache->cache_node);
+	btrfs_put_block_group(cache);
+	if (node) {
+		cache = rb_entry(node, struct btrfs_block_group_cache,
+				 cache_node);
+		atomic_inc(&cache->count);
+	} else
+		cache = NULL;
+	spin_unlock(&root->fs_info->block_group_cache_lock);
+	return cache;
+}
+
 int btrfs_write_dirty_b...
2008 Oct 10
1
[PATCH] fix enospc when there is plenty of space
...spin_unlock(&cache->lock);
 	}
-	spin_unlock(&info->lock);
+	up_read(&info->groups_sem);
 }
 
 static int __btrfs_reserve_extent(struct btrfs_trans_handle *trans,
@@ -5079,9 +5019,9 @@ int btrfs_free_block_groups(struct btrfs_fs_info *info)
 
 		rb_erase(&block_group->cache_node,
 			 &info->block_group_cache_tree);
-		spin_lock(&block_group->space_info->lock);
+		down_write(&block_group->space_info->groups_sem);
 		list_del(&block_group->list);
-		spin_unlock(&block_group->space_info->lock);
+		up_write(&block_group->spa...
2006 Jun 26
1
[PATCH, RFC 0/13] OTP: add auth_cache_remove()
...3 +226,22 @@ void auth_cache_insert(struct auth_cache
 	cache->size_left -= alloc_size;
 	hash_insert(cache->hash, node->data, node);
 }
+
+void auth_cache_remove(struct auth_cache *cache,
+		       const struct auth_request *request,
+		       const char *key)
+{
+	string_t *str;
+	struct cache_node *node;
+
+	str = t_str_new(256);
+	var_expand(str, key,
+		   auth_request_get_var_expand_table(request,
+		   				     auth_request_str_escape));
+
+	node = hash_lookup(cache->hash, str_c(str));
+	if (node == NULL)
+		return;
+
+	auth_cache_node_destroy(cache, node);
+}
diff -urdpNX /usr/share...