Skip to content

Commit

Permalink
net/9p: correct some comment errors in 9p file system code
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Sun Lianwen authored and David S. Miller committed May 10, 2018
1 parent 3148ded commit 4a026da
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 9 deletions.
2 changes: 1 addition & 1 deletion net/9p/trans_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#include <linux/module.h>

/**
* p9_release_req_pages - Release pages after the transaction.
* p9_release_pages - Release pages after the transaction.
*/
void p9_release_pages(struct page **pages, int nr_pages)
{
Expand Down
4 changes: 2 additions & 2 deletions net/9p/trans_fd.c
Original file line number Diff line number Diff line change
Expand Up @@ -1092,8 +1092,8 @@ static struct p9_trans_module p9_fd_trans = {
};

/**
* p9_poll_proc - poll worker thread
* @a: thread state and arguments
* p9_poll_workfn - poll worker thread
* @work: work queue
*
* polls all v9fs transports for new events and queues the appropriate
* work to the work queue
Expand Down
4 changes: 1 addition & 3 deletions net/9p/trans_rdma.c
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,6 @@
* @pd: Protection Domain pointer
* @qp: Queue Pair pointer
* @cq: Completion Queue pointer
* @dm_mr: DMA Memory Region pointer
* @lkey: The local access only memory region key
* @timeout: Number of uSecs to wait for connection management events
* @privport: Whether a privileged port may be used
* @port: The port to use
Expand Down Expand Up @@ -632,7 +630,7 @@ static int p9_rdma_bind_privport(struct p9_trans_rdma *rdma)
}

/**
* trans_create_rdma - Transport method for creating atransport instance
* rdma_create_trans - Transport method for creating a transport instance
* @client: client instance
* @addr: IP address string
* @args: Mount options string
Expand Down
5 changes: 2 additions & 3 deletions net/9p/trans_virtio.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ static atomic_t vp_pinned = ATOMIC_INIT(0);

/**
* struct virtio_chan - per-instance transport information
* @initialized: whether the channel is initialized
* @inuse: whether the channel is in use
* @lock: protects multiple elements within this structure
* @client: client instance
Expand Down Expand Up @@ -385,8 +384,8 @@ static int p9_get_mapped_pages(struct virtio_chan *chan,
* @uidata: user bffer that should be ued for zero copy read
* @uodata: user buffer that shoud be user for zero copy write
* @inlen: read buffer size
* @olen: write buffer size
* @hdrlen: reader header size, This is the size of response protocol data
* @outlen: write buffer size
* @in_hdr_len: reader header size, This is the size of response protocol data
*
*/
static int
Expand Down

0 comments on commit 4a026da

Please sign in to comment.