summaryrefslogtreecommitdiff
path: root/block/sheepdog.c
diff options
context:
space:
mode:
authorStefan Weil <weil@mail.berlios.de>2011-04-26 10:29:36 +0200
committerStefan Hajnoczi <stefanha@linux.vnet.ibm.com>2011-05-06 08:19:25 +0100
commitebabb67a17b58c729e12523cb21b2d6c1d93abc6 (patch)
treefe83ed50cefab24b20f10ccaa523f4e9f22d14db /block/sheepdog.c
parent3964f535c35c08470ac69bd553282af500bc8bb0 (diff)
Fix typo in code and comments
Replace writeable -> writable Signed-off-by: Stefan Weil <weil@mail.berlios.de> Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Diffstat (limited to 'block/sheepdog.c')
-rw-r--r--block/sheepdog.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/block/sheepdog.c b/block/sheepdog.c
index 98946d72b..0392ca8c9 100644
--- a/block/sheepdog.c
+++ b/block/sheepdog.c
@@ -196,7 +196,7 @@ static inline uint64_t fnv_64a_buf(void *buf, size_t len, uint64_t hval)
return hval;
}
-static inline int is_data_obj_writeable(SheepdogInode *inode, unsigned int idx)
+static inline int is_data_obj_writable(SheepdogInode *inode, unsigned int idx)
{
return inode->vdi_id == inode->data_vdi_id[idx];
}
@@ -1577,7 +1577,7 @@ static void sd_readv_writev_bh_cb(void *p)
create = 1;
} else if (acb->aiocb_type == AIOCB_WRITE_UDATA
- && !is_data_obj_writeable(inode, idx)) {
+ && !is_data_obj_writable(inode, idx)) {
/* Copy-On-Write */
create = 1;
old_oid = oid;