]> xenbits.xensource.com Git - xen.git/commitdiff
tmem: cleanup: rename tmem_relinquish_npages()
authorBob Liu <lliubbo@gmail.com>
Thu, 12 Dec 2013 11:05:13 +0000 (19:05 +0800)
committerJan Beulich <jbeulich@suse.com>
Wed, 8 Jan 2014 07:55:38 +0000 (08:55 +0100)
Rename tmem_relinquish_npages() to tmem_flush_npages() to
distinguish it from tmem_relinquish_pages().

Signed-off-by: Bob Liu <bob.liu@oracle.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
xen/common/tmem.c

index 685efef08cafbf478368a55cb99378ecd5dee807..9269ebf383a1e6e07ed58686277c5af6ce0f6f67 100644 (file)
@@ -1383,7 +1383,7 @@ out:
     return ret;
 }
 
-static unsigned long tmem_relinquish_npages(unsigned long n)
+static unsigned long tmem_flush_npages(unsigned long n)
 {
     unsigned long avail_pages = 0;
 
@@ -2028,7 +2028,7 @@ static int tmemc_flush_mem(domid_t cli_id, uint32_t kb)
     }
     /* convert kb to pages, rounding up if necessary */
     npages = (kb + ((1 << (PAGE_SHIFT-10))-1)) >> (PAGE_SHIFT-10);
-    flushed_pages = tmem_relinquish_npages(npages);
+    flushed_pages = tmem_flush_npages(npages);
     flushed_kb = flushed_pages << (PAGE_SHIFT-10);
     return flushed_kb;
 }