Fix spelling typo in lustre/lustre/llite Signed-off-by: Masanari Iida <standby24x7@xxxxxxxxx> --- drivers/staging/lustre/lustre/llite/dcache.c | 2 +- drivers/staging/lustre/lustre/llite/file.c | 10 +++++----- drivers/staging/lustre/lustre/llite/llite_close.c | 2 +- drivers/staging/lustre/lustre/llite/llite_internal.h | 12 ++++++------ drivers/staging/lustre/lustre/llite/llite_lib.c | 4 ++-- drivers/staging/lustre/lustre/llite/llite_mmap.c | 2 +- drivers/staging/lustre/lustre/llite/lloop.c | 6 +++--- drivers/staging/lustre/lustre/llite/namei.c | 2 +- drivers/staging/lustre/lustre/llite/rw.c | 8 ++++---- drivers/staging/lustre/lustre/llite/statahead.c | 2 +- drivers/staging/lustre/lustre/llite/vvp_io.c | 6 +++--- drivers/staging/lustre/lustre/llite/xattr_cache.c | 8 ++++---- 12 files changed, 32 insertions(+), 32 deletions(-) diff --git a/drivers/staging/lustre/lustre/llite/dcache.c b/drivers/staging/lustre/lustre/llite/dcache.c index f971a54..8b55080 100644 --- a/drivers/staging/lustre/lustre/llite/dcache.c +++ b/drivers/staging/lustre/lustre/llite/dcache.c @@ -160,7 +160,7 @@ static int ll_ddelete(const struct dentry *de) /* kernel >= 2.6.38 last refcount is decreased after this function. */ LASSERT(d_count(de) == 1); - /* Disable this piece of code temproarily because this is called + /* Disable this piece of code temporarily because this is called * inside dcache_lock so it's not appropriate to do lots of work * here. ATTENTION: Before this piece of code enabling, LU-2487 must be * resolved. */ diff --git a/drivers/staging/lustre/lustre/llite/file.c b/drivers/staging/lustre/lustre/llite/file.c index 70b48ab..8e844a6 100644 --- a/drivers/staging/lustre/lustre/llite/file.c +++ b/drivers/staging/lustre/lustre/llite/file.c @@ -1124,7 +1124,7 @@ restart: vio->u.splice.cui_flags = args->u.splice.via_flags; break; default: - CERROR("Unknow IO type - %u\n", vio->cui_io_subtype); + CERROR("Unknown IO type - %u\n", vio->cui_io_subtype); LBUG(); } result = cl_io_loop(env, io); @@ -2030,7 +2030,7 @@ static int ll_swap_layouts(struct file *file1, struct file *file2, llss->ia2.ia_valid = ATTR_MTIME | ATTR_ATIME; } - /* ultimate check, before swaping the layouts we check if + /* ultimate check, before swapping the layouts we check if * dataversion has changed (if requested) */ if (llss->check_dv1) { rc = ll_data_version(llss->inode1, &dv, 0); @@ -2695,7 +2695,7 @@ int ll_file_flock(struct file *file, int cmd, struct file_lock *file_lock) LASSERT((cmd == F_SETLKW) || (cmd == F_SETLK)); /* flocks are whole-file locks */ flock.l_flock.end = OFFSET_MAX; - /* For flocks owner is determined by the local file desctiptor*/ + /* For flocks owner is determined by the local file descriptor*/ flock.l_flock.owner = (unsigned long)file_lock->fl_file; } else if (file_lock->fl_flags & FL_POSIX) { flock.l_flock.owner = (unsigned long)file_lock->fl_owner; @@ -3200,7 +3200,7 @@ struct inode_operations ll_file_inode_operations = { .get_acl = ll_get_acl, }; -/* dynamic ioctl number support routins */ +/* dynamic ioctl number support routines */ static struct llioc_ctl_data { struct rw_semaphore ioc_sem; struct list_head ioc_head; @@ -3324,7 +3324,7 @@ int ll_layout_conf(struct inode *inode, const struct cl_object_conf *conf) if (result == 0) { /* it can only be allowed to match after layout is * applied to inode otherwise false layout would be - * seen. Applying layout shoud happen before dropping + * seen. Applying layout should happen before dropping * the intent lock. */ ldlm_lock_allow_match(lock); } diff --git a/drivers/staging/lustre/lustre/llite/llite_close.c b/drivers/staging/lustre/lustre/llite/llite_close.c index e2996c4..38c2d0e 100644 --- a/drivers/staging/lustre/lustre/llite/llite_close.c +++ b/drivers/staging/lustre/lustre/llite/llite_close.c @@ -348,7 +348,7 @@ static int ll_close_thread(void *arg) break; inode = ll_info2i(lli); - CDEBUG(D_INFO, "done_writting for inode %lu/%u\n", + CDEBUG(D_INFO, "done_writing for inode %lu/%u\n", inode->i_ino, inode->i_generation); ll_done_writing(inode); iput(inode); diff --git a/drivers/staging/lustre/lustre/llite/llite_internal.h b/drivers/staging/lustre/lustre/llite/llite_internal.h index f67c508..69aba0a 100644 --- a/drivers/staging/lustre/lustre/llite/llite_internal.h +++ b/drivers/staging/lustre/lustre/llite/llite_internal.h @@ -525,7 +525,7 @@ struct ll_sb_info { atomic_t ll_agl_total; /* AGL thread started count */ dev_t ll_sdev_orig; /* save s_dev before assign for - * clustred nfs */ + * clustered nfs */ struct rmtacl_ctl_table ll_rct; struct eacl_table ll_et; __kernel_fsid_t ll_fsid; @@ -908,7 +908,7 @@ struct ccc_object *cl_inode2ccc(struct inode *inode); void vvp_write_pending (struct ccc_object *club, struct ccc_page *page); void vvp_write_complete(struct ccc_object *club, struct ccc_page *page); -/* specific achitecture can implement only part of this list */ +/* specific architecture can implement only part of this list */ enum vvp_io_subtype { /** normal IO */ IO_NORMAL, @@ -1361,7 +1361,7 @@ ll_statahead_enter(struct inode *dir, struct dentry **dentryp, int only_unplug) return do_statahead_enter(dir, dentryp, only_unplug); } -/* llite ioctl register support rountine */ +/* llite ioctl register support routine */ enum llioc_iter { LLIOC_CONT = 0, LLIOC_STOP @@ -1373,7 +1373,7 @@ enum llioc_iter { * Rules to write a callback function: * * Parameters: - * @magic: Dynamic ioctl call routine will feed this vaule with the pointer + * @magic: Dynamic ioctl call routine will feed this value with the pointer * returned to ll_iocontrol_register. Callback functions should use this * data to check the potential collasion of ioctl cmd. If collasion is * found, callback function should return LLIOC_CONT. @@ -1398,7 +1398,7 @@ enum llioc_iter ll_iocontrol_call(struct inode *inode, struct file *file, * @cb: callback function, it will be called if an ioctl command is found to * belong to the command list @cmd. * - * Return vaule: + * Return value: * A magic pointer will be returned if success; * otherwise, NULL will be returned. * */ @@ -1508,7 +1508,7 @@ static inline void ll_set_lock_data(struct obd_export *exp, struct inode *inode, * separate locks in different namespaces, Master MDT, * where the name entry is, will grant LOOKUP lock, * remote MDT, where the object is, will grant - * UPDATE|PERM lock. The inode will be attched to both + * UPDATE|PERM lock. The inode will be attached to both * LOOKUP and PERM locks, so revoking either locks will * case the dcache being cleared */ if (it->d.lustre.it_remote_lock_mode) { diff --git a/drivers/staging/lustre/lustre/llite/llite_lib.c b/drivers/staging/lustre/lustre/llite/llite_lib.c index 9100c93..ed4a70c 100644 --- a/drivers/staging/lustre/lustre/llite/llite_lib.c +++ b/drivers/staging/lustre/lustre/llite/llite_lib.c @@ -279,7 +279,7 @@ static int client_common_fill_super(struct super_block *sb, char *md, char *dt, /* For mount, we only need fs info from MDT0, and also in DNE, it * can make sure the client can be mounted as long as MDT0 is - * avaible */ + * available */ err = obd_statfs(NULL, sbi->ll_md_exp, osfs, cfs_time_shift_64(-OBD_STATFS_CACHE_SECONDS), OBD_STATFS_FOR_MDT0); @@ -717,7 +717,7 @@ void ll_kill_super(struct super_block *sb) return; sbi = ll_s2sbi(sb); - /* we need restore s_dev from changed for clustred NFS before put_super + /* we need to restore s_dev from changed for clustered NFS before put_super * because new kernels have cached s_dev and change sb->s_dev in * put_super not affected real removing devices */ if (sbi) { diff --git a/drivers/staging/lustre/lustre/llite/llite_mmap.c b/drivers/staging/lustre/lustre/llite/llite_mmap.c index caed642..f0bc4bf 100644 --- a/drivers/staging/lustre/lustre/llite/llite_mmap.c +++ b/drivers/staging/lustre/lustre/llite/llite_mmap.c @@ -285,7 +285,7 @@ static inline int to_fault_error(int result) * Lustre implementation of a vm_operations_struct::fault() method, called by * VM to server page fault (both in kernel and user space). * - * \param vma - is virtiual area struct related to page fault + * \param vma - is virtual area struct related to page fault * \param vmf - structure which describe type and address where hit fault * * \return allocated and filled _locked_ page for address diff --git a/drivers/staging/lustre/lustre/llite/lloop.c b/drivers/staging/lustre/lustre/llite/lloop.c index 0718905..f78eda2 100644 --- a/drivers/staging/lustre/lustre/llite/lloop.c +++ b/drivers/staging/lustre/lustre/llite/lloop.c @@ -255,7 +255,7 @@ static int do_bio_lustrebacked(struct lloop_device *lo, struct bio *head) * to store parity; * 2. Reserve the # of (page_count * depth) cl_pages from the reserved * pool. Afterwards, the clio would allocate the pages from reserved - * pool, this guarantees we neeedn't allocate the cl_pages from + * pool, this guarantees we needn't allocate the cl_pages from * generic cl_page slab cache. * Of course, if there is NOT enough pages in the pool, we might * be asked to write less pages once, this purely depends on @@ -325,7 +325,7 @@ static unsigned int loop_get_bio(struct lloop_device *lo, struct bio **req) bio = &(*bio)->bi_next; } if (*bio) { - /* Some of bios can't be mergable. */ + /* Some of bios can't be mergeable. */ lo->lo_bio = *bio; *bio = NULL; } else { @@ -658,7 +658,7 @@ static struct block_device_operations lo_fops = { * ll_iocontrol_call. * * This is a llite regular file ioctl function. It takes the responsibility - * of attaching or detaching a file by a lloop's device numner. + * of attaching or detaching a file by a lloop's device number. */ static enum llioc_iter lloop_ioctl(struct inode *unused, struct file *file, unsigned int cmd, unsigned long arg, diff --git a/drivers/staging/lustre/lustre/llite/namei.c b/drivers/staging/lustre/lustre/llite/namei.c index 86ff708..25a6ea58 100644 --- a/drivers/staging/lustre/lustre/llite/namei.c +++ b/drivers/staging/lustre/lustre/llite/namei.c @@ -465,7 +465,7 @@ int ll_lookup_it_finish(struct ptlrpc_request *request, } /* Only hash *de if it is unhashed (new dentry). - * Atoimc_open may passin hashed dentries for open. + * Atoimc_open may passing hashed dentries for open. */ if (d_unhashed(*de)) { struct dentry *alias; diff --git a/drivers/staging/lustre/lustre/llite/rw.c b/drivers/staging/lustre/lustre/llite/rw.c index ca8fa4e..416f7a0 100644 --- a/drivers/staging/lustre/lustre/llite/rw.c +++ b/drivers/staging/lustre/lustre/llite/rw.c @@ -558,10 +558,10 @@ static int ll_read_ahead_page(const struct lu_env *env, struct cl_io *io, * striped over, rather than having a constant value for all files here. */ /* RAS_INCREASE_STEP should be (1UL << (inode->i_blkbits - PAGE_CACHE_SHIFT)). - * Temprarily set RAS_INCREASE_STEP to 1MB. After 4MB RPC is enabled + * Temporarily set RAS_INCREASE_STEP to 1MB. After 4MB RPC is enabled * by default, this should be adjusted corresponding with max_read_ahead_mb * and max_read_ahead_per_file_mb otherwise the readahead budget can be used - * up quickly which will affect read performance siginificantly. See LU-2816 */ + * up quickly which will affect read performance significantly. See LU-2816 */ #define RAS_INCREASE_STEP(inode) (ONE_MB_BRW_SIZE >> PAGE_CACHE_SHIFT) static inline int stride_io_mode(struct ll_readahead_state *ras) @@ -570,7 +570,7 @@ static inline int stride_io_mode(struct ll_readahead_state *ras) } /* The function calculates how much pages will be read in * [off, off + length], in such stride IO area, - * stride_offset = st_off, stride_lengh = st_len, + * stride_offset = st_off, stride_length = st_len, * stride_pages = st_pgs * * |------------------|*****|------------------|*****|------------|*****|.... @@ -1090,7 +1090,7 @@ void ras_update(struct ll_sb_info *sbi, struct inode *inode, ras_set_start(inode, ras, index); if (stride_io_mode(ras)) - /* Since stride readahead is sentivite to the offset + /* Since stride readahead is sensitive to the offset * of read-ahead, so we use original offset here, * instead of ras_window_start, which is RPC aligned */ ras->ras_next_readahead = max(index, ras->ras_next_readahead); diff --git a/drivers/staging/lustre/lustre/llite/statahead.c b/drivers/staging/lustre/lustre/llite/statahead.c index ad61ad4..c8624b5 100644 --- a/drivers/staging/lustre/lustre/llite/statahead.c +++ b/drivers/staging/lustre/lustre/llite/statahead.c @@ -577,7 +577,7 @@ static void ll_agl_trigger(struct inode *inode, struct ll_statahead_info *sai) * Someone triggered glimpse within 1 sec before. * 1) The former glimpse succeeded with glimpse lock granted by OST, and * if the lock is still cached on client, AGL needs to do nothing. If - * it is cancelled by other client, AGL maybe cannot obtaion new lock + * it is cancelled by other client, AGL maybe cannot obtain new lock * for no glimpse callback triggered by AGL. * 2) The former glimpse succeeded, but OST did not grant glimpse lock. * Under such case, it is quite possible that the OST will not grant diff --git a/drivers/staging/lustre/lustre/llite/vvp_io.c b/drivers/staging/lustre/lustre/llite/vvp_io.c index 50383d3..c7d7009 100644 --- a/drivers/staging/lustre/lustre/llite/vvp_io.c +++ b/drivers/staging/lustre/lustre/llite/vvp_io.c @@ -646,7 +646,7 @@ static int vvp_io_kernel_fault(struct vvp_fault_io *cfio) if (cfio->fault.ft_flags & VM_FAULT_RETRY) return -EAGAIN; - CERROR("unknow error in page fault %d!\n", cfio->fault.ft_flags); + CERROR("Unknown error in page fault %d!\n", cfio->fault.ft_flags); return -EINVAL; } @@ -1192,7 +1192,7 @@ int vvp_io_init(const struct lu_env *env, struct cl_object *obj, if (result == -ENOENT) /* If the inode on MDS has been removed, but the objects * on OSTs haven't been destroyed (async unlink), layout - * fetch will return -ENOENT, we'd ingore this error + * fetch will return -ENOENT, we'd ignore this error * and continue with dirty flush. LU-3230. */ result = 0; if (result < 0) @@ -1207,7 +1207,7 @@ int vvp_io_init(const struct lu_env *env, struct cl_object *obj, static struct vvp_io *cl2vvp_io(const struct lu_env *env, const struct cl_io_slice *slice) { - /* Caling just for assertion */ + /* Calling just for assertion */ cl2ccc_io(env, slice); return vvp_env_io(env); } diff --git a/drivers/staging/lustre/lustre/llite/xattr_cache.c b/drivers/staging/lustre/lustre/llite/xattr_cache.c index 616d5bd..4defa2f 100644 --- a/drivers/staging/lustre/lustre/llite/xattr_cache.c +++ b/drivers/staging/lustre/lustre/llite/xattr_cache.c @@ -242,7 +242,7 @@ int ll_xattr_cache_valid(struct ll_inode_info *lli) * * Free all xattr memory. @lli is the inode info pointer. * - * \retval 0 no error occured + * \retval 0 no error occurred */ static int ll_xattr_cache_destroy_locked(struct ll_inode_info *lli) { @@ -280,7 +280,7 @@ int ll_xattr_cache_destroy(struct inode *inode) * the function handles it with a separate enq lock. * If successful, the function exits with the list lock held. * - * \retval 0 no error occured + * \retval 0 no error occurred * \retval -ENOMEM not enough memory */ static int ll_xattr_find_get_lock(struct inode *inode, @@ -347,7 +347,7 @@ out: * a read or a write xattr lock depending on operation in @oit. * Intent is dropped on exit unless the operation is setxattr. * - * \retval 0 no error occured + * \retval 0 no error occurred * \retval -EPROTO network protocol error * \retval -ENOMEM not enough memory for the cache */ @@ -477,7 +477,7 @@ out_destroy: * The resulting value/list is stored in @buffer if the former * is not larger than @size. * - * \retval 0 no error occured + * \retval 0 no error occurred * \retval -EPROTO network protocol error * \retval -ENOMEM not enough memory for the cache * \retval -ERANGE the buffer is not large enough -- 1.9.0 _______________________________________________ devel mailing list devel@xxxxxxxxxxxxxxxxxxxxxx http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel