commit | 187efff6f37bd6bd3ddae816a847afd16ff06c1d | [log] [tgz] |
---|---|---|
author | Tao Bao <tbao@google.com> | Mon Jul 27 14:07:08 2015 -0700 |
committer | Tao Bao <tbao@google.com> | Mon Jul 27 14:17:09 2015 -0700 |
tree | d1e9b32f133e95afe5577964a2639fde15235f60 | |
parent | 6a4a33e39ea2fa8626335f6b9cccf407c71c0588 [diff] |
updater: Hoist fsync() to outer loop. Currently the fsync() inside write_all() may be called multiple times when performing a command. Move that to the outer loop and call it only after completing the command. Also remove the O_SYNC flag when writing a stash. Change-Id: I71e51d76051a2f7f504eef1aa585d2cb7a000d80