|
Packit Service |
b3514a |
/*
|
|
Packit Service |
b3514a |
* Copyright (c) 2020 Red Hat, Inc.
|
|
Packit Service |
b3514a |
*
|
|
Packit Service |
b3514a |
* This program is free software; you can redistribute it and/or
|
|
Packit Service |
b3514a |
* modify it under the terms of the GNU General Public License
|
|
Packit Service |
b3514a |
* as published by the Free Software Foundation; either version 2
|
|
Packit Service |
b3514a |
* of the License, or (at your option) any later version.
|
|
Packit Service |
b3514a |
*
|
|
Packit Service |
b3514a |
* This program is distributed in the hope that it will be useful,
|
|
Packit Service |
b3514a |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit Service |
b3514a |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
Packit Service |
b3514a |
* GNU General Public License for more details.
|
|
Packit Service |
b3514a |
*
|
|
Packit Service |
b3514a |
* You should have received a copy of the GNU General Public License
|
|
Packit Service |
b3514a |
* along with this program; if not, write to the Free Software
|
|
Packit Service |
b3514a |
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
|
Packit Service |
b3514a |
* 02110-1301, USA.
|
|
Packit Service |
b3514a |
*
|
|
Packit Service |
b3514a |
* $Id: //eng/vdo-releases/aluminum/src/c++/vdo/base/slab.h#8 $
|
|
Packit Service |
b3514a |
*/
|
|
Packit Service |
b3514a |
|
|
Packit Service |
b3514a |
#ifndef VDO_SLAB_H
|
|
Packit Service |
b3514a |
#define VDO_SLAB_H
|
|
Packit Service |
b3514a |
|
|
Packit Service |
b3514a |
#include "permassert.h"
|
|
Packit Service |
b3514a |
|
|
Packit Service |
b3514a |
#include "adminState.h"
|
|
Packit Service |
b3514a |
#include "fixedLayout.h"
|
|
Packit Service |
b3514a |
#include "journalPoint.h"
|
|
Packit Service |
b3514a |
#include "referenceOperation.h"
|
|
Packit Service |
b3514a |
#include "ringNode.h"
|
|
Packit Service |
b3514a |
#include "types.h"
|
|
Packit Service |
b3514a |
|
|
Packit Service |
b3514a |
typedef uint32_t SlabBlockNumber;
|
|
Packit Service |
b3514a |
|
|
Packit Service |
b3514a |
typedef enum {
|
|
Packit Service |
b3514a |
SLAB_REBUILT = 0,
|
|
Packit Service |
b3514a |
SLAB_REPLAYING,
|
|
Packit Service |
b3514a |
SLAB_REQUIRES_SCRUBBING,
|
|
Packit Service |
b3514a |
SLAB_REQUIRES_HIGH_PRIORITY_SCRUBBING,
|
|
Packit Service |
b3514a |
SLAB_REBUILDING,
|
|
Packit Service |
b3514a |
} SlabRebuildStatus;
|
|
Packit Service |
b3514a |
|
|
Packit Service |
b3514a |
/**
|
|
Packit Service |
b3514a |
* This is the type declaration for the Slab type. (The struct tag is named
|
|
Packit Service |
b3514a |
* vdoSlab to avoid a conflict with the linux kernel type). A Slab currently
|
|
Packit Service |
b3514a |
* consists of a run of 2^23 data blocks, but that will soon change to
|
|
Packit Service |
b3514a |
* dedicate a small number of those blocks for metadata storage for the
|
|
Packit Service |
b3514a |
* reference counts and slab journal for the slab.
|
|
Packit Service |
b3514a |
**/
|
|
Packit Service |
b3514a |
struct vdoSlab {
|
|
Packit Service |
b3514a |
/** A RingNode to queue this slab in a BlockAllocator ring */
|
|
Packit Service |
b3514a |
RingNode ringNode;
|
|
Packit Service |
b3514a |
|
|
Packit Service |
b3514a |
/** The BlockAllocator that owns this slab */
|
|
Packit Service |
b3514a |
BlockAllocator *allocator;
|
|
Packit Service |
b3514a |
|
|
Packit Service |
b3514a |
/** The reference counts for the data blocks in this slab */
|
|
Packit Service |
b3514a |
RefCounts *referenceCounts;
|
|
Packit Service |
b3514a |
/** The journal for this slab */
|
|
Packit Service |
b3514a |
SlabJournal *journal;
|
|
Packit Service |
b3514a |
|
|
Packit Service |
b3514a |
/** The slab number of this slab */
|
|
Packit Service |
b3514a |
SlabCount slabNumber;
|
|
Packit Service |
b3514a |
/** The offset in the allocator partition of the first block in this slab */
|
|
Packit Service |
b3514a |
PhysicalBlockNumber start;
|
|
Packit Service |
b3514a |
/** The offset of the first block past the end of this slab */
|
|
Packit Service |
b3514a |
PhysicalBlockNumber end;
|
|
Packit Service |
b3514a |
/** The starting translated PBN of the slab journal */
|
|
Packit Service |
b3514a |
PhysicalBlockNumber journalOrigin;
|
|
Packit Service |
b3514a |
/** The starting translated PBN of the reference counts */
|
|
Packit Service |
b3514a |
PhysicalBlockNumber refCountsOrigin;
|
|
Packit Service |
b3514a |
|
|
Packit Service |
b3514a |
/** The administrative state of the slab */
|
|
Packit Service |
b3514a |
AdminState state;
|
|
Packit Service |
b3514a |
/** The status of the slab */
|
|
Packit Service |
b3514a |
SlabRebuildStatus status;
|
|
Packit Service |
b3514a |
/** Whether the slab was ever queued for scrubbing */
|
|
Packit Service |
b3514a |
bool wasQueuedForScrubbing;
|
|
Packit Service |
b3514a |
|
|
Packit Service |
b3514a |
/** The priority at which this slab has been queued for allocation */
|
|
Packit Service |
b3514a |
uint8_t priority;
|
|
Packit Service |
b3514a |
};
|
|
Packit Service |
b3514a |
|
|
Packit Service |
b3514a |
/**
|
|
Packit Service |
b3514a |
* Measure and initialize the configuration to use for each slab.
|
|
Packit Service |
b3514a |
*
|
|
Packit Service |
b3514a |
* @param [in] slabSize The number of blocks per slab
|
|
Packit Service |
b3514a |
* @param [in] slabJournalBlocks The number of blocks for the slab journal
|
|
Packit Service |
b3514a |
* @param [out] slabConfig The slab configuration to initialize
|
|
Packit Service |
b3514a |
*
|
|
Packit Service |
b3514a |
* @return VDO_SUCCESS or an error code
|
|
Packit Service |
b3514a |
**/
|
|
Packit Service |
b3514a |
int configureSlab(BlockCount slabSize,
|
|
Packit Service |
b3514a |
BlockCount slabJournalBlocks,
|
|
Packit Service |
b3514a |
SlabConfig *slabConfig)
|
|
Packit Service |
b3514a |
__attribute__((warn_unused_result));
|
|
Packit Service |
b3514a |
|
|
Packit Service |
b3514a |
/**
|
|
Packit Service |
b3514a |
* Convert a Slab's RingNode back to the Slab.
|
|
Packit Service |
b3514a |
*
|
|
Packit Service |
b3514a |
* @param ringNode The RingNode to convert
|
|
Packit Service |
b3514a |
*
|
|
Packit Service |
b3514a |
* @return The RingNode as a Slab
|
|
Packit Service |
b3514a |
**/
|
|
Packit Service |
b3514a |
static inline Slab *slabFromRingNode(RingNode *ringNode)
|
|
Packit Service |
b3514a |
{
|
|
Packit Service |
b3514a |
STATIC_ASSERT(offsetof(Slab, ringNode) == 0);
|
|
Packit Service |
b3514a |
return (Slab *) ringNode;
|
|
Packit Service |
b3514a |
}
|
|
Packit Service |
b3514a |
|
|
Packit Service |
b3514a |
/**
|
|
Packit Service |
b3514a |
* Get the physical block number of the start of the slab journal
|
|
Packit Service |
b3514a |
* relative to the start block allocator partition.
|
|
Packit Service |
b3514a |
*
|
|
Packit Service |
b3514a |
* @param slabConfig The slab configuration of the VDO
|
|
Packit Service |
b3514a |
* @param origin The first block of the slab
|
|
Packit Service |
b3514a |
**/
|
|
Packit Service |
b3514a |
__attribute__((warn_unused_result))
|
|
Packit Service |
b3514a |
PhysicalBlockNumber getSlabJournalStartBlock(const SlabConfig *slabConfig,
|
|
Packit Service |
b3514a |
PhysicalBlockNumber origin);
|
|
Packit Service |
b3514a |
|
|
Packit Service |
b3514a |
/**
|
|
Packit Service |
b3514a |
* Construct a new, empty slab.
|
|
Packit Service |
b3514a |
*
|
|
Packit Service |
b3514a |
* @param [in] slabOrigin The physical block number within the block
|
|
Packit Service |
b3514a |
* allocator partition of the first block in the
|
|
Packit Service |
b3514a |
* slab
|
|
Packit Service |
b3514a |
* @param [in] allocator The block allocator to which the slab belongs
|
|
Packit Service |
b3514a |
* @param [in] translation The translation from the depot's partition to
|
|
Packit Service |
b3514a |
* the physical storage
|
|
Packit Service |
b3514a |
* @param [in] recoveryJournal The recovery journal of the VDO
|
|
Packit Service |
b3514a |
* @param [in] slabNumber The slab number of the slab
|
|
Packit Service |
b3514a |
* @param [in] isNew true if this slab is being
|
|
Packit Service |
b3514a |
* allocated as part of a resize
|
|
Packit Service |
b3514a |
* @param [out] slabPtr A pointer to receive the new slab
|
|
Packit Service |
b3514a |
*
|
|
Packit Service |
b3514a |
* @return VDO_SUCCESS or an error code
|
|
Packit Service |
b3514a |
**/
|
|
Packit Service |
b3514a |
int makeSlab(PhysicalBlockNumber slabOrigin,
|
|
Packit Service |
b3514a |
BlockAllocator *allocator,
|
|
Packit Service |
b3514a |
PhysicalBlockNumber translation,
|
|
Packit Service |
b3514a |
RecoveryJournal *recoveryJournal,
|
|
Packit Service |
b3514a |
SlabCount slabNumber,
|
|
Packit Service |
b3514a |
bool isNew,
|
|
Packit Service |
b3514a |
Slab **slabPtr)
|
|
Packit Service |
b3514a |
__attribute__((warn_unused_result));
|
|
Packit Service |
b3514a |
|
|
Packit Service |
b3514a |
/**
|
|
Packit Service |
b3514a |
* Allocate the reference counts for a slab.
|
|
Packit Service |
b3514a |
*
|
|
Packit Service |
b3514a |
* @param slab The slab whose reference counts need allocation.
|
|
Packit Service |
b3514a |
*
|
|
Packit Service |
b3514a |
* @return VDO_SUCCESS or an error code
|
|
Packit Service |
b3514a |
**/
|
|
Packit Service |
b3514a |
int allocateRefCountsForSlab(Slab *slab)
|
|
Packit Service |
b3514a |
__attribute__((warn_unused_result));
|
|
Packit Service |
b3514a |
|
|
Packit Service |
b3514a |
/**
|
|
Packit Service |
b3514a |
* Destroy a slab and null out the reference to it.
|
|
Packit Service |
b3514a |
*
|
|
Packit Service |
b3514a |
* @param slabPtr The reference to the slab to destroy
|
|
Packit Service |
b3514a |
**/
|
|
Packit Service |
b3514a |
void freeSlab(Slab **slabPtr);
|
|
Packit Service |
b3514a |
|
|
Packit Service |
b3514a |
/**
|
|
Packit Service |
b3514a |
* Get the physical zone number of a slab.
|
|
Packit Service |
b3514a |
*
|
|
Packit Service |
b3514a |
* @param slab The slab
|
|
Packit Service |
b3514a |
*
|
|
Packit Service |
b3514a |
* @return The number of the slab's physical zone
|
|
Packit Service |
b3514a |
**/
|
|
Packit Service |
b3514a |
ZoneCount getSlabZoneNumber(Slab *slab)
|
|
Packit Service |
b3514a |
__attribute__((warn_unused_result));
|
|
Packit Service |
b3514a |
|
|
Packit Service |
b3514a |
/**
|
|
Packit Service |
b3514a |
* Check whether a slab is unrecovered.
|
|
Packit Service |
b3514a |
*
|
|
Packit Service |
b3514a |
* @param slab The slab to check
|
|
Packit Service |
b3514a |
*
|
|
Packit Service |
b3514a |
* @return true if the slab is unrecovered
|
|
Packit Service |
b3514a |
**/
|
|
Packit Service |
b3514a |
static inline bool isUnrecoveredSlab(const Slab *slab)
|
|
Packit Service |
b3514a |
{
|
|
Packit Service |
b3514a |
return (slab->status != SLAB_REBUILT);
|
|
Packit Service |
b3514a |
}
|
|
Packit Service |
b3514a |
|
|
Packit Service |
b3514a |
/**
|
|
Packit Service |
b3514a |
* Check whether a slab is being replayed into.
|
|
Packit Service |
b3514a |
*
|
|
Packit Service |
b3514a |
* @param slab The slab to check
|
|
Packit Service |
b3514a |
*
|
|
Packit Service |
b3514a |
* @return true if the slab is replaying
|
|
Packit Service |
b3514a |
**/
|
|
Packit Service |
b3514a |
static inline bool isReplayingSlab(const Slab *slab)
|
|
Packit Service |
b3514a |
{
|
|
Packit Service |
b3514a |
return (slab->status == SLAB_REPLAYING);
|
|
Packit Service |
b3514a |
}
|
|
Packit Service |
b3514a |
|
|
Packit Service |
b3514a |
/**
|
|
Packit Service |
b3514a |
* Check whether a slab is being rebuilt.
|
|
Packit Service |
b3514a |
*
|
|
Packit Service |
b3514a |
* @param slab The slab to check
|
|
Packit Service |
b3514a |
*
|
|
Packit Service |
b3514a |
* @return true if the slab is being rebuilt
|
|
Packit Service |
b3514a |
**/
|
|
Packit Service |
b3514a |
static inline bool slabIsRebuilding(const Slab *slab)
|
|
Packit Service |
b3514a |
{
|
|
Packit Service |
b3514a |
return (slab->status == SLAB_REBUILDING);
|
|
Packit Service |
b3514a |
}
|
|
Packit Service |
b3514a |
|
|
Packit Service |
b3514a |
/**
|
|
Packit Service |
b3514a |
* Mark a slab as replaying, during offline recovery.
|
|
Packit Service |
b3514a |
*
|
|
Packit Service |
b3514a |
* @param slab The slab to mark
|
|
Packit Service |
b3514a |
**/
|
|
Packit Service |
b3514a |
void markSlabReplaying(Slab *slab);
|
|
Packit Service |
b3514a |
|
|
Packit Service |
b3514a |
/**
|
|
Packit Service |
b3514a |
* Mark a slab as unrecovered, for online recovery.
|
|
Packit Service |
b3514a |
*
|
|
Packit Service |
b3514a |
* @param slab The slab to mark
|
|
Packit Service |
b3514a |
**/
|
|
Packit Service |
b3514a |
void markSlabUnrecovered(Slab *slab);
|
|
Packit Service |
b3514a |
|
|
Packit Service |
b3514a |
/**
|
|
Packit Service |
b3514a |
* Get the current number of free blocks in a slab.
|
|
Packit Service |
b3514a |
*
|
|
Packit Service |
b3514a |
* @param slab The slab to query
|
|
Packit Service |
b3514a |
*
|
|
Packit Service |
b3514a |
* @return the number of free blocks in the slab
|
|
Packit Service |
b3514a |
**/
|
|
Packit Service |
b3514a |
BlockCount getSlabFreeBlockCount(const Slab *slab)
|
|
Packit Service |
b3514a |
__attribute__((warn_unused_result));
|
|
Packit Service |
b3514a |
|
|
Packit Service |
b3514a |
/**
|
|
Packit Service |
b3514a |
* Increment or decrement the reference count of a block in a slab.
|
|
Packit Service |
b3514a |
*
|
|
Packit Service |
b3514a |
* @param slab The slab containing the block (may be NULL when
|
|
Packit Service |
b3514a |
* referencing the zero block)
|
|
Packit Service |
b3514a |
* @param journalPoint The slab journal entry corresponding to this change
|
|
Packit Service |
b3514a |
* @param operation The operation to perform on the reference count
|
|
Packit Service |
b3514a |
*
|
|
Packit Service |
b3514a |
* @return VDO_SUCCESS or an error
|
|
Packit Service |
b3514a |
**/
|
|
Packit Service |
b3514a |
int modifySlabReferenceCount(Slab *slab,
|
|
Packit Service |
b3514a |
const JournalPoint *journalPoint,
|
|
Packit Service |
b3514a |
ReferenceOperation operation)
|
|
Packit Service |
b3514a |
__attribute__((warn_unused_result));
|
|
Packit Service |
b3514a |
|
|
Packit Service |
b3514a |
/**
|
|
Packit Service |
b3514a |
* Acquire a provisional reference on behalf of a PBN lock if the block it
|
|
Packit Service |
b3514a |
* locks is unreferenced.
|
|
Packit Service |
b3514a |
*
|
|
Packit Service |
b3514a |
* @param slab The slab which contains the block
|
|
Packit Service |
b3514a |
* @param pbn The physical block to reference
|
|
Packit Service |
b3514a |
* @param lock The lock
|
|
Packit Service |
b3514a |
*
|
|
Packit Service |
b3514a |
* @return VDO_SUCCESS or an error
|
|
Packit Service |
b3514a |
**/
|
|
Packit Service |
b3514a |
int acquireProvisionalReference(Slab *slab,
|
|
Packit Service |
b3514a |
PhysicalBlockNumber pbn,
|
|
Packit Service |
b3514a |
PBNLock *lock)
|
|
Packit Service |
b3514a |
__attribute__((warn_unused_result));
|
|
Packit Service |
b3514a |
|
|
Packit Service |
b3514a |
/**
|
|
Packit Service |
b3514a |
* Determine the index within the slab of a particular physical block number.
|
|
Packit Service |
b3514a |
*
|
|
Packit Service |
b3514a |
* @param [in] slab The slab
|
|
Packit Service |
b3514a |
* @param [in] physicalBlockNumber The physical block number
|
|
Packit Service |
b3514a |
* @param [out] slabBlockNumberPtr A pointer to the slab block number
|
|
Packit Service |
b3514a |
*
|
|
Packit Service |
b3514a |
* @return VDO_SUCCESS or an error code
|
|
Packit Service |
b3514a |
**/
|
|
Packit Service |
b3514a |
int slabBlockNumberFromPBN(Slab *slab,
|
|
Packit Service |
b3514a |
PhysicalBlockNumber physicalBlockNumber,
|
|
Packit Service |
b3514a |
SlabBlockNumber *slabBlockNumberPtr)
|
|
Packit Service |
b3514a |
__attribute__((warn_unused_result));
|
|
Packit Service |
b3514a |
|
|
Packit Service |
b3514a |
/**
|
|
Packit Service |
b3514a |
* Check whether the reference counts for a given rebuilt slab should be saved.
|
|
Packit Service |
b3514a |
* Implements SlabStatusChecker.
|
|
Packit Service |
b3514a |
*
|
|
Packit Service |
b3514a |
* @param slab The slab to check
|
|
Packit Service |
b3514a |
*
|
|
Packit Service |
b3514a |
* @return true if the slab should be saved
|
|
Packit Service |
b3514a |
**/
|
|
Packit Service |
b3514a |
bool shouldSaveFullyBuiltSlab(const Slab *slab)
|
|
Packit Service |
b3514a |
__attribute__((warn_unused_result));
|
|
Packit Service |
b3514a |
|
|
Packit Service |
b3514a |
/**
|
|
Packit Service |
b3514a |
* Start an administrative operation on a slab.
|
|
Packit Service |
b3514a |
*
|
|
Packit Service |
b3514a |
* @param slab The slab to load
|
|
Packit Service |
b3514a |
* @param operation The type of load to perform
|
|
Packit Service |
b3514a |
* @param parent The object to notify when the operation is complete
|
|
Packit Service |
b3514a |
**/
|
|
Packit Service |
b3514a |
void startSlabAction(Slab *slab,
|
|
Packit Service |
b3514a |
AdminStateCode operation,
|
|
Packit Service |
b3514a |
VDOCompletion *parent);
|
|
Packit Service |
b3514a |
|
|
Packit Service |
b3514a |
/**
|
|
Packit Service |
b3514a |
* Inform a slab that its journal has been loaded.
|
|
Packit Service |
b3514a |
*
|
|
Packit Service |
b3514a |
* @param slab The slab whose journal has been loaded
|
|
Packit Service |
b3514a |
* @param result The result of the load operation
|
|
Packit Service |
b3514a |
**/
|
|
Packit Service |
b3514a |
void notifySlabJournalIsLoaded(Slab *slab, int result);
|
|
Packit Service |
b3514a |
|
|
Packit Service |
b3514a |
/**
|
|
Packit Service |
b3514a |
* Check whether a slab is open, i.e. is neither quiescent nor quiescing.
|
|
Packit Service |
b3514a |
*
|
|
Packit Service |
b3514a |
* @param slab The slab to check
|
|
Packit Service |
b3514a |
*
|
|
Packit Service |
b3514a |
* @return true if the slab is open
|
|
Packit Service |
b3514a |
**/
|
|
Packit Service |
b3514a |
bool isSlabOpen(Slab *slab)
|
|
Packit Service |
b3514a |
__attribute__((warn_unused_result));
|
|
Packit Service |
b3514a |
|
|
Packit Service |
b3514a |
/**
|
|
Packit Service |
b3514a |
* Check whether a slab is currently draining.
|
|
Packit Service |
b3514a |
*
|
|
Packit Service |
b3514a |
* @param slab The slab to check
|
|
Packit Service |
b3514a |
*
|
|
Packit Service |
b3514a |
* @return true if the slab is performing a drain operation
|
|
Packit Service |
b3514a |
**/
|
|
Packit Service |
b3514a |
bool isSlabDraining(Slab *slab)
|
|
Packit Service |
b3514a |
__attribute__((warn_unused_result));
|
|
Packit Service |
b3514a |
|
|
Packit Service |
b3514a |
/**
|
|
Packit Service |
b3514a |
* Check whether a slab has drained, and if so, send a notification thereof.
|
|
Packit Service |
b3514a |
*
|
|
Packit Service |
b3514a |
* @param slab The slab to check
|
|
Packit Service |
b3514a |
**/
|
|
Packit Service |
b3514a |
void checkIfSlabDrained(Slab *slab);
|
|
Packit Service |
b3514a |
|
|
Packit Service |
b3514a |
/**
|
|
Packit Service |
b3514a |
* Inform a slab that its journal has finished draining.
|
|
Packit Service |
b3514a |
*
|
|
Packit Service |
b3514a |
* @param slab The slab whose journal has been drained
|
|
Packit Service |
b3514a |
* @param result The result of the drain operation
|
|
Packit Service |
b3514a |
**/
|
|
Packit Service |
b3514a |
void notifySlabJournalIsDrained(Slab *slab, int result);
|
|
Packit Service |
b3514a |
|
|
Packit Service |
b3514a |
/**
|
|
Packit Service |
b3514a |
* Inform a slab that its RefCounts have finished draining.
|
|
Packit Service |
b3514a |
*
|
|
Packit Service |
b3514a |
* @param slab The slab whose RefCounts has been drained
|
|
Packit Service |
b3514a |
* @param result The result of the drain operation
|
|
Packit Service |
b3514a |
**/
|
|
Packit Service |
b3514a |
void notifyRefCountsAreDrained(Slab *slab, int result);
|
|
Packit Service |
b3514a |
|
|
Packit Service |
b3514a |
/**
|
|
Packit Service |
b3514a |
* Check whether a slab is currently resuming.
|
|
Packit Service |
b3514a |
*
|
|
Packit Service |
b3514a |
* @param slab The slab to check
|
|
Packit Service |
b3514a |
*
|
|
Packit Service |
b3514a |
* @return true if the slab is performing a resume operation
|
|
Packit Service |
b3514a |
**/
|
|
Packit Service |
b3514a |
bool isSlabResuming(Slab *slab)
|
|
Packit Service |
b3514a |
__attribute__((warn_unused_result));
|
|
Packit Service |
b3514a |
|
|
Packit Service |
b3514a |
/**
|
|
Packit Service |
b3514a |
* Finish scrubbing a slab now that it has been rebuilt by updating its status,
|
|
Packit Service |
b3514a |
* queueing it for allocation, and reopening its journal.
|
|
Packit Service |
b3514a |
*
|
|
Packit Service |
b3514a |
* @param slab The slab whose reference counts have been rebuilt from its
|
|
Packit Service |
b3514a |
* journal
|
|
Packit Service |
b3514a |
**/
|
|
Packit Service |
b3514a |
void finishScrubbingSlab(Slab *slab);
|
|
Packit Service |
b3514a |
|
|
Packit Service |
b3514a |
/**
|
|
Packit Service |
b3514a |
* Dump information about a slab to the log for debugging.
|
|
Packit Service |
b3514a |
*
|
|
Packit Service |
b3514a |
* @param slab The slab to dump
|
|
Packit Service |
b3514a |
**/
|
|
Packit Service |
b3514a |
void dumpSlab(const Slab *slab);
|
|
Packit Service |
b3514a |
|
|
Packit Service |
b3514a |
#endif // VDO_SLAB_H
|