Skip to content

Commit 0039aeb

Browse files
Yan Zhenidryomov
authored andcommitted
ceph: Fix typo in the comment
Correctly spelled comments make it easier for the reader to understand the code. replace 'tagert' with 'target' in the comment & replace 'vaild' with 'valid' in the comment & replace 'carefull' with 'careful' in the comment & replace 'trsaverse' with 'traverse' in the comment. Signed-off-by: Yan Zhen <[email protected]> Reviewed-by: Xiubo Li <[email protected]> Signed-off-by: Ilya Dryomov <[email protected]>
1 parent d97079e commit 0039aeb

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

fs/ceph/caps.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4150,7 +4150,7 @@ static void handle_cap_export(struct inode *inode, struct ceph_mds_caps *ex,
41504150
ceph_remove_cap(mdsc, cap, false);
41514151
goto out_unlock;
41524152
} else if (tsession) {
4153-
/* add placeholder for the export tagert */
4153+
/* add placeholder for the export target */
41544154
int flag = (cap == ci->i_auth_cap) ? CEPH_CAP_FLAG_AUTH : 0;
41554155
tcap = new_cap;
41564156
ceph_add_cap(inode, tsession, t_cap_id, issued, 0,

fs/ceph/dir.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2059,7 +2059,7 @@ static int ceph_d_delete(const struct dentry *dentry)
20592059
return 0;
20602060
if (ceph_snap(d_inode(dentry)) != CEPH_NOSNAP)
20612061
return 0;
2062-
/* vaild lease? */
2062+
/* valid lease? */
20632063
di = ceph_dentry(dentry);
20642064
if (di) {
20652065
if (__dentry_lease_is_valid(di))

fs/ceph/inode.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1778,7 +1778,7 @@ int ceph_fill_trace(struct super_block *sb, struct ceph_mds_request *req)
17781778
if (err < 0)
17791779
goto done;
17801780
} else if (rinfo->head->is_dentry && req->r_dentry) {
1781-
/* parent inode is not locked, be carefull */
1781+
/* parent inode is not locked, be careful */
17821782
struct ceph_vino *ptvino = NULL;
17831783
dvino.ino = le64_to_cpu(rinfo->diri.in->ino);
17841784
dvino.snap = le64_to_cpu(rinfo->diri.in->snapid);

fs/ceph/mds_client.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4910,7 +4910,7 @@ static void send_mds_reconnect(struct ceph_mds_client *mdsc,
49104910
} else {
49114911
recon_state.msg_version = 2;
49124912
}
4913-
/* trsaverse this session's caps */
4913+
/* traverse this session's caps */
49144914
err = ceph_iterate_session_caps(session, reconnect_caps_cb, &recon_state);
49154915

49164916
spin_lock(&session->s_cap_lock);

0 commit comments

Comments
 (0)