cleanup: spell check all strings and comments
authorErez_Zadok <ezk@cs.sunysb.edu>
Sun, 25 Mar 2007 00:06:44 +0000 (20:06 -0400)
committerErez Zadok <ezk@cs.sunysb.edu>
Tue, 11 Nov 2014 02:30:22 +0000 (21:30 -0500)
fs/unionfs/branchman.c
fs/unionfs/commonfops.c
fs/unionfs/copyup.c
fs/unionfs/file.c
fs/unionfs/inode.c
fs/unionfs/lookup.c
fs/unionfs/main.c
fs/unionfs/rename.c
fs/unionfs/sioq.h
fs/unionfs/super.c
fs/unionfs/union.h

index a11796ca8fa4257663bcf1fb398e9546792e6170..cd6a22bfb3670dd4c7f9c453fabf3b4835c2e811 100644 (file)
@@ -19,7 +19,7 @@
 #include "union.h"
 
 /*
- * return to userspace the branch indices containing the file in question
+ * return to user-space the branch indices containing the file in question
  *
  * We use fd_set and therefore we are limited to the number of the branches
  * to FD_SETSIZE, which is currently 1024 - plenty for most people
index bef8035120528f2b7c0bae984df97226d4db604e..4a66d102e637eaa6c0dbd663acc702bca4ace905 100644 (file)
@@ -130,7 +130,7 @@ static void cleanup_file(struct file *file)
                        int i;  /* holds (possibly) updated branch index */
                        i = find_new_branch_index(file, bindex, sb);
                        if (i < 0)
-                               printk(KERN_ERR "unionfs: no supberlock for "
+                               printk(KERN_ERR "unionfs: no superblock for "
                                       "file %p\n", file);
                        else {
                                unionfs_read_lock(sb);
index 72799a1cf9f5824db5a9d35acb67ee051d0a81c8..5829d856b048c4683928e7ba831dc296bf2cf33f 100644 (file)
@@ -437,7 +437,7 @@ static int copyup_named_dentry(struct inode *dir, struct dentry *dentry,
                goto out_unlink;
 #endif
 
-       /* do not allow files getting deleted to be reinterposed */
+       /* do not allow files getting deleted to be re-interposed */
        if (!d_deleted(dentry))
                unionfs_reinterpose(dentry);
 
@@ -463,7 +463,7 @@ out_unlink:
        /*
         * TODO: should we reset the error to something like -EIO?
         *
-        * If we don't reset, the user may get some non-sensical errors, but
+        * If we don't reset, the user may get some nonsensical errors, but
         * on the other hand, if we reset to EIO, we guarantee that the user
         * will get a "confusing" error message.
         */
@@ -475,7 +475,7 @@ out_free:
        /*
         * If old_hidden_dentry was a directory, we need to dput it.  If it
         * was a file, then it was already dput indirectly by other
-        * functions we call ablve which operate on regular files.
+        * functions we call above which operate on regular files.
         */
        if (old_hidden_dentry && old_hidden_dentry->d_inode &&
            S_ISDIR(old_hidden_dentry->d_inode->i_mode))
@@ -529,7 +529,7 @@ int copyup_file(struct inode *dir, struct file *file, int bstart,
 }
 
 /*
- * This function replicates the directory structure upto given dentry in the
+ * This function replicates the directory structure up-to given dentry in the
  * bindex branch. Can create directory structure recursively to the right
  * also.
  */
@@ -614,7 +614,7 @@ static void __set_dentry(struct dentry * upper, struct dentry * lower,
 }
 
 /*
- * This function replicates the directory structure upto given dentry
+ * This function replicates the directory structure up-to given dentry
  * in the bindex branch.
  */
 static struct dentry *create_parents_named(struct inode *dir,
@@ -721,7 +721,7 @@ static struct dentry *create_parents_named(struct inode *dir,
                } else {
 
                        /*
-                        * is the name a whiteout of the childname ?
+                        * is the name a whiteout of the child name ?
                         * lookup the whiteout child in the underlying file
                         * system
                         */
index 430cb43e2126235fc0748dfc7f379ced58d08005..47ce5ce3f6bde8c6e1057a415248090a9d41b9cf 100644 (file)
@@ -151,7 +151,7 @@ static unsigned int unionfs_poll(struct file *file, poll_table * wait)
 
        unionfs_read_lock(file->f_dentry->d_sb);
        if (unionfs_file_revalidate(file, 0)) {
-               /* We should pretend an error happend. */
+               /* We should pretend an error happened. */
                mask = POLLERR | POLLIN | POLLOUT;
                goto out;
        }
index 6591c0bde9e27d5dc6fa43a31f59ea8a34ce0b6e..9042c0f49297ee1dbbd54c9f93d5f7dfc9c2c0d6 100644 (file)
@@ -614,7 +614,7 @@ static int unionfs_mkdir(struct inode *parent, struct dentry *dentry, int mode)
 
                unlock_dir(hidden_parent_dentry);
 
-               /* did the mkdir suceed? */
+               /* did the mkdir succeed? */
                if (err)
                        break;
 
@@ -924,7 +924,7 @@ static int unionfs_permission(struct inode *inode, int mask,
 
                /*
                 * check the condition for D-F-D underlying files/directories,
-                * we dont have to check for files, if we are checking for
+                * we don't have to check for files, if we are checking for
                 * directories.
                 */
                if (!is_file && !S_ISDIR(hidden_inode->i_mode))
index e251b10a29d2d8f8443725d2ff94c9cce7c895a4..b672000f9e31643fab265086438f2a49333bec51 100644 (file)
@@ -229,7 +229,7 @@ struct dentry *unionfs_lookup_backend(struct dentry *dentry,
                                first_hidden_dentry = hidden_dentry;
                                /*
                                 * FIXME: following line needs to be changed
-                                * to allow mountpoint crossing
+                                * to allow mount-point crossing
                                 */
                                first_dentry = parent_dentry;
                                first_hidden_mnt =
@@ -250,7 +250,7 @@ struct dentry *unionfs_lookup_backend(struct dentry *dentry,
                unionfs_set_lower_dentry_idx(dentry, bindex, hidden_dentry);
                /*
                 * FIXME: the following line needs to get fixed to allow
-                * mountpoint crossing
+                * mount-point crossing
                 */
                unionfs_set_lower_mnt_idx(dentry, bindex,
                                          unionfs_mntget(parent_dentry,
@@ -318,7 +318,7 @@ out_negative:
 
                /*
                 * FIXME: the following line needs to be changed to allow
-                * mountpoint crossing
+                * mount-point crossing
                 */
                first_dentry = dentry;
                first_hidden_mnt = unionfs_mntget(dentry, bindex);
@@ -347,7 +347,7 @@ out_positive:
        dput(first_hidden_dentry);
        unionfs_mntput(first_dentry, first_dentry_offset);
 
-       /* Partial lookups need to reinterpose, or throw away older negs. */
+       /* Partial lookups need to re-interpose, or throw away older negs. */
        if (lookupmode == INTERPOSE_PARTIAL) {
                if (dentry->d_inode) {
                        unionfs_reinterpose(dentry);
index 864fcc984e8b16a76cc91f23c50a1b22803076f1..7b4e7c2d81143bdd7f8c1bd5974ed80330b42636 100644 (file)
@@ -493,7 +493,7 @@ out:
 }
 
 /*
- * our custom d_alloc_root workalike
+ * our custom d_alloc_root work-alike
  *
  * we can't use d_alloc_root if we want to use our own interpose function
  * unchanged, so we simply call our own "fake" d_alloc_root
index bce5b46f7c90cf7385d7df0c9ade9b99b16aff42..f71bba67e99eb42bdd98989f73421fb6ac8a22aa 100644 (file)
@@ -129,7 +129,7 @@ out_unlock:
 
 out:
        if (!err) {
-               /* Fixup the newdentry. */
+               /* Fixup the new_dentry. */
                if (bindex < dbstart(new_dentry))
                        set_dbstart(new_dentry, bindex);
                else if (bindex > dbend(new_dentry))
@@ -360,7 +360,7 @@ static struct dentry *lookup_whiteout(struct dentry *dentry)
 /*
  * We can't copyup a directory, because it may involve huge
  * numbers of children, etc.  Doing that in the kernel would
- * be bad, so instead we let the userspace recurse and ask us
+ * be bad, so instead we let the user-space recurse and ask us
  * to copy up each file separately
  */
 static int may_rename_dir(struct dentry *dentry)
@@ -411,7 +411,7 @@ int unionfs_rename(struct inode *old_dir, struct dentry *old_dentry,
 
        /*
         * if new_dentry is already hidden because of whiteout,
-        * simply override it even if the whiteouted dir is not empty.
+        * simply override it even if the whited-out dir is not empty.
         */
        wh_dentry = lookup_whiteout(new_dentry);
        if (!IS_ERR(wh_dentry))
index 7751ff1739836453a4bccb35ee6e0d83c82f70a1..623ff19e0655b02cb477b929cc2f94b8e61e0792 100644 (file)
@@ -83,7 +83,7 @@ extern int __init init_sioq(void);
 extern __exit void stop_sioq(void);
 extern void run_sioq(work_func_t func, struct sioq_args *args);
 
-/* Extern definitions for our privlege escalation helpers */
+/* Extern definitions for our privilege escalation helpers */
 extern void __unionfs_create(struct work_struct *work);
 extern void __unionfs_mkdir(struct work_struct *work);
 extern void __unionfs_mknod(struct work_struct *work);
index 045d74dda18446ad53f749d74f0f4f7117c24821..f022673855a43fad51d82dfbb6a3d6a45171e71f 100644 (file)
@@ -628,7 +628,7 @@ out_no_change:
         * WE'RE ALMOST DONE: see if we need to allocate a small-sized new
         * vector, copy the vectors to their correct place, release the
         * refcnt of the older ones, and return.
-        * Also handle invalidating any pgaes that will have to be re-read.
+        * Also handle invalidating any pages that will have to be re-read.
         *******************************************************************/
 
        /*
@@ -691,7 +691,7 @@ out_no_change:
         * super.  This function calls invalidate_inode_pages(mapping),
         * which calls invalidate_mapping_pages(): the latter, however, will
         * not invalidate pages which are dirty, locked, under writeback, or
-        * mapped into pagetables.  We shouldn't have to worry about dirty
+        * mapped into page tables.  We shouldn't have to worry about dirty
         * or under-writeback pages, because do_remount_sb() called
         * fsync_super() which would not have returned until all dirty pages
         * were flushed.
@@ -883,8 +883,8 @@ static void unionfs_umount_begin(struct vfsmount *mnt, int flags)
 
        if (!(flags & MNT_FORCE))
                /*
-                * we are not being MNT_FORCEd, therefore we should emulate
-                * old behaviour
+                * we are not being MNT_FORCE'd, therefore we should emulate
+                * old behavior
                 */
                return;
 
index a6a05078332329abb5bffdc636b1b3f8fa30a318..6a030188b57ef14f8a0e51371341b96d40e84929 100644 (file)
@@ -242,7 +242,7 @@ void update_bstart(struct dentry *dentry);
  * EXTERNALS:
  */
 
-/* replicates the directory structure upto given dentry in given branch */
+/* replicates the directory structure up to given dentry in given branch */
 extern struct dentry *create_parents(struct inode *dir, struct dentry *dentry,
                                     int bindex);