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 ac4b2c42c8)
[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:
Suren Baghdasaryan 2020-03-19 11:48:27 -07:00
parent fe48ed944b
commit a61a29a613

View file

@ -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.