staging: zsmalloc: s/firstpage/page in new copy map funcs
authorSeth Jennings <sjenning@linux.vnet.ibm.com>
Wed, 18 Jul 2012 16:55:54 +0000 (11:55 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 14 Aug 2012 02:28:08 +0000 (19:28 -0700)
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: Seth Jennings <sjenning@linux.vnet.ibm.com>
Acked-by: Minchan Kim <minchan@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/zsmalloc/zsmalloc-main.c

index 8b0bcb626a7f8e3082fa6dce0fbac81c92fde966..3c83c65ca5b8cc743c38a842a76ed3f352998e08 100644 (file)
@@ -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;