mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v1] ceph: Fix typo in the comment
@ 2024-09-05 11:32 Yan Zhen
  2024-09-05 12:26 ` Xiubo Li
  0 siblings, 1 reply; 2+ messages in thread
From: Yan Zhen @ 2024-09-05 11:32 UTC (permalink / raw)
  To: xiubli, idryomov; +Cc: linux-kernel, opensource.kernel, Yan Zhen

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>
---
 fs/ceph/caps.c       | 2 +-
 fs/ceph/dir.c        | 2 +-
 fs/ceph/inode.c      | 2 +-
 fs/ceph/mds_client.c | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/fs/ceph/caps.c b/fs/ceph/caps.c
index 6561a6cd9..4aaaa26de 100644
--- a/fs/ceph/caps.c
+++ b/fs/ceph/caps.c
@@ -4150,7 +4150,7 @@ static void handle_cap_export(struct inode *inode, struct ceph_mds_caps *ex,
 		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,
diff --git a/fs/ceph/dir.c b/fs/ceph/dir.c
index 18c72b305..e23f8a40f 100644
--- a/fs/ceph/dir.c
+++ b/fs/ceph/dir.c
@@ -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))
diff --git a/fs/ceph/inode.c b/fs/ceph/inode.c
index 4a8eec462..315ef02f9 100644
--- a/fs/ceph/inode.c
+++ b/fs/ceph/inode.c
@@ -1779,7 +1779,7 @@ int ceph_fill_trace(struct super_block *sb, struct ceph_mds_request *req)
 		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);
diff --git a/fs/ceph/mds_client.c b/fs/ceph/mds_client.c
index 276e34ab3..1a1e71f20 100644
--- a/fs/ceph/mds_client.c
+++ b/fs/ceph/mds_client.c
@@ -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);
-- 
2.34.1


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH v1] ceph: Fix typo in the comment
  2024-09-05 11:32 [PATCH v1] ceph: Fix typo in the comment Yan Zhen
@ 2024-09-05 12:26 ` Xiubo Li
  0 siblings, 0 replies; 2+ messages in thread
From: Xiubo Li @ 2024-09-05 12:26 UTC (permalink / raw)
  To: Yan Zhen, idryomov; +Cc: linux-kernel, opensource.kernel

Hi Yan Zhen,

Thanks for your patch.

Next time please to or cc ceph-devel@vger.kernel.org list, or the mails 
could be missed.

On 9/5/24 19:32, Yan Zhen wrote:
> 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>
> ---
>   fs/ceph/caps.c       | 2 +-
>   fs/ceph/dir.c        | 2 +-
>   fs/ceph/inode.c      | 2 +-
>   fs/ceph/mds_client.c | 2 +-
>   4 files changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/fs/ceph/caps.c b/fs/ceph/caps.c
> index 6561a6cd9..4aaaa26de 100644
> --- a/fs/ceph/caps.c
> +++ b/fs/ceph/caps.c
> @@ -4150,7 +4150,7 @@ static void handle_cap_export(struct inode *inode, struct ceph_mds_caps *ex,
>   		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,
> diff --git a/fs/ceph/dir.c b/fs/ceph/dir.c
> index 18c72b305..e23f8a40f 100644
> --- a/fs/ceph/dir.c
> +++ b/fs/ceph/dir.c
> @@ -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))
> diff --git a/fs/ceph/inode.c b/fs/ceph/inode.c
> index 4a8eec462..315ef02f9 100644
> --- a/fs/ceph/inode.c
> +++ b/fs/ceph/inode.c
> @@ -1779,7 +1779,7 @@ int ceph_fill_trace(struct super_block *sb, struct ceph_mds_request *req)
>   		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);
> diff --git a/fs/ceph/mds_client.c b/fs/ceph/mds_client.c
> index 276e34ab3..1a1e71f20 100644
> --- a/fs/ceph/mds_client.c
> +++ b/fs/ceph/mds_client.c
> @@ -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);

LGTM.

Reviewed-by: Xiubo Li <xiubli@redhat.com>



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-09-05 12:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-09-05 11:32 [PATCH v1] ceph: Fix typo in the comment Yan Zhen
2024-09-05 12:26 ` Xiubo Li

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®