Thread (87 messages) 87 messages, 7 authors, 2015-08-06

[PATCH v2 06/20] block/xen-blkfront: Store a page rather a pfn in the grant structure

From: roger.pau@citrix.com (Roger Pau Monné)
Date: 2015-07-21 10:16:14
Also in: lkml

El 09/07/15 a les 22.42, Julien Grall ha escrit:
All the usage of the field pfn are done using the same idiom:

pfn_to_page(grant->pfn)

This will  return always the same page. Store directly the page in the
grant to clean up the code.

Signed-off-by: Julien Grall <redacted>
Cc: Konrad Rzeszutek Wilk <redacted>
Cc: Roger Pau Monn? <roger.pau@citrix.com>
Cc: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Cc: David Vrabel <redacted>
Acked-by: Roger Pau Monn? <roger.pau@citrix.com>

With one style fix.

[...]
 static struct grant *get_grant(grant_ref_t *gref_head,
-                               unsigned long pfn,
+			       struct page *page,
Indentation.

Roger.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help