summaryrefslogtreecommitdiff
path: root/debuggerd/handler/debuggerd_handler.cpp
diff options
context:
space:
mode:
authorDavid Anderson <dvander@google.com>2019-12-17 15:00:43 -0800
committerDavid Anderson <dvander@google.com>2019-12-17 15:04:08 -0800
commit71b287bfd76cf5bb276c21a647cc7b88b67ab2cc (patch)
treea3617463660050fd2e5b402ac74d04605bace3cb /debuggerd/handler/debuggerd_handler.cpp
parent18c6248ffeb1c790c5c57ffbdb0c6768bbbca537 (diff)
libfiemap: Fix fallocate() usage.
This fixes two bugs in how we use fallocate(). First, using ZERO_RANGE is a mechanism to allocate holes, not blocks. Instead we should be passing no flags. The reason this code worked is because of our explicit writes to the file, which is intended to defeat lazy block allocation. This is not necessary for F2FS with proper file pinning support, so we now skip this when possible. Together, these fixes improve the speed of "adb remount" when backed by libfiemap. Bug: 134949511 Test: adb remount when backed by /data Change-Id: I746053d183e0c83d56979d9c3fa6d96b40b5e478
Diffstat (limited to 'debuggerd/handler/debuggerd_handler.cpp')
0 files changed, 0 insertions, 0 deletions