diff options
author | Sun Lianwen <sunlw.fnst@cn.fujitsu.com> | 2018-05-07 21:49:38 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-05-10 08:21:53 -0400 |
commit | 4a026da91caaa36004a53a844dd00959370ea8fc (patch) | |
tree | 466fc79def3ad82e8cd48f3c06a64f6dccb30e5a | |
parent | 3148dedfe79e422f448a10250d3e2cdf8b7ee617 (diff) |
net/9p: correct some comment errors in 9p file system code
There are follow comment errors:
1 The function name is wrong in p9_release_pages() comment.
2 The function name and variable name is wrong in p9_poll_workfn() comment.
3 There is no variable dm_mr and lkey in struct p9_trans_rdma.
4 The function name is wrong in rdma_create_trans() comment.
5 There is no variable initialized in struct virtio_chan.
6 The variable name is wrong in p9_virtio_zc_request() comment.
Signed-off-by: Sun Lianwen <sunlw.fnst@cn.fujitsu.com>
Reviewed-by: Randy Dunlap <rdunlap@infradead.org>
Reviewed-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | net/9p/trans_common.c | 2 | ||||
-rw-r--r-- | net/9p/trans_fd.c | 4 | ||||
-rw-r--r-- | net/9p/trans_rdma.c | 4 | ||||
-rw-r--r-- | net/9p/trans_virtio.c | 5 |
4 files changed, 6 insertions, 9 deletions
diff --git a/net/9p/trans_common.c b/net/9p/trans_common.c index 38aa6345bdfa..b718db2085b2 100644 --- a/net/9p/trans_common.c +++ b/net/9p/trans_common.c | |||
@@ -16,7 +16,7 @@ | |||
16 | #include <linux/module.h> | 16 | #include <linux/module.h> |
17 | 17 | ||
18 | /** | 18 | /** |
19 | * p9_release_req_pages - Release pages after the transaction. | 19 | * p9_release_pages - Release pages after the transaction. |
20 | */ | 20 | */ |
21 | void p9_release_pages(struct page **pages, int nr_pages) | 21 | void p9_release_pages(struct page **pages, int nr_pages) |
22 | { | 22 | { |
diff --git a/net/9p/trans_fd.c b/net/9p/trans_fd.c index 0cfba919d167..848969fe7979 100644 --- a/net/9p/trans_fd.c +++ b/net/9p/trans_fd.c | |||
@@ -1092,8 +1092,8 @@ static struct p9_trans_module p9_fd_trans = { | |||
1092 | }; | 1092 | }; |
1093 | 1093 | ||
1094 | /** | 1094 | /** |
1095 | * p9_poll_proc - poll worker thread | 1095 | * p9_poll_workfn - poll worker thread |
1096 | * @a: thread state and arguments | 1096 | * @work: work queue |
1097 | * | 1097 | * |
1098 | * polls all v9fs transports for new events and queues the appropriate | 1098 | * polls all v9fs transports for new events and queues the appropriate |
1099 | * work to the work queue | 1099 | * work to the work queue |
diff --git a/net/9p/trans_rdma.c b/net/9p/trans_rdma.c index 6d8e3031978f..3d414acb7015 100644 --- a/net/9p/trans_rdma.c +++ b/net/9p/trans_rdma.c | |||
@@ -68,8 +68,6 @@ | |||
68 | * @pd: Protection Domain pointer | 68 | * @pd: Protection Domain pointer |
69 | * @qp: Queue Pair pointer | 69 | * @qp: Queue Pair pointer |
70 | * @cq: Completion Queue pointer | 70 | * @cq: Completion Queue pointer |
71 | * @dm_mr: DMA Memory Region pointer | ||
72 | * @lkey: The local access only memory region key | ||
73 | * @timeout: Number of uSecs to wait for connection management events | 71 | * @timeout: Number of uSecs to wait for connection management events |
74 | * @privport: Whether a privileged port may be used | 72 | * @privport: Whether a privileged port may be used |
75 | * @port: The port to use | 73 | * @port: The port to use |
@@ -632,7 +630,7 @@ static int p9_rdma_bind_privport(struct p9_trans_rdma *rdma) | |||
632 | } | 630 | } |
633 | 631 | ||
634 | /** | 632 | /** |
635 | * trans_create_rdma - Transport method for creating atransport instance | 633 | * rdma_create_trans - Transport method for creating a transport instance |
636 | * @client: client instance | 634 | * @client: client instance |
637 | * @addr: IP address string | 635 | * @addr: IP address string |
638 | * @args: Mount options string | 636 | * @args: Mount options string |
diff --git a/net/9p/trans_virtio.c b/net/9p/trans_virtio.c index 3aa5a93ad107..4d0372263e5d 100644 --- a/net/9p/trans_virtio.c +++ b/net/9p/trans_virtio.c | |||
@@ -60,7 +60,6 @@ static atomic_t vp_pinned = ATOMIC_INIT(0); | |||
60 | 60 | ||
61 | /** | 61 | /** |
62 | * struct virtio_chan - per-instance transport information | 62 | * struct virtio_chan - per-instance transport information |
63 | * @initialized: whether the channel is initialized | ||
64 | * @inuse: whether the channel is in use | 63 | * @inuse: whether the channel is in use |
65 | * @lock: protects multiple elements within this structure | 64 | * @lock: protects multiple elements within this structure |
66 | * @client: client instance | 65 | * @client: client instance |
@@ -385,8 +384,8 @@ static int p9_get_mapped_pages(struct virtio_chan *chan, | |||
385 | * @uidata: user bffer that should be ued for zero copy read | 384 | * @uidata: user bffer that should be ued for zero copy read |
386 | * @uodata: user buffer that shoud be user for zero copy write | 385 | * @uodata: user buffer that shoud be user for zero copy write |
387 | * @inlen: read buffer size | 386 | * @inlen: read buffer size |
388 | * @olen: write buffer size | 387 | * @outlen: write buffer size |
389 | * @hdrlen: reader header size, This is the size of response protocol data | 388 | * @in_hdr_len: reader header size, This is the size of response protocol data |
390 | * | 389 | * |
391 | */ | 390 | */ |
392 | static int | 391 | static int |