Commit 82b699a6 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] futex uninlining

           text    data     bss     dec     hex filename
Before:    4674    1040    4100    9814    2656 kernel/futex.o
After:     4098    1176    4100    9374    249e kernel/futex.o
parent 4b66a41d
...@@ -246,7 +246,7 @@ static inline void get_key_refs(union futex_key *key) ...@@ -246,7 +246,7 @@ static inline void get_key_refs(union futex_key *key)
* Drop a reference to the resource addressed by a key. * Drop a reference to the resource addressed by a key.
* The hash bucket spinlock must not be held. * The hash bucket spinlock must not be held.
*/ */
static inline void drop_key_refs(union futex_key *key) static void drop_key_refs(union futex_key *key)
{ {
if (key->both.ptr != 0) { if (key->both.ptr != 0) {
if (key->both.offset & 1) if (key->both.offset & 1)
...@@ -260,7 +260,7 @@ static inline void drop_key_refs(union futex_key *key) ...@@ -260,7 +260,7 @@ static inline void drop_key_refs(union futex_key *key)
* The hash bucket lock must be held when this is called. * The hash bucket lock must be held when this is called.
* Afterwards, the futex_q must not be accessed. * Afterwards, the futex_q must not be accessed.
*/ */
static inline void wake_futex(struct futex_q *q) static void wake_futex(struct futex_q *q)
{ {
list_del_init(&q->list); list_del_init(&q->list);
if (q->filp) if (q->filp)
...@@ -384,7 +384,7 @@ static int futex_requeue(unsigned long uaddr1, unsigned long uaddr2, ...@@ -384,7 +384,7 @@ static int futex_requeue(unsigned long uaddr1, unsigned long uaddr2,
*/ */
/* The key must be already stored in q->key. */ /* The key must be already stored in q->key. */
static inline void queue_me(struct futex_q *q, int fd, struct file *filp) static void queue_me(struct futex_q *q, int fd, struct file *filp)
{ {
struct futex_hash_bucket *bh; struct futex_hash_bucket *bh;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment