Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 305200
b: refs/heads/master
c: 75af271
h: refs/heads/master
v: v3
  • Loading branch information
Dan Carpenter authored and David Teigland committed May 15, 2012
1 parent 56402f8 commit 77ddde5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 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: 1a058f5288a74a20d5567a85ab1a04a9de69a212
refs/heads/master: 75af271ed5f51b1f3506c7c1d567b1f32e5c9206
8 changes: 3 additions & 5 deletions trunk/fs/dlm/memory.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,21 +21,19 @@ static struct kmem_cache *rsb_cache;

int __init dlm_memory_init(void)
{
int ret = 0;

lkb_cache = kmem_cache_create("dlm_lkb", sizeof(struct dlm_lkb),
__alignof__(struct dlm_lkb), 0, NULL);
if (!lkb_cache)
ret = -ENOMEM;
return -ENOMEM;

rsb_cache = kmem_cache_create("dlm_rsb", sizeof(struct dlm_rsb),
__alignof__(struct dlm_rsb), 0, NULL);
if (!rsb_cache) {
kmem_cache_destroy(lkb_cache);
ret = -ENOMEM;
return -ENOMEM;
}

return ret;
return 0;
}

void dlm_memory_exit(void)
Expand Down

0 comments on commit 77ddde5

Please sign in to comment.