staging: gasket: page_table: rearrange gasket_page_table_entry

Rearrange gasket_page_table entry to reduce padding slop.

Change-Id: I1dab69344bb1974de0d67028e6f638ec5a849374
Signed-off-by: Nick Ewalt <nicholasewalt@google.com>
Signed-off-by: Todd Poynor <toddpoynor@google.com>
This commit is contained in:
Leonid Lobachev
2019-09-23 11:55:10 -07:00
parent 06938d183c
commit 7e99cc991a

View File

@@ -103,12 +103,6 @@ struct gasket_page_table_entry {
/* The status of this entry/slot: free or in use. */
enum pte_status status;
/* Address of the page in DMA space. */
dma_addr_t dma_addr;
/* Linux page descriptor for the page described by this structure. */
struct page *page;
/*
* Index for alignment into host vaddrs.
* When a user specifies a host address for a mapping, that address may
@@ -119,6 +113,12 @@ struct gasket_page_table_entry {
*/
int offset;
/* Address of the page in DMA space. */
dma_addr_t dma_addr;
/* Linux page descriptor for the page described by this structure. */
struct page *page;
/*
* If this is an extended and first-level entry, sublevel points
* to the second-level entries underneath this entry.