staging: pohmelfs: Fix some typos, and comments.

The patch below fixes some typos, and makes some comments sound more proper.

Signed-off-by: Justin P. Mattock <justinmattock@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
Justin P. Mattock 2011-01-31 22:48:25 -08:00 committed by Greg Kroah-Hartman
parent 2c62c674e0
commit c69ab1a2cf
3 changed files with 7 additions and 7 deletions

View File

@ -134,7 +134,7 @@ int pohmelfs_copy_config(struct pohmelfs_sb *psb)
goto out_unlock; goto out_unlock;
/* /*
* Run over all entries in given config group and try to crate and * Run over all entries in given config group and try to create and
* initialize those, which do not exist in superblock list. * initialize those, which do not exist in superblock list.
* Skip all existing entries. * Skip all existing entries.
*/ */

View File

@ -834,7 +834,7 @@ static void pohmelfs_i_callback(struct rcu_head *head)
} }
/* /*
* ->detroy_inode() callback. Deletes inode from the caches * ->destroy_inode() callback. Deletes inode from the caches
* and frees private data. * and frees private data.
*/ */
static void pohmelfs_destroy_inode(struct inode *inode) static void pohmelfs_destroy_inode(struct inode *inode)
@ -1127,18 +1127,18 @@ static ssize_t pohmelfs_getxattr(struct dentry *dentry, const char *name,
/* /*
* This loop is a bit ugly, since it waits until reference counter * This loop is a bit ugly, since it waits until reference counter
* hits 1 and then put object here. Main goal is to prevent race with * hits 1 and then puts the object here. Main goal is to prevent race with
* network thread, when it can start processing given request, i.e. * the network thread, when it can start processing the given request, i.e.
* increase its reference counter but yet not complete it, while * increase its reference counter but yet not complete it, while
* we will exit from ->getxattr() with timeout, and although request * we will exit from ->getxattr() with timeout, and although request
* will not be freed (its reference counter was increased by network * will not be freed (its reference counter was increased by network
* thread), data pointer provided by user may be released, so we will * thread), data pointer provided by user may be released, so we will
* overwrite already freed area in network thread. * overwrite an already freed area in the network thread.
* *
* Now after timeout we remove request from the cache, so it can not be * Now after timeout we remove request from the cache, so it can not be
* found by network thread, and wait for its reference counter to hit 1, * found by network thread, and wait for its reference counter to hit 1,
* i.e. if network thread already started to process this request, we wait * i.e. if network thread already started to process this request, we wait
* it to finish, and then free object locally. If reference counter is * for it to finish, and then free object locally. If reference counter is
* already 1, i.e. request is not used by anyone else, we can free it without * already 1, i.e. request is not used by anyone else, we can free it without
* problem. * problem.
*/ */

View File

@ -191,7 +191,7 @@ enum {
/* /*
* POHMELFS capabilities: information about supported * POHMELFS capabilities: information about supported
* crypto operations (hash/cipher, modes, key sizes and so on), * crypto operations (hash/cipher, modes, key sizes and so on),
* root informaion (used/available size, number of objects, permissions) * root information (used/available size, number of objects, permissions)
*/ */
enum pohmelfs_capabilities { enum pohmelfs_capabilities {
POHMELFS_CRYPTO_CAPABILITIES = 0, POHMELFS_CRYPTO_CAPABILITIES = 0,