Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 168825
b: refs/heads/master
c: b34df79
h: refs/heads/master
i:
  168823: 214ca9b
v: v3
  • Loading branch information
David Howells committed Nov 19, 2009
1 parent 0293324 commit ad45b18
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7e311a207d596b9273d811149d6e3e14f05ac4c0
refs/heads/master: b34df792b4e9e311db47fad27949095d0629c197
4 changes: 3 additions & 1 deletion trunk/fs/fscache/cookie.c
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,9 @@ struct fscache_cookie *__fscache_acquire_cookie(
cookie->netfs_data = netfs_data;
cookie->flags = 0;

INIT_RADIX_TREE(&cookie->stores, GFP_NOFS);
/* radix tree insertion won't use the preallocation pool unless it's
* told it may not wait */
INIT_RADIX_TREE(&cookie->stores, GFP_NOFS & ~__GFP_WAIT);

switch (cookie->def->type) {
case FSCACHE_COOKIE_TYPE_INDEX:
Expand Down
3 changes: 3 additions & 0 deletions trunk/lib/radix-tree.c
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,9 @@ radix_tree_node_free(struct radix_tree_node *node)
* ensure that the addition of a single element in the tree cannot fail. On
* success, return zero, with preemption disabled. On error, return -ENOMEM
* with preemption not disabled.
*
* To make use of this facility, the radix tree must be initialised without
* __GFP_WAIT being passed to INIT_RADIX_TREE().
*/
int radix_tree_preload(gfp_t gfp_mask)
{
Expand Down

0 comments on commit ad45b18

Please sign in to comment.