diff options
author | android-build-team Robot <android-build-team-robot@google.com> | 2019-06-08 23:11:30 +0000 |
---|---|---|
committer | android-build-team Robot <android-build-team-robot@google.com> | 2019-06-08 23:11:30 +0000 |
commit | 811cde566af900d9d35f795a8297cb3beaae7733 (patch) | |
tree | a0fc1c274ab8b126b866a295055a6ebcd263edd4 | |
parent | 37c94a64efc250b3c84a5ac3458c9e6b20e800f8 (diff) | |
parent | 999afeeb3e59b930f066cb0bb0402cd1b27d0805 (diff) | |
download | extras-android10-mainline-a-release.tar.gz |
Snap for 5645017 from 999afeeb3e59b930f066cb0bb0402cd1b27d0805 to qt-aml-releaseandroid-mainline-10.0.0_r3android-mainline-10.0.0_r2android-mainline-10.0.0_r1android10-mainline-releaseandroid10-mainline-a-release
Change-Id: I4c40b350d933a66ebf37c37124cb74c3a89dab60
-rw-r--r-- | checkpoint_gc/checkpoint_gc.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/checkpoint_gc/checkpoint_gc.sh b/checkpoint_gc/checkpoint_gc.sh index d653ee56..682c8499 100644 --- a/checkpoint_gc/checkpoint_gc.sh +++ b/checkpoint_gc/checkpoint_gc.sh @@ -39,6 +39,8 @@ if [ -z "${NAME}" ]; then exit 0 fi log -pi -t checkpoint_gc Turning on GC for ${NAME} +read OLD_SLEEP < /sys/fs/f2fs/${NAME}/gc_urgent_sleep_time || exit 1 +echo 50 > /sys/fs/f2fs/${NAME}/gc_urgent_sleep_time || exit 1 echo 1 > /sys/fs/f2fs/${NAME}/gc_urgent || exit 1 read DIRTY_SEGMENTS_START < /sys/fs/f2fs/${NAME}/dirty_segments @@ -63,6 +65,7 @@ done log -pi -t checkpoint_gc Turning off GC for ${NAME} echo 0 > /sys/fs/f2fs/${NAME}/gc_urgent +echo ${OLD_SLEEP} > /sys/fs/f2fs/${NAME}/gc_urgent_sleep_time sync print -u${STATUS_FD} "global_progress 1.0" |