diff options
| author | Bogdan Sikora <bsikora@redhat.com> | 2015-12-27 08:58:23 -0500 |
|---|---|---|
| committer | Jiri Kosina <jkosina@suse.cz> | 2016-02-15 05:18:23 -0500 |
| commit | bdb428c82aab5d8aba6fbb29dde2cf678eadc432 (patch) | |
| tree | d59eab4c2f90426d54796e0b5007b48c59bfd842 /lib | |
| parent | 971cc8767310df98d416c8cceed69bf7ac150451 (diff) | |
lib+mm: fix few spelling mistakes
All are in comments.
Signed-off-by: Bogdan Sikora <bsikora@redhat.com>
Cc: <linux-mm@kvack.org>
Cc: Rafael Aquini <aquini@redhat.com>
Cc: Kent Overstreet <kmo@daterainc.com>
Cc: Jan Kara <jack@suse.cz>
[jkosina@suse.cz: more fixup]
Acked-by: Rafael Aquini <aquini@redhat.com>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/flex_proportions.c | 2 | ||||
| -rw-r--r-- | lib/percpu-refcount.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/flex_proportions.c b/lib/flex_proportions.c index 8f25652f40d4..a71cf1bdd4c9 100644 --- a/lib/flex_proportions.c +++ b/lib/flex_proportions.c | |||
| @@ -17,7 +17,7 @@ | |||
| 17 | * | 17 | * |
| 18 | * \Sum_{j} p_{j} = 1, | 18 | * \Sum_{j} p_{j} = 1, |
| 19 | * | 19 | * |
| 20 | * This formula can be straightforwardly computed by maintaing denominator | 20 | * This formula can be straightforwardly computed by maintaining denominator |
| 21 | * (let's call it 'd') and for each event type its numerator (let's call it | 21 | * (let's call it 'd') and for each event type its numerator (let's call it |
| 22 | * 'n_j'). When an event of type 'j' happens, we simply need to do: | 22 | * 'n_j'). When an event of type 'j' happens, we simply need to do: |
| 23 | * n_j++; d++; | 23 | * n_j++; d++; |
diff --git a/lib/percpu-refcount.c b/lib/percpu-refcount.c index 6111bcb28376..27fe74948882 100644 --- a/lib/percpu-refcount.c +++ b/lib/percpu-refcount.c | |||
| @@ -12,7 +12,7 @@ | |||
| 12 | * particular cpu can (and will) wrap - this is fine, when we go to shutdown the | 12 | * particular cpu can (and will) wrap - this is fine, when we go to shutdown the |
| 13 | * percpu counters will all sum to the correct value | 13 | * percpu counters will all sum to the correct value |
| 14 | * | 14 | * |
| 15 | * (More precisely: because moduler arithmatic is commutative the sum of all the | 15 | * (More precisely: because modular arithmetic is commutative the sum of all the |
| 16 | * percpu_count vars will be equal to what it would have been if all the gets | 16 | * percpu_count vars will be equal to what it would have been if all the gets |
| 17 | * and puts were done to a single integer, even if some of the percpu integers | 17 | * and puts were done to a single integer, even if some of the percpu integers |
| 18 | * overflow or underflow). | 18 | * overflow or underflow). |
