]> xenbits.xensource.com Git - people/iwj/xen.git/commitdiff
gnttab: remove redundant xenheap check from gnttab_transfer()
authorJan Beulich <jbeulich@suse.com>
Thu, 22 Jun 2017 07:49:03 +0000 (09:49 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 22 Jun 2017 07:49:03 +0000 (09:49 +0200)
The message isn't very useful, and the check is being done by
steal_page() anyway.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/common/grant_table.c

index 03de2be4e785b3f4c98a2ee27d94370fa7aedf61..d3d8392c525e2c9f45b30dd644a843d424294553 100644 (file)
@@ -1843,15 +1843,6 @@ gnttab_transfer(
         }
 
         page = mfn_to_page(mfn);
-        if ( unlikely(is_xen_heap_page(page)) )
-        { 
-            put_gfn(d, gop.mfn);
-            gdprintk(XENLOG_INFO, "gnttab_transfer: xen frame %lx\n",
-                    (unsigned long)gop.mfn);
-            gop.status = GNTST_bad_page;
-            goto copyback;
-        }
-
         if ( steal_page(d, page, 0) < 0 )
         {
             put_gfn(d, gop.mfn);