History

virtiofs: Fix spelling mistakes

Fix some spelling mistakes in comments: refernce ==> reference happnes ==> happens threhold ==> threshold splitted ==> split mached ==> matched

Zheng Yongjun committed 5 years ago

Commit c4e0cd41 parent 6c886323 files · +5 −5Browse files

Unified · Split

3 files
  1. fs/fuse/dax.c +3 −3
  2. fs/fuse/dev.c +1 −1
  3. fs/fuse/file.c +1 −1
fs/fuse/dax.c+3−3
@@ -212,7 +212,7 @@ static int fuse_setup_one_mapping(struct inode *inode, unsigned long start_idx, · 211 unmodified lines
212 dmap->writable = writable;212 dmap->writable = writable;
213 if (!upgrade) {213 if (!upgrade) {
214 /*214 /*
215 * We don't take a refernce on inode. inode is valid right now215 * We don't take a reference on inode. inode is valid right now
216 * and when inode is going away, cleanup logic should first216 * and when inode is going away, cleanup logic should first
217 * cleanup dmap entries.217 * cleanup dmap entries.
218 */218 */
@@ -621,7 +621,7 @@ static int fuse_iomap_begin(struct inode *inode, loff_t pos, loff_t length, · 402 unmodified lines
621 }621 }
622 622
623 /*623 /*
624 * If read beyond end of file happnes, fs code seems to return624 * If read beyond end of file happens, fs code seems to return
625 * it as hole625 * it as hole
626 */626 */
627iomap_hole:627iomap_hole:
@@ -1206,7 +1206,7 @@ static void fuse_dax_free_mem_worker(struct work_struct *work) · 578 unmodified lines
1206 ret);1206 ret);
1207 }1207 }
1208 1208
1209 /* If number of free ranges are still below threhold, requeue */1209 /* If number of free ranges are still below threshold, requeue */
1210 kick_dmap_free_worker(fcd, 1);1210 kick_dmap_free_worker(fcd, 1);
1211}1211}
1212 1212
fs/fuse/dev.c+1−1
@@ -91,7 +91,7 @@ static void fuse_drop_waiting(struct fuse_conn *fc) · 90 unmodified lines
91{91{
92 /*92 /*
93 * lockess check of fc->connected is okay, because atomic_dec_and_test()93 * lockess check of fc->connected is okay, because atomic_dec_and_test()
94 * provides a memory barrier mached with the one in fuse_wait_aborted()94 * provides a memory barrier matched with the one in fuse_wait_aborted()
95 * to ensure no wake-up is missed.95 * to ensure no wake-up is missed.
96 */96 */
97 if (atomic_dec_and_test(&fc->num_waiting) &&97 if (atomic_dec_and_test(&fc->num_waiting) &&
fs/fuse/file.c+1−1
@@ -645,7 +645,7 @@ static ssize_t fuse_get_res_by_io(struct fuse_io_priv *io) · 644 unmodified lines
645 * == bytes_transferred or rw == WRITE, the caller sets 'pos' to -1.645 * == bytes_transferred or rw == WRITE, the caller sets 'pos' to -1.
646 *646 *
647 * An example:647 * An example:
648 * User requested DIO read of 64K. It was splitted into two 32K fuse requests,648 * User requested DIO read of 64K. It was split into two 32K fuse requests,
649 * both submitted asynchronously. The first of them was ACKed by userspace as649 * both submitted asynchronously. The first of them was ACKed by userspace as
650 * fully completed (req->out.args[0].size == 32K) resulting in pos == -1. The650 * fully completed (req->out.args[0].size == 32K) resulting in pos == -1. The
651 * second request was ACKed as short, e.g. only 1K was read, resulting in651 * second request was ACKed as short, e.g. only 1K was read, resulting in