Commit 3500000b authored by Dmitry Antipov's avatar Dmitry Antipov Committed by Ilya Dryomov
Browse files

ceph: miscellaneous spelling fixes



Correct spelling here and there as suggested by codespell.

Signed-off-by: default avatarDmitry Antipov <dmantipov@yandex.ru>
Reviewed-by: default avatarIlya Dryomov <idryomov@gmail.com>
Signed-off-by: default avatarIlya Dryomov <idryomov@gmail.com>
parent c152737b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2195,7 +2195,7 @@ int ceph_pool_perm_check(struct inode *inode, int need)
	if (ci->i_vino.snap != CEPH_NOSNAP) {
		/*
		 * Pool permission check needs to write to the first object.
		 * But for snapshot, head of the first object may have alread
		 * But for snapshot, head of the first object may have already
		 * been deleted. Skip check to avoid creating orphan object.
		 */
		return 0;
+1 −1
Original line number Diff line number Diff line
@@ -2799,7 +2799,7 @@ void ceph_take_cap_refs(struct ceph_inode_info *ci, int got,
 * requested from the MDS.
 *
 * Returns 0 if caps were not able to be acquired (yet), 1 if succeed,
 * or a negative error code. There are 3 speical error codes:
 * or a negative error code. There are 3 special error codes:
 *  -EAGAIN:  need to sleep but non-blocking is specified
 *  -EFBIG:   ask caller to call check_max_size() and try again.
 *  -EUCLEAN: ask caller to call ceph_renew_caps() and try again.
+1 −1
Original line number Diff line number Diff line
@@ -27,7 +27,7 @@ struct ceph_fname {
};

/*
 * Header for the crypted file when truncating the size, this
 * Header for the encrypted file when truncating the size, this
 * will be sent to MDS, and the MDS will update the encrypted
 * last block and then truncate the size.
 */
+2 −2
Original line number Diff line number Diff line
@@ -207,7 +207,7 @@ static int __dcache_readdir(struct file *file, struct dir_context *ctx,
			dentry = __dcache_find_get_entry(parent, idx + step,
							 &cache_ctl);
			if (!dentry) {
				/* use linar search */
				/* use linear search */
				idx = 0;
				break;
			}
@@ -659,7 +659,7 @@ static bool need_reset_readdir(struct ceph_dir_file_info *dfi, loff_t new_pos)
		return true;
	if (is_hash_order(new_pos)) {
		/* no need to reset last_name for a forward seek when
		 * dentries are sotred in hash order */
		 * dentries are sorted in hash order */
	} else if (dfi->frag != fpos_frag(new_pos)) {
		return true;
	}
+2 −2
Original line number Diff line number Diff line
@@ -393,9 +393,9 @@ static struct dentry *ceph_get_parent(struct dentry *child)
			}
			dir = snapdir;
		}
		/* If directory has already been deleted, futher get_parent
		/* If directory has already been deleted, further get_parent
		 * will fail. Do not mark snapdir dentry as disconnected,
		 * this prevent exportfs from doing futher get_parent. */
		 * this prevents exportfs from doing further get_parent. */
		if (unlinked)
			dn = d_obtain_root(dir);
		else
Loading