mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-04 01:49:36 +00:00
zram/xvmalloc: Close 32byte hole on 64bit CPUs
By swapping the total_pages statistic with the lock we close a hole in the structure for 64-bit CPUs. Signed-off-by: Robert Jennings <rcj@linux.vnet.ibm.com> Reviewed-by: Pekka Enberg <penberg@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
b1f5b81ebe
commit
3770096585
1 changed files with 2 additions and 5 deletions
|
@ -87,12 +87,9 @@ struct block_header {
|
||||||
struct xv_pool {
|
struct xv_pool {
|
||||||
ulong flbitmap;
|
ulong flbitmap;
|
||||||
ulong slbitmap[MAX_FLI];
|
ulong slbitmap[MAX_FLI];
|
||||||
spinlock_t lock;
|
u64 total_pages; /* stats */
|
||||||
|
|
||||||
struct freelist_entry freelist[NUM_FREE_LISTS];
|
struct freelist_entry freelist[NUM_FREE_LISTS];
|
||||||
|
spinlock_t lock;
|
||||||
/* stats */
|
|
||||||
u64 total_pages;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue