Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 06df12ba authored by Paul Trautrim's avatar Paul Trautrim Committed by android-build-merger
Browse files

Merge "fiemap_writer: Use fallocate64"

am: 032b7448

Change-Id: Icca45dde6e0e7e15eddb456da641167d1d401cd7
parents d36d052a 032b7448
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -225,7 +225,7 @@ static bool AllocateFile(int file_fd, const std::string& file_path, uint64_t blo
    // don't come back unwritten. Return from this function with the kernel file offset set to 0.
    // If the filesystem is f2fs, then we also PIN the file on disk to make sure the blocks
    // aren't moved around.
    if (fallocate(file_fd, FALLOC_FL_ZERO_RANGE, 0, file_size)) {
    if (fallocate64(file_fd, FALLOC_FL_ZERO_RANGE, 0, file_size)) {
        PLOG(ERROR) << "Failed to allocate space for file: " << file_path << " size: " << file_size;
        return false;
    }