Blame source/vdo/base/referenceCountRebuild.h

Packit Service 75d76b
/*
Packit Service 75d76b
 * Copyright (c) 2020 Red Hat, Inc.
Packit Service 75d76b
 *
Packit Service 75d76b
 * This program is free software; you can redistribute it and/or
Packit Service 75d76b
 * modify it under the terms of the GNU General Public License
Packit Service 75d76b
 * as published by the Free Software Foundation; either version 2
Packit Service 75d76b
 * of the License, or (at your option) any later version.
Packit Service 75d76b
 * 
Packit Service 75d76b
 * This program is distributed in the hope that it will be useful,
Packit Service 75d76b
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit Service 75d76b
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
Packit Service 75d76b
 * GNU General Public License for more details.
Packit Service 75d76b
 * 
Packit Service 75d76b
 * You should have received a copy of the GNU General Public License
Packit Service 75d76b
 * along with this program; if not, write to the Free Software
Packit Service 75d76b
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
Packit Service 75d76b
 * 02110-1301, USA. 
Packit Service 75d76b
 *
Packit Service 75d76b
 * $Id: //eng/vdo-releases/aluminum/src/c++/vdo/base/referenceCountRebuild.h#1 $
Packit Service 75d76b
 */
Packit Service 75d76b
Packit Service 75d76b
#ifndef REFERENCE_COUNT_REBUILD_H
Packit Service 75d76b
#define REFERENCE_COUNT_REBUILD_H
Packit Service 75d76b
Packit Service 75d76b
#include "types.h"
Packit Service 75d76b
Packit Service 75d76b
/**
Packit Service 75d76b
 * Rebuild the reference counts from the block map (read-only rebuild).
Packit Service 75d76b
 *
Packit Service 75d76b
 * @param [in]  vdo                 The VDO
Packit Service 75d76b
 * @param [in]  parent              The completion to notify when the rebuild is
Packit Service 75d76b
 *                                  complete
Packit Service 75d76b
 * @param [out] logicalBlocksUsed   A pointer to hold the logical blocks used
Packit Service 75d76b
 * @param [out] blockMapDataBlocks  A pointer to hold the number of block map
Packit Service 75d76b
 *                                  data blocks
Packit Service 75d76b
 **/
Packit Service 75d76b
void rebuildReferenceCounts(VDO           *vdo,
Packit Service 75d76b
                            VDOCompletion *parent,
Packit Service 75d76b
                            BlockCount    *logicalBlocksUsed,
Packit Service 75d76b
                            BlockCount    *blockMapDataBlocks);
Packit Service 75d76b
Packit Service 75d76b
#endif // REFERENCE_COUNT_REBUILD_H