diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2012-01-12 00:14:42 -0500 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2012-01-12 00:14:42 -0500 |
commit | f96fde41f7f9af6cf20f6a1919f5d9670f84d574 (patch) | |
tree | 14b8a0343b255989ac8ba0ea34e18dca419723df /include/linux/virtio.h | |
parent | 5dfc17628d57f9e62043ed0cba03a6e3eb019a78 (diff) |
virtio: rename virtqueue_add_buf_gfp to virtqueue_add_buf
Remove wrapper functions. This makes the allocation type explicit in
all callers; I used GPF_KERNEL where it seemed obvious, left it at
GFP_ATOMIC otherwise.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'include/linux/virtio.h')
-rw-r--r-- | include/linux/virtio.h | 21 |
1 files changed, 6 insertions, 15 deletions
diff --git a/include/linux/virtio.h b/include/linux/virtio.h index 73ad7243128f..ec1706e7df50 100644 --- a/include/linux/virtio.h +++ b/include/linux/virtio.h | |||
@@ -25,21 +25,12 @@ struct virtqueue { | |||
25 | void *priv; | 25 | void *priv; |
26 | }; | 26 | }; |
27 | 27 | ||
28 | int virtqueue_add_buf_gfp(struct virtqueue *vq, | 28 | int virtqueue_add_buf(struct virtqueue *vq, |
29 | struct scatterlist sg[], | 29 | struct scatterlist sg[], |
30 | unsigned int out_num, | 30 | unsigned int out_num, |
31 | unsigned int in_num, | 31 | unsigned int in_num, |
32 | void *data, | 32 | void *data, |
33 | gfp_t gfp); | 33 | gfp_t gfp); |
34 | |||
35 | static inline int virtqueue_add_buf(struct virtqueue *vq, | ||
36 | struct scatterlist sg[], | ||
37 | unsigned int out_num, | ||
38 | unsigned int in_num, | ||
39 | void *data) | ||
40 | { | ||
41 | return virtqueue_add_buf_gfp(vq, sg, out_num, in_num, data, GFP_ATOMIC); | ||
42 | } | ||
43 | 34 | ||
44 | void virtqueue_kick(struct virtqueue *vq); | 35 | void virtqueue_kick(struct virtqueue *vq); |
45 | 36 | ||