Skip to content

Commit 1d00015

Browse files
Wanpeng Likonradwilk
Wanpeng Li
authored andcommitted
mm/frontswap: cleanup doc and comment error
Signed-off-by: Wanpeng Li <liwp.linux@gmail.com> Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
1 parent 3389b53 commit 1d00015

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Documentation/vm/frontswap.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ with the specified swap device number (aka "type"). A "store" will
2525
copy the page to transcendent memory and associate it with the type and
2626
offset associated with the page. A "load" will copy the page, if found,
2727
from transcendent memory into kernel memory, but will NOT remove the page
28-
from from transcendent memory. An "invalidate_page" will remove the page
28+
from transcendent memory. An "invalidate_page" will remove the page
2929
from transcendent memory and an "invalidate_area" will remove ALL pages
3030
associated with the swap type (e.g., like swapoff) and notify the "device"
3131
to refuse further stores with that swap type.
@@ -99,7 +99,7 @@ server configured with a large amount of RAM... without pre-configuring
9999
how much of the RAM is available for each of the clients!
100100

101101
In the virtual case, the whole point of virtualization is to statistically
102-
multiplex physical resources acrosst the varying demands of multiple
102+
multiplex physical resources across the varying demands of multiple
103103
virtual machines. This is really hard to do with RAM and efforts to do
104104
it well with no kernel changes have essentially failed (except in some
105105
well-publicized special-case workloads).

mm/frontswap.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ static inline void __frontswap_clear(struct swap_info_struct *sis, pgoff_t offse
120120
* "Store" data from a page to frontswap and associate it with the page's
121121
* swaptype and offset. Page must be locked and in the swap cache.
122122
* If frontswap already contains a page with matching swaptype and
123-
* offset, the frontswap implmentation may either overwrite the data and
123+
* offset, the frontswap implementation may either overwrite the data and
124124
* return success or invalidate the page from frontswap and return failure.
125125
*/
126126
int __frontswap_store(struct page *page)

0 commit comments

Comments
 (0)