x86/mm: use put_page_type_preemptible in put_page_from_l{3,4}e
authorWei Liu <wei.liu2@citrix.com>
Mon, 4 Sep 2017 11:42:06 +0000 (12:42 +0100)
committerWei Liu <wei.liu2@citrix.com>
Mon, 4 Sep 2017 13:56:42 +0000 (14:56 +0100)
No functional change.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/mm.c

index 73a490b4ee2c4c3559523b07b8b3c9f81cbddfbc..e5a029c9bec1683ac435fa15384fa2e2422b28cb 100644 (file)
@@ -1358,8 +1358,6 @@ static int put_page_from_l2e(l2_pgentry_t l2e, unsigned long pfn)
     return 0;
 }
 
-static int __put_page_type(struct page_info *, int preemptible);
-
 static int put_page_from_l3e(l3_pgentry_t l3e, unsigned long pfn,
                              int partial, bool defer)
 {
@@ -1386,7 +1384,7 @@ static int put_page_from_l3e(l3_pgentry_t l3e, unsigned long pfn,
     if ( unlikely(partial > 0) )
     {
         ASSERT(!defer);
-        return __put_page_type(pg, 1);
+        return put_page_type_preemptible(pg);
     }
 
     if ( defer )
@@ -1409,7 +1407,7 @@ static int put_page_from_l4e(l4_pgentry_t l4e, unsigned long pfn,
         if ( unlikely(partial > 0) )
         {
             ASSERT(!defer);
-            return __put_page_type(pg, 1);
+            return put_page_type_preemptible(pg);
         }
 
         if ( defer )