Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 86231
b: refs/heads/master
c: 3e4ab74
h: refs/heads/master
i:
  86229: 72f50a1
  86227: a5a47aa
  86223: e063001
v: v3
  • Loading branch information
Thomas Gleixner authored and Linus Torvalds committed Feb 24, 2008
1 parent 81d51a1 commit 43de4c0
Show file tree
Hide file tree
Showing 2 changed files with 8 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: 43fe105a5c91b2f00ea7f900ed307fe980410612
refs/heads/master: 3e4ab747efa8e78562ec6782b08bbf21a00aba1b
12 changes: 7 additions & 5 deletions trunk/kernel/futex.c
Original file line number Diff line number Diff line change
Expand Up @@ -2145,8 +2145,14 @@ static struct file_system_type futex_fs_type = {

static int __init init(void)
{
int i = register_filesystem(&futex_fs_type);
int i;

for (i = 0; i < ARRAY_SIZE(futex_queues); i++) {
plist_head_init(&futex_queues[i].chain, &futex_queues[i].lock);
spin_lock_init(&futex_queues[i].lock);
}

i = register_filesystem(&futex_fs_type);
if (i)
return i;

Expand All @@ -2156,10 +2162,6 @@ static int __init init(void)
return PTR_ERR(futex_mnt);
}

for (i = 0; i < ARRAY_SIZE(futex_queues); i++) {
plist_head_init(&futex_queues[i].chain, &futex_queues[i].lock);
spin_lock_init(&futex_queues[i].lock);
}
return 0;
}
__initcall(init);

0 comments on commit 43de4c0

Please sign in to comment.