]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
ceph: Fix typo in the comment
authorYan Zhen <yanzhen@vivo.com>
Thu, 5 Sep 2024 11:32:27 +0000 (19:32 +0800)
committerIlya Dryomov <idryomov@gmail.com>
Tue, 24 Sep 2024 20:51:33 +0000 (22:51 +0200)
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 <yanzhen@vivo.com>
Reviewed-by: Xiubo Li <xiubli@redhat.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
fs/ceph/caps.c
fs/ceph/dir.c
fs/ceph/inode.c
fs/ceph/mds_client.c

index 329516b1eaffeebf9e075e5bf53187ab4a5af591..bed34fc11c9195d926d400524b5d1ba055a5d602 100644 (file)
@@ -4150,7 +4150,7 @@ retry:
                ceph_remove_cap(mdsc, cap, false);
                goto out_unlock;
        } else if (tsession) {
-               /* add placeholder for the export tagert */
+               /* add placeholder for the export target */
                int flag = (cap == ci->i_auth_cap) ? CEPH_CAP_FLAG_AUTH : 0;
                tcap = new_cap;
                ceph_add_cap(inode, tsession, t_cap_id, issued, 0,
index 18c72b305858d1c358d114a2304dfaf63e08ad79..e23f8a40f3e337b50c82c293a8e8e2eb8ee4f235 100644 (file)
@@ -2059,7 +2059,7 @@ static int ceph_d_delete(const struct dentry *dentry)
                return 0;
        if (ceph_snap(d_inode(dentry)) != CEPH_NOSNAP)
                return 0;
-       /* vaild lease? */
+       /* valid lease? */
        di = ceph_dentry(dentry);
        if (di) {
                if (__dentry_lease_is_valid(di))
index 71cd70514efa5562bbee937b176f6431abd59363..5bf2bcf38d8c5cb113fa711fa3de8979363d79d6 100644 (file)
@@ -1778,7 +1778,7 @@ retry_lookup:
                if (err < 0)
                        goto done;
        } else if (rinfo->head->is_dentry && req->r_dentry) {
-               /* parent inode is not locked, be carefull */
+               /* parent inode is not locked, be careful */
                struct ceph_vino *ptvino = NULL;
                dvino.ino = le64_to_cpu(rinfo->diri.in->ino);
                dvino.snap = le64_to_cpu(rinfo->diri.in->snapid);
index 59eb13aabc81ceb069a1bf63cd9b3b24794be06a..c4a5fd94bbbb3ba440891a5f0a860260c6e4d0d5 100644 (file)
@@ -4910,7 +4910,7 @@ static void send_mds_reconnect(struct ceph_mds_client *mdsc,
        } else {
                recon_state.msg_version = 2;
        }
-       /* trsaverse this session's caps */
+       /* traverse this session's caps */
        err = ceph_iterate_session_caps(session, reconnect_caps_cb, &recon_state);
 
        spin_lock(&session->s_cap_lock);