Skip to content

Commit 3500000

Browse files
dmantipovidryomov
authored andcommitted
ceph: miscellaneous spelling fixes
Correct spelling here and there as suggested by codespell. Signed-off-by: Dmitry Antipov <dmantipov@yandex.ru> Reviewed-by: Ilya Dryomov <idryomov@gmail.com> Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
1 parent c152737 commit 3500000

File tree

9 files changed

+15
-15
lines changed

9 files changed

+15
-15
lines changed

fs/ceph/addr.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2195,7 +2195,7 @@ int ceph_pool_perm_check(struct inode *inode, int need)
21952195
if (ci->i_vino.snap != CEPH_NOSNAP) {
21962196
/*
21972197
* Pool permission check needs to write to the first object.
2198-
* But for snapshot, head of the first object may have alread
2198+
* But for snapshot, head of the first object may have already
21992199
* been deleted. Skip check to avoid creating orphan object.
22002200
*/
22012201
return 0;

fs/ceph/caps.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2799,7 +2799,7 @@ void ceph_take_cap_refs(struct ceph_inode_info *ci, int got,
27992799
* requested from the MDS.
28002800
*
28012801
* Returns 0 if caps were not able to be acquired (yet), 1 if succeed,
2802-
* or a negative error code. There are 3 speical error codes:
2802+
* or a negative error code. There are 3 special error codes:
28032803
* -EAGAIN: need to sleep but non-blocking is specified
28042804
* -EFBIG: ask caller to call check_max_size() and try again.
28052805
* -EUCLEAN: ask caller to call ceph_renew_caps() and try again.

fs/ceph/crypto.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ struct ceph_fname {
2727
};
2828

2929
/*
30-
* Header for the crypted file when truncating the size, this
30+
* Header for the encrypted file when truncating the size, this
3131
* will be sent to MDS, and the MDS will update the encrypted
3232
* last block and then truncate the size.
3333
*/

fs/ceph/dir.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ static int __dcache_readdir(struct file *file, struct dir_context *ctx,
207207
dentry = __dcache_find_get_entry(parent, idx + step,
208208
&cache_ctl);
209209
if (!dentry) {
210-
/* use linar search */
210+
/* use linear search */
211211
idx = 0;
212212
break;
213213
}
@@ -659,7 +659,7 @@ static bool need_reset_readdir(struct ceph_dir_file_info *dfi, loff_t new_pos)
659659
return true;
660660
if (is_hash_order(new_pos)) {
661661
/* no need to reset last_name for a forward seek when
662-
* dentries are sotred in hash order */
662+
* dentries are sorted in hash order */
663663
} else if (dfi->frag != fpos_frag(new_pos)) {
664664
return true;
665665
}

fs/ceph/export.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -393,9 +393,9 @@ static struct dentry *ceph_get_parent(struct dentry *child)
393393
}
394394
dir = snapdir;
395395
}
396-
/* If directory has already been deleted, futher get_parent
396+
/* If directory has already been deleted, further get_parent
397397
* will fail. Do not mark snapdir dentry as disconnected,
398-
* this prevent exportfs from doing futher get_parent. */
398+
* this prevents exportfs from doing further get_parent. */
399399
if (unlinked)
400400
dn = d_obtain_root(dir);
401401
else

fs/ceph/inode.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ struct inode *ceph_get_inode(struct super_block *sb, struct ceph_vino vino,
160160
}
161161

162162
/*
163-
* get/constuct snapdir inode for a given directory
163+
* get/construct snapdir inode for a given directory
164164
*/
165165
struct inode *ceph_get_snapdir(struct inode *parent)
166166
{

fs/ceph/mds_client.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -827,7 +827,7 @@ static void destroy_reply_info(struct ceph_mds_reply_info_parsed *info)
827827
* And the worst case is that for the none async openc request it will
828828
* successfully open the file if the CDentry hasn't been unlinked yet,
829829
* but later the previous delayed async unlink request will remove the
830-
* CDenty. That means the just created file is possiblly deleted later
830+
* CDentry. That means the just created file is possibly deleted later
831831
* by accident.
832832
*
833833
* We need to wait for the inflight async unlink requests to finish
@@ -3261,7 +3261,7 @@ static int __prepare_send_request(struct ceph_mds_session *session,
32613261
&session->s_features);
32623262

32633263
/*
3264-
* Avoid inifinite retrying after overflow. The client will
3264+
* Avoid infinite retrying after overflow. The client will
32653265
* increase the retry count and if the MDS is old version,
32663266
* so we limit to retry at most 256 times.
32673267
*/
@@ -3514,7 +3514,7 @@ static void __do_request(struct ceph_mds_client *mdsc,
35143514

35153515
/*
35163516
* For async create we will choose the auth MDS of frag in parent
3517-
* directory to send the request and ususally this works fine, but
3517+
* directory to send the request and usually this works fine, but
35183518
* if the migrated the dirtory to another MDS before it could handle
35193519
* it the request will be forwarded.
35203520
*
@@ -4025,7 +4025,7 @@ static void handle_forward(struct ceph_mds_client *mdsc,
40254025
__unregister_request(mdsc, req);
40264026
} else if (fwd_seq <= req->r_num_fwd || (uint32_t)fwd_seq >= U32_MAX) {
40274027
/*
4028-
* Avoid inifinite retrying after overflow.
4028+
* Avoid infinite retrying after overflow.
40294029
*
40304030
* The MDS will increase the fwd count and in client side
40314031
* if the num_fwd is less than the one saved in request
@@ -5730,7 +5730,7 @@ int ceph_mds_check_access(struct ceph_mds_client *mdsc, char *tpath, int mask)
57305730
if (err < 0) {
57315731
return err;
57325732
} else if (err > 0) {
5733-
/* always follow the last auth caps' permision */
5733+
/* always follow the last auth caps' permission */
57345734
root_squash_perms = true;
57355735
rw_perms_s = NULL;
57365736
if ((mask & MAY_WRITE) && s->writeable &&

fs/ceph/super.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060

6161
/* max size of osd read request, limited by libceph */
6262
#define CEPH_MAX_READ_SIZE CEPH_MSG_MAX_DATA_LEN
63-
/* osd has a configurable limitaion of max write size.
63+
/* osd has a configurable limitation of max write size.
6464
* CEPH_MSG_MAX_DATA_LEN should be small enough. */
6565
#define CEPH_MAX_WRITE_SIZE CEPH_MSG_MAX_DATA_LEN
6666
#define CEPH_RASIZE_DEFAULT (8192*1024) /* max readahead */

fs/ceph/xattr.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -899,7 +899,7 @@ static int __get_required_blob_size(struct ceph_inode_info *ci, int name_size,
899899
}
900900

901901
/*
902-
* If there are dirty xattrs, reencode xattrs into the prealloc_blob
902+
* If there are dirty xattrs, re-encode xattrs into the prealloc_blob
903903
* and swap into place. It returns the old i_xattrs.blob (or NULL) so
904904
* that it can be freed by the caller as the i_ceph_lock is likely to be
905905
* held.

0 commit comments

Comments
 (0)