class NodeReserverInterface

Defined at line 20 of file ../../src/storage/blobfs/allocator/node_reserver.h

Interface for reserving and unreserving nodes. The purpose of reservation is to allow allocation

of nodes to occur without yet allocating structures which could be written out to durable

storage.

Public Methods

zx::result<ReservedNode> ReserveNode ()

Reserves space for a node in memory. Does not update disk. Returns an error if a node could not

be reserved.

void UnreserveNode (ReservedNode node)

Unreserves space for a node in memory. Does not update disk.

uint64_t ReservedNodeCount ()

Returns the total number of reserved nodes.