Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Sun Lianwen and committed by
David S. Miller
4a026da9 3148dedf

+6 -9
+1 -1
net/9p/trans_common.c
··· 16 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 21 void p9_release_pages(struct page **pages, int nr_pages) 22 22 {
+2 -2
net/9p/trans_fd.c
··· 1092 1092 }; 1093 1093 1094 1094 /** 1095 - * p9_poll_proc - poll worker thread 1096 - * @a: thread state and arguments 1095 + * p9_poll_workfn - poll worker thread 1096 + * @work: work queue 1097 1097 * 1098 1098 * polls all v9fs transports for new events and queues the appropriate 1099 1099 * work to the work queue
+1 -3
net/9p/trans_rdma.c
··· 68 68 * @pd: Protection Domain pointer 69 69 * @qp: Queue Pair pointer 70 70 * @cq: Completion Queue pointer 71 - * @dm_mr: DMA Memory Region pointer 72 - * @lkey: The local access only memory region key 73 71 * @timeout: Number of uSecs to wait for connection management events 74 72 * @privport: Whether a privileged port may be used 75 73 * @port: The port to use ··· 630 632 } 631 633 632 634 /** 633 - * trans_create_rdma - Transport method for creating atransport instance 635 + * rdma_create_trans - Transport method for creating a transport instance 634 636 * @client: client instance 635 637 * @addr: IP address string 636 638 * @args: Mount options string
+2 -3
net/9p/trans_virtio.c
··· 60 60 61 61 /** 62 62 * struct virtio_chan - per-instance transport information 63 - * @initialized: whether the channel is initialized 64 63 * @inuse: whether the channel is in use 65 64 * @lock: protects multiple elements within this structure 66 65 * @client: client instance ··· 384 385 * @uidata: user bffer that should be ued for zero copy read 385 386 * @uodata: user buffer that shoud be user for zero copy write 386 387 * @inlen: read buffer size 387 - * @olen: write buffer size 388 - * @hdrlen: reader header size, This is the size of response protocol data 388 + * @outlen: write buffer size 389 + * @in_hdr_len: reader header size, This is the size of response protocol data 389 390 * 390 391 */ 391 392 static int