提交 6539a36c 编写于 作者: S Seth Jennings 提交者: Greg Kroah-Hartman

staging: zsmalloc: s/firstpage/page in new copy map funcs

firstpage already has precedent and meaning the first page
of a zspage.  In the case of the copy mapping functions,
it is the first of a pair of pages needing to be mapped.

This patch just renames the firstpage argument to "page" to
avoid confusion.
Signed-off-by: NSeth Jennings <sjenning@linux.vnet.ibm.com>
Acked-by: NMinchan Kim <minchan@kernel.org>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 6ebb56d9
......@@ -470,15 +470,15 @@ static struct page *find_get_zspage(struct size_class *class)
return page;
}
static void zs_copy_map_object(char *buf, struct page *firstpage,
static void zs_copy_map_object(char *buf, struct page *page,
int off, int size)
{
struct page *pages[2];
int sizes[2];
void *addr;
pages[0] = firstpage;
pages[1] = get_next_page(firstpage);
pages[0] = page;
pages[1] = get_next_page(page);
BUG_ON(!pages[1]);
sizes[0] = PAGE_SIZE - off;
......@@ -493,15 +493,15 @@ static void zs_copy_map_object(char *buf, struct page *firstpage,
kunmap_atomic(addr);
}
static void zs_copy_unmap_object(char *buf, struct page *firstpage,
static void zs_copy_unmap_object(char *buf, struct page *page,
int off, int size)
{
struct page *pages[2];
int sizes[2];
void *addr;
pages[0] = firstpage;
pages[1] = get_next_page(firstpage);
pages[0] = page;
pages[1] = get_next_page(page);
BUG_ON(!pages[1]);
sizes[0] = PAGE_SIZE - off;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册