diff options
author | Eyal Birger <eyal.birger@gmail.com> | 2015-03-01 07:58:25 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-03-02 00:19:29 -0500 |
commit | 49a6fe055739a77ef910c283efb99928423c97a0 (patch) | |
tree | 86912cf70564f5ae5891621a761f6c834110bb5f /net/bluetooth/hci_request.c | |
parent | 287f3a943fef58c5c73e42545169443be379222f (diff) |
net: bluetooth: compact struct bt_skb_cb by inlining struct hci_req_ctrl
struct hci_req_ctrl is never used outside of struct bt_skb_cb;
Inlining it frees 8 bytes on a 64 bit system in skb->cb[] allowing
the addition of more ancillary data.
Signed-off-by: Eyal Birger <eyal.birger@gmail.com>
Reviewed-by: Shmulik Ladkani <shmulik.ladkani@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/bluetooth/hci_request.c')
-rw-r--r-- | net/bluetooth/hci_request.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/net/bluetooth/hci_request.c b/net/bluetooth/hci_request.c index b59f92c6df0c..db2f45a516e9 100644 --- a/net/bluetooth/hci_request.c +++ b/net/bluetooth/hci_request.c | |||
@@ -55,7 +55,7 @@ int hci_req_run(struct hci_request *req, hci_req_complete_t complete) | |||
55 | return -ENODATA; | 55 | return -ENODATA; |
56 | 56 | ||
57 | skb = skb_peek_tail(&req->cmd_q); | 57 | skb = skb_peek_tail(&req->cmd_q); |
58 | bt_cb(skb)->req.complete = complete; | 58 | bt_cb(skb)->req_complete = complete; |
59 | 59 | ||
60 | spin_lock_irqsave(&hdev->cmd_q.lock, flags); | 60 | spin_lock_irqsave(&hdev->cmd_q.lock, flags); |
61 | skb_queue_splice_tail(&req->cmd_q, &hdev->cmd_q); | 61 | skb_queue_splice_tail(&req->cmd_q, &hdev->cmd_q); |
@@ -116,9 +116,9 @@ void hci_req_add_ev(struct hci_request *req, u16 opcode, u32 plen, | |||
116 | } | 116 | } |
117 | 117 | ||
118 | if (skb_queue_empty(&req->cmd_q)) | 118 | if (skb_queue_empty(&req->cmd_q)) |
119 | bt_cb(skb)->req.start = true; | 119 | bt_cb(skb)->req_start = true; |
120 | 120 | ||
121 | bt_cb(skb)->req.event = event; | 121 | bt_cb(skb)->req_event = event; |
122 | 122 | ||
123 | skb_queue_tail(&req->cmd_q, skb); | 123 | skb_queue_tail(&req->cmd_q, skb); |
124 | } | 124 | } |