Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix various misspells #1132

Merged
merged 2 commits into from
Dec 14, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/hash.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Tempesta kernel libarary
* Tempesta kernel library
*
* Copyright (C) 2015-2018 Tempesta Technologies, INC.
*
Expand Down
2 changes: 1 addition & 1 deletion lib/hash.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Tempesta kernel libarary
* Tempesta kernel library
*
* Copyright (C) 2015-2018 Tempesta Technologies, INC.
*
Expand Down
2 changes: 1 addition & 1 deletion lib/main.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Tempesta kernel libarary
* Tempesta kernel library
*
* Copyright (C) 2018 Tempesta Technologies, INC.
*
Expand Down
2 changes: 1 addition & 1 deletion lib/str.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Tempesta kernel libarary
* Tempesta kernel library
*
* Copyright (C) 2018 Tempesta Technologies, INC.
*
Expand Down
2 changes: 1 addition & 1 deletion lib/str_simd.S
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* x86-64 SIMD routines for HTTP strings processing. See the algorithms'
* description and perfomance comparison with other implementations at
* description and performance comparison with other implementations at
* http://natsys-lab.blogspot.ru/2016/10/http-strings-processing-using-c-sse42.html
* and https://github.com/natsys/blog/tree/master/kstrings .
* We have to write the stuff in assembly since GCC sometimes generates not the
Expand Down
6 changes: 3 additions & 3 deletions tempesta_db/core/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ __ma_merge(MArea *left, MArea *right)

/**
* Free a memory area and merge it with free siblings if possible.
* Never tries to free staticaly allocated MArea.
* Never tries to free statically allocated MArea.
*/
static void
__ma_free(MArea *ma)
Expand Down Expand Up @@ -218,7 +218,7 @@ tempesta_map_file(struct file *file, unsigned long len, int node)
}

/**
* Syncronize memory mapping with the file.
* Synchronize memory mapping with the file.
* Called from process context.
*/
static void
Expand Down Expand Up @@ -285,7 +285,7 @@ tdb_file_open(TDB *db, unsigned long size)
return -EBADF;
}

/* Allocate continous extents. */
/* Allocate continuous extents. */
inode = file_inode(filp);
sb_start_write(inode->i_sb);
ret = filp->f_op->fallocate(filp, 0, 0, size);
Expand Down
10 changes: 5 additions & 5 deletions tempesta_db/core/htrie.c
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ tdb_alloc_blk(TdbHdr *dbh)

if (likely(g_nwb & ~TDB_EXT_MASK)) {
/*
* Current extent was already getted.
* Current extent was already got.
* Probably we can allocate some memory in this extent.
*/
rptr = __tdb_alloc_blk_ext(dbh, e);
Expand Down Expand Up @@ -265,7 +265,7 @@ tdb_htrie_init_bucket(TdbBucket *b)

/**
* @return byte offset of the allocated data block and sets @len to actually
* available room for writting if @len doesn't fit to block.
* available room for writing if @len doesn't fit to block.
*
* Return 0 on error.
*
Expand Down Expand Up @@ -486,7 +486,7 @@ do { \
memcpy_fast(TDB_HTRIE_BCKT_1ST_REC(b), r, n); \
nb[k].off = sizeof(*b) + n; \
new_in->shifts[k] = TDB_O2DI(nb[k].b) | TDB_HTRIE_DBIT;\
/* We copied a record, clear its orignal place. */\
/* We copied a record, clear its original place. */\
free_nb = free_nb > 0 ? free_nb : -free_nb; \
TDB_DBG("burst: copied rec=%p (len=%lu key=%#lx)"\
" to new dblk=%#lx w/ idx=%#lx\n", \
Expand Down Expand Up @@ -540,7 +540,7 @@ do { \
/**
* Descend the the tree starting at @node.
*
* @retrurn byte offset of data (w/o TDB_HTRIE_DBIT bit) on success
* @return byte offset of data (w/o TDB_HTRIE_DBIT bit) on success
* or 0 if key @key was not found.
* When function exits @node stores the last index node.
* @bits - number of bits (from less significant to most significant) from
Expand Down Expand Up @@ -648,7 +648,7 @@ tdb_htrie_extend_rec(TdbHdr *dbh, TdbVRec *rec, size_t size)
/**
* @len returns number of copied data on success.
*
* TODO it seems the function can be rewrited w/o RW-lock using transactional
* TODO it seems the function can be rewritten w/o RW-lock using transactional
* notation: assemble set of operations to do in double word in shared location
* and do CAS on it with comparing the location with zero.
* If competing context helps the current trx owner, then we get true lock-free.
Expand Down
6 changes: 3 additions & 3 deletions tempesta_db/core/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* This is the entry point: initialization functions and public interfaces.
*
* Copyright (C) 2014 NatSys Lab. (info@natsys-lab.com).
* Copyright (C) 2015 - 2017 Tempesta Technologies, Inc.
* Copyright (C) 2015 - 2018 Tempesta Technologies, Inc.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by
Expand Down Expand Up @@ -323,8 +323,8 @@ tdb_exit(void)
tdb_if_exit();

/*
* There are no database users, so roughtly close all abandoned
* tables w/o refrence checking and so on.
* There are no database users, so roughly close all abandoned
* tables w/o reference checking and so on.
*/
tdb_tbl_foreach(__do_close_table);
}
Expand Down
4 changes: 2 additions & 2 deletions tempesta_db/core/tdb.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
/**
* Per-CPU dynamically allocated data for TDB handler.
* Access to the data must be with preemption disabled for reentrance between
* softirq and process cotexts.
* softirq and process contexts.
*
* @i_wcl, @d_wcl - per-CPU current partially written index and data blocks.
* TdbHdr->i_wcl and TdbHdr->d_wcl are the global values for
Expand Down Expand Up @@ -120,7 +120,7 @@ typedef struct {

/**
* We use very small index nodes size of only one cache line.
* So overall memory footprint of the index is mininal by a cost of more LLC
* So overall memory footprint of the index is minimal by a cost of more LLC
* or main memory transfers. However, smaller memory usage means better TLB
* utilization on huge worksets.
*/
Expand Down
4 changes: 2 additions & 2 deletions tempesta_db/core/tdb_if.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* User-space communication interfaces.
*
* Copyright (C) 2015 Tempesta Technologies.
* Copyright (C) 2015-2018 Tempesta Technologies.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by
Expand Down Expand Up @@ -48,7 +48,7 @@ enum tdb_msg_type {
};

#define TDB_NLF_TYPE_MASK 0x00ff
#define TDB_NLF_RESP_OK 0x0100 /* good reposne status */
#define TDB_NLF_RESP_OK 0x0100 /* good response status */
#define TDB_NLF_RESP_TRUNC 0x0200 /* response was truncated */
#define TDB_NLF_RESP_END 0x0400 /* end of chunked response */

Expand Down
4 changes: 2 additions & 2 deletions tempesta_db/libtdb/exception.h
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
/**
* Tempesta DB User-space Libabry
* Tempesta DB User-space Library
*
* Error/exceptions handling.
*
* Copyright (C) 2015 Tempesta Technologies.
* Copyright (C) 2015-2018 Tempesta Technologies.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by
Expand Down
8 changes: 4 additions & 4 deletions tempesta_db/libtdb/handler.cc
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
/**
* Tempesta DB User-space Libabry
* Tempesta DB User-space Library
*
* Handler for database operations.
*
* TODO At this time libnl doesn't support netlink mmap interface.
* Update the code when the library support the feature,
* track status of https://github.com/thom311/libnl/issues/33.
*
* Copyright (C) 2015 Tempesta Technologies.
* Copyright (C) 2015-2018 Tempesta Technologies.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by
Expand Down Expand Up @@ -216,7 +216,7 @@ TdbHndl::trx_begin()
}

/**
* Send all peding frames.
* Send all pending frames.
*/
void
TdbHndl::trx_commit()
Expand Down Expand Up @@ -390,7 +390,7 @@ TdbHndl::insert(std::string &tbl_name, size_t klen, size_t vlen,
if (trx_.off + sizeof(nlmsghdr) + sizeof(TdbMsgRec) + klen + vlen
> NL_FR_SZ)
{
// Not enugh space in current frame, alllocate a new one.
// Not enough space in current frame, allocate a new one.
advance_frame_offset(tx_fr_off_);
alloc_trx_frame();
}
Expand Down
6 changes: 3 additions & 3 deletions tempesta_fw/addr.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* IP address related functions.
*
* Copyright (C) 2014 NatSys Lab. (info@natsys-lab.com).
* Copyright (C) 2015-2016 Tempesta Technologies, Inc.
* Copyright (C) 2015-2018 Tempesta Technologies, Inc.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by
Expand Down Expand Up @@ -143,7 +143,7 @@ tfw_addr_pton_v6(const TfwStr *s, TfwAddr *addr)
return -EINVAL;
/*
* IPv4 mapped address.
* Recalculate the first 2 hexademical octets from to
* Recalculate the first 2 hexadecimal octets from to
* 1 decimal octet.
*/
addr->sin6_family = AF_INET6;
Expand Down Expand Up @@ -393,7 +393,7 @@ tfw_addr_ifmatch(const TfwAddr *server, const TfwAddr *listener)
if (IN_LOOPBACK(ntohl(saddr)))
return 1;
/* TODO: check if client addr is
* one of interface adresses
* one of interface addresses
*/
}

Expand Down
10 changes: 5 additions & 5 deletions tempesta_fw/apm.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
* Prototype for fast precentiles calculation.
* Prototype for fast percentiles calculation.
*/
#include <linux/atomic.h>
#include <linux/kernel.h>
Expand Down Expand Up @@ -44,7 +44,7 @@
* 3. Very small overall memory footprint for inexpensive handling of
* performance trends of many servers;
*
* 4. Buckets must be dynamicaly rearranged since server response times
* 4. Buckets must be dynamically rearranged since server response times
* are unknown apriori;
*
* 5. The adjustments of buckets must be performed in a lock-less fashion
Expand Down Expand Up @@ -182,7 +182,7 @@ tfw_stats_extend(TfwPcntRanges *rng, unsigned int r_time)
* the upper end of the range that the data type could hold.
* As the value was extended to the next order it's conceivable
* that the new value exceeded the maximum for the data type.
* Consirering that TfwPcntCtl{}->end is of type unsigned int,
* Considering that TfwPcntCtl{}->end is of type unsigned int,
* it's totally unimaginable that this situation may ever happen.
*/
BUG_ON(end >= (1UL << (FIELD_SIZEOF(TfwPcntCtl, end) * 8)));
Expand Down Expand Up @@ -456,7 +456,7 @@ typedef struct {
* @rcount - current count of health monitoring requests (in @hm->tmt);
* @jtmstamp - time in jiffies of last @timer call (for procfs);
* @timer - timer for sending health monitoring request;
* @rearm - flag for gracefull stopping of @timer;
* @rearm - flag for graceful stopping of @timer;
*/
typedef struct {
TfwApmHM *hm;
Expand Down Expand Up @@ -514,7 +514,7 @@ typedef struct {
} TfwApmRBuf;

/*
* The ring buffer contol structure.
* The ring buffer control structure.
*
* This is a supporting structure. It keeps related data that is useful
* in making decisions on the need of recalculation of percentiles.
Expand Down
Loading