Commit c4e0cd4e authored by Zheng Yongjun's avatar Zheng Yongjun Committed by Miklos Szeredi

virtiofs: Fix spelling mistakes

Fix some spelling mistakes in comments:
refernce  ==> reference
happnes  ==> happens
threhold  ==> threshold
splitted  ==> split
mached  ==> matched
Signed-off-by: default avatarZheng Yongjun <zhengyongjun3@huawei.com>
Signed-off-by: default avatarMiklos Szeredi <mszeredi@redhat.com>
parent 6c88632b
...@@ -212,7 +212,7 @@ static int fuse_setup_one_mapping(struct inode *inode, unsigned long start_idx, ...@@ -212,7 +212,7 @@ static int fuse_setup_one_mapping(struct inode *inode, unsigned long start_idx,
dmap->writable = writable; dmap->writable = writable;
if (!upgrade) { if (!upgrade) {
/* /*
* We don't take a refernce on inode. inode is valid right now * We don't take a reference on inode. inode is valid right now
* and when inode is going away, cleanup logic should first * and when inode is going away, cleanup logic should first
* cleanup dmap entries. * cleanup dmap entries.
*/ */
...@@ -621,7 +621,7 @@ static int fuse_iomap_begin(struct inode *inode, loff_t pos, loff_t length, ...@@ -621,7 +621,7 @@ static int fuse_iomap_begin(struct inode *inode, loff_t pos, loff_t length,
} }
/* /*
* If read beyond end of file happnes, fs code seems to return * If read beyond end of file happens, fs code seems to return
* it as hole * it as hole
*/ */
iomap_hole: iomap_hole:
...@@ -1206,7 +1206,7 @@ static void fuse_dax_free_mem_worker(struct work_struct *work) ...@@ -1206,7 +1206,7 @@ static void fuse_dax_free_mem_worker(struct work_struct *work)
ret); ret);
} }
/* If number of free ranges are still below threhold, requeue */ /* If number of free ranges are still below threshold, requeue */
kick_dmap_free_worker(fcd, 1); kick_dmap_free_worker(fcd, 1);
} }
......
...@@ -91,7 +91,7 @@ static void fuse_drop_waiting(struct fuse_conn *fc) ...@@ -91,7 +91,7 @@ static void fuse_drop_waiting(struct fuse_conn *fc)
{ {
/* /*
* lockess check of fc->connected is okay, because atomic_dec_and_test() * lockess check of fc->connected is okay, because atomic_dec_and_test()
* provides a memory barrier mached with the one in fuse_wait_aborted() * provides a memory barrier matched with the one in fuse_wait_aborted()
* to ensure no wake-up is missed. * to ensure no wake-up is missed.
*/ */
if (atomic_dec_and_test(&fc->num_waiting) && if (atomic_dec_and_test(&fc->num_waiting) &&
......
...@@ -645,7 +645,7 @@ static ssize_t fuse_get_res_by_io(struct fuse_io_priv *io) ...@@ -645,7 +645,7 @@ static ssize_t fuse_get_res_by_io(struct fuse_io_priv *io)
* == bytes_transferred or rw == WRITE, the caller sets 'pos' to -1. * == bytes_transferred or rw == WRITE, the caller sets 'pos' to -1.
* *
* An example: * An example:
* User requested DIO read of 64K. It was splitted into two 32K fuse requests, * User requested DIO read of 64K. It was split into two 32K fuse requests,
* both submitted asynchronously. The first of them was ACKed by userspace as * both submitted asynchronously. The first of them was ACKed by userspace as
* fully completed (req->out.args[0].size == 32K) resulting in pos == -1. The * fully completed (req->out.args[0].size == 32K) resulting in pos == -1. The
* second request was ACKed as short, e.g. only 1K was read, resulting in * second request was ACKed as short, e.g. only 1K was read, resulting in
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment