xen/balloon: Mark pages PG_offline in balloon_append()
authorDavid Hildenbrand <david@redhat.com>
Tue, 1 Oct 2019 09:01:51 +0000 (11:01 +0200)
committerBoris Ostrovsky <boris.ostrovsky@oracle.com>
Tue, 1 Oct 2019 19:52:53 +0000 (15:52 -0400)
commit59b52f105f23edebf497bf8f0e57660e649e3f17
treeae32f9cd4048407235f6ee7573047fcfa05db233
parentdde3285ffa1a75dbd67c6a61e5f3eba2267c6593
xen/balloon: Mark pages PG_offline in balloon_append()

Let's move the __SetPageOffline() call which all callers perform into
balloon_append().

In bp_state decrease_reservation(), pages are now marked PG_offline a
little later than before, however, this should not matter for XEN.

Suggested-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Cc: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Cc: Juergen Gross <jgross@suse.com>
Cc: Stefano Stabellini <sstabellini@kernel.org>
Signed-off-by: David Hildenbrand <david@redhat.com>
Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
drivers/xen/balloon.c