summaryrefslogtreecommitdiff
path: root/storeio
diff options
context:
space:
mode:
authorJonathan Neuschäfer <j.neuschaefer@gmx.net>2011-08-15 22:10:09 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2011-08-20 18:36:33 +0200
commitc0eaf0fad88f15c843098a43ca2cadbf009ce094 (patch)
tree7b129c5055ded1aa400d34409d64bbab363b3e9e /storeio
parent5a3976828225947d333ff2326d04f8b20e48e072 (diff)
fix common misspellings
* Fix spelling with codespell[1] and manually review it. [1] http://git.profusion.mobi/cgit.cgi/lucas/codespell/
Diffstat (limited to 'storeio')
-rw-r--r--storeio/dev.c6
-rw-r--r--storeio/pager.c4
2 files changed, 5 insertions, 5 deletions
diff --git a/storeio/dev.c b/storeio/dev.c
index a7a1dd8b..31b084f9 100644
--- a/storeio/dev.c
+++ b/storeio/dev.c
@@ -226,7 +226,7 @@ dev_sync(struct dev *dev, int wait)
}
/* Takes care of buffering I/O to/from DEV for a transfer at position OFFS,
- length LEN; the amount of I/O sucessfully done is returned in AMOUNT.
+ length LEN; the amount of I/O successfully done is returned in AMOUNT.
BUF_RW is called to do I/O that's entirely inside DEV's internal buffer,
and RAW_RW to do I/O directly to DEV's store. */
static inline error_t
@@ -312,8 +312,8 @@ dev_rw (struct dev *dev, off_t offs, size_t len, size_t *amount,
/* Some non-aligned I/O has been done, or is needed, so we need to deal
with DEV's buffer, which means getting an exclusive lock. */
{
- /* Aquire a writer lock instead of a reader lock. Note that other
- writers may have aquired the lock by the time we get it. */
+ /* Acquire a writer lock instead of a reader lock. Note that other
+ writers may have acquired the lock by the time we get it. */
rwlock_reader_unlock (&dev->io_lock);
err = buffered_rw (dev, offs, len, amount, buf_rw, raw_rw);
}
diff --git a/storeio/pager.c b/storeio/pager.c
index 0ad126c1..1fb1d07e 100644
--- a/storeio/pager.c
+++ b/storeio/pager.c
@@ -33,7 +33,7 @@
/* For pager PAGER, read one page from offset PAGE. Set *BUF to be the
address of the page, and set *WRITE_LOCK if the page must be provided
- read-only. The only permissable error returns are EIO, EDQUOT, and
+ read-only. The only permissible error returns are EIO, EDQUOT, and
ENOSPC. */
error_t
pager_read_page (struct user_pager_info *upi,
@@ -65,7 +65,7 @@ pager_read_page (struct user_pager_info *upi,
}
/* For pager PAGER, synchronously write one page from BUF to offset PAGE. In
- addition, vm_deallocate (or equivalent) BUF. The only permissable error
+ addition, vm_deallocate (or equivalent) BUF. The only permissible error
returns are EIO, EDQUOT, and ENOSPC. */
error_t
pager_write_page (struct user_pager_info *upi,