Commit 0039aebf authored by Yan Zhen's avatar Yan Zhen Committed by Ilya Dryomov
Browse files

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: default avatarYan Zhen <yanzhen@vivo.com>
Reviewed-by: default avatarXiubo Li <xiubli@redhat.com>
Signed-off-by: default avatarIlya Dryomov <idryomov@gmail.com>
parent d97079e9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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,
+1 −1
Original line number Diff line number Diff line
@@ -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))
+1 −1
Original line number Diff line number Diff line
@@ -1778,7 +1778,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);
+1 −1
Original line number Diff line number Diff line
@@ -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);