Set VM dirty ratio to zero when UMS is active
Improves UI responsiveness when copying large amount of data to the device.
BUG: 3131847
Change-Id: I4aa5ade7e2cd7e5110c8f0f7ee43bdc57577e11d
Signed-off-by: Mike Lockwood <lockwood@google.com>
diff --git a/VolumeManager.h b/VolumeManager.h
index ffba5e6..11b5ed3 100644
--- a/VolumeManager.h
+++ b/VolumeManager.h
@@ -62,6 +62,11 @@
bool mUsbConnected;
bool mDebug;
+ // for adjusting /proc/sys/vm/dirty_ratio when UMS is active
+ int mUmsSharingCount;
+ int mSavedDirtyRatio;
+ int mUmsDirtyRatio;
+
public:
virtual ~VolumeManager();