mirror of
https://github.com/a52xq-dev/kernel.git
synced 2026-10-18 21:58:11 +07:00
ANDROID: GKI: Add write_pending and max_writes fields to swap_info_struct
This is required to resolve ABI diff in swap_info_struct struct. Bug: 151955270 Test: build and boot without original sysfs files Signed-off-by: Vinayak Menon <vinmenon@codeaurora.org> Signed-off-by: Charan Teja Reddy <charante@codeaurora.org> [swatsrid@codeaurora.org: Fix trivial merge conflicts] Signed-off-by: Swathi Sridhar <swatsrid@codeaurora.org> (cherry picked from commit ac4b2c42c81b39bc5602b8201d0e998b455391e7) [surenb: commit amended to include only swap_info_struct changes] Signed-off-by: Suren Baghdasaryan <surenb@google.com> Change-Id: Idd145757b12821030bb371b494a41d316ff56d0c
This commit is contained in:
parent
fe48ed944b
commit
a61a29a613
1 changed files with 2 additions and 0 deletions
|
|
@ -272,6 +272,8 @@ struct swap_info_struct {
|
|||
*/
|
||||
struct work_struct discard_work; /* discard worker */
|
||||
struct swap_cluster_list discard_clusters; /* discard clusters list */
|
||||
unsigned int write_pending;
|
||||
unsigned int max_writes;
|
||||
struct plist_node avail_lists[0]; /*
|
||||
* entries in swap_avail_heads, one
|
||||
* entry per node.
|
||||
|
|
|
|||
Loading…
Reference in a new issue