Whamcloud - gitweb
LU-4423 gss: Fix typo in sec_gss.c 19/10119/2
authorOleg Drokin <oleg.drokin@intel.com>
Sat, 26 Apr 2014 20:43:33 +0000 (16:43 -0400)
committerOleg Drokin <oleg.drokin@intel.com>
Thu, 1 May 2014 19:06:37 +0000 (19:06 +0000)
This patch fixes spelling typos in comments within sec_gss.c

Came from upstream from Masanari Iida <standby24x7@gmail.com>
commit 08c4c90dc2cfb719b787b39fb9cab9880b60d779

Change-Id: Ibf3543745cc0932a3a560cc274edf95a7411198d
Signed-off-by: Masanari Iida <standby24x7@gmail.com>
Signed-off-by: Oleg Drokin <oleg.drokin@intel.com>
Reviewed-on: http://review.whamcloud.com/10119
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Dmitry Eremin <dmitry.eremin@intel.com>
Reviewed-by: James Simmons <uja.ornl@gmail.com>
lustre/ptlrpc/gss/sec_gss.c

index ef28255..5c04d1c 100644 (file)
@@ -387,7 +387,7 @@ void gss_cli_ctx_uptodate(struct gss_cli_ctx *gctx)
         /* At this point this ctx might have been marked as dead by
          * someone else, in which case nobody will make further use
          * of it. we don't care, and mark it UPTODATE will help
         /* At this point this ctx might have been marked as dead by
          * someone else, in which case nobody will make further use
          * of it. we don't care, and mark it UPTODATE will help
-         * destroying server side context when it be destroied. */
+         * destroying server side context when it be destroyed. */
        set_bit(PTLRPC_CTX_UPTODATE_BIT, &ctx->cc_flags);
 
         if (sec_is_reverse(ctx->cc_sec)) {
        set_bit(PTLRPC_CTX_UPTODATE_BIT, &ctx->cc_flags);
 
         if (sec_is_reverse(ctx->cc_sec)) {
@@ -682,7 +682,7 @@ redo:
         * lead to the sequence number fall behind the window on server and
         * be dropped. also applies to gss_cli_ctx_seal().
         *
         * lead to the sequence number fall behind the window on server and
         * be dropped. also applies to gss_cli_ctx_seal().
         *
-        * Note: null mode dosen't check sequence number. */
+        * Note: null mode doesn't check sequence number. */
        if (svc != SPTLRPC_SVC_NULL &&
            atomic_read(&gctx->gc_seq) - seq > GSS_SEQ_REPACK_THRESHOLD) {
                int behind = atomic_read(&gctx->gc_seq) - seq;
        if (svc != SPTLRPC_SVC_NULL &&
            atomic_read(&gctx->gc_seq) - seq > GSS_SEQ_REPACK_THRESHOLD) {
                int behind = atomic_read(&gctx->gc_seq) - seq;
@@ -1928,7 +1928,7 @@ int gss_svc_sign(struct ptlrpc_request *req,
 
         LASSERT(rs->rs_msg == lustre_msg_buf(rs->rs_repbuf, 1, 0));
 
 
         LASSERT(rs->rs_msg == lustre_msg_buf(rs->rs_repbuf, 1, 0));
 
-        /* embedded lustre_msg might have been shrinked */
+        /* embedded lustre_msg might have been shrunk */
         if (req->rq_replen != rs->rs_repbuf->lm_buflens[1])
                 lustre_shrink_msg(rs->rs_repbuf, 1, req->rq_replen, 1);
 
         if (req->rq_replen != rs->rs_repbuf->lm_buflens[1])
                 lustre_shrink_msg(rs->rs_repbuf, 1, req->rq_replen, 1);
 
@@ -2655,7 +2655,7 @@ static int gss_svc_seal(struct ptlrpc_request *req,
         ENTRY;
 
         /* get clear data length. note embedded lustre_msg might
         ENTRY;
 
         /* get clear data length. note embedded lustre_msg might
-         * have been shrinked */
+         * have been shrunk */
         if (req->rq_replen != lustre_msg_buflen(rs->rs_repbuf, 0))
                 msglen = lustre_shrink_msg(rs->rs_repbuf, 0, req->rq_replen, 1);
         else 
         if (req->rq_replen != lustre_msg_buflen(rs->rs_repbuf, 0))
                 msglen = lustre_shrink_msg(rs->rs_repbuf, 0, req->rq_replen, 1);
         else 
@@ -2825,7 +2825,7 @@ int gss_copy_rvc_cli_ctx(struct ptlrpc_cli_ctx *cli_ctx,
         * replay.
         *
         * each reverse root ctx will record its latest sequence number on its
         * replay.
         *
         * each reverse root ctx will record its latest sequence number on its
-        * buddy svcctx before be destroied, so here we continue use it.
+        * buddy svcctx before be destroyed, so here we continue use it.
         */
        atomic_set(&cli_gctx->gc_seq, svc_gctx->gsc_rvs_seq);
 
         */
        atomic_set(&cli_gctx->gc_seq, svc_gctx->gsc_rvs_seq);
 
@@ -2904,7 +2904,7 @@ int __init sptlrpc_gss_init(void)
        if (rc)
                goto out_kerberos;
 
        if (rc)
                goto out_kerberos;
 
-       /* register policy after all other stuff be intialized, because it
+       /* register policy after all other stuff be initialized, because it
         * might be in used immediately after the registration. */
 
        rc = gss_init_keyring();
         * might be in used immediately after the registration. */
 
        rc = gss_init_keyring();