Searched refs:superblock (Results 1 - 12 of 12) sorted by last modified time
/haiku/src/add-ons/kernel/file_systems/ufs2/ |
H A D | Inode.cpp | 30 ufs2_super_block* superblock = (ufs2_super_block* )&fVolume->SuperBlock(); local 31 int64_t fs_block = ino_to_fsba(superblock, id); 32 int64_t offset_in_block = ino_to_fsbo(superblock, id); 33 int64_t offset = fs_block * superblock->fs_fsize + offset_in_block * sizeof(fNode);
|
/haiku/src/system/libroot/posix/malloc_hoard2/ |
H A D | heap.h | 31 #include "superblock.h" 43 // A superblock that holds more than one object must hold at least 99 // Insert a superblock into our list. 100 void insertSuperblock(int sizeclass, superblock *sb, processHeap *pHeap); 102 // Remove the superblock with the most free space. 103 superblock *removeMaxSuperblock(int sizeclass); 105 // Find an available superblock (i.e., with some space in it). 106 inline superblock *findAvailableSuperblock(int sizeclass, 124 // Free a block into a superblock. 126 // Returns 1 iff the superblock wa [all...] |
H A D | block.h | 31 class superblock; 35 block(superblock * sb) 73 // Return the block's superblock pointer. 74 inline superblock *getSuperblock(void); 155 superblock *_mySuperblock; // A pointer to my superblock. 167 superblock *_mySuperblock; // A pointer to my superblock. 201 superblock *
|
H A D | threadheap.h | 145 // Find the superblock pointer. 148 superblock *sb = b->getSuperblock();
|
H A D | superblock.h | 21 superblock.h 23 The superblock class controls a number of blocks (which are 45 class superblock { class in namespace:BPrivate 47 // Construct a superblock for a given size class and set the heap 49 superblock(int numblocks, int sizeclass, hoardHeap *owner); 50 ~superblock(void) {} 52 // Make (allocate or re-use) a superblock for a given size class. 53 static superblock *makeSuperblock(int sizeclass, processHeap *pHeap); 55 // Find out who allocated this superblock. 58 // Set the superblock' [all...] |
H A D | threadheap.cpp | 41 // side effects: allocates a block from a superblock; 61 // superblock list. 63 superblock *sb = findAvailableSuperblock(sizeclass, b, _pHeap); 72 // we'll have to allocate our own superblock. 74 sb = superblock::makeSuperblock(sizeclass, _pHeap); 92 // Get a block from the superblock. 96 // Insert the superblock into our list.
|
H A D | superblock.cpp | 20 superblock.cpp 22 The superblock class controls a number of blocks (which are 37 #include "superblock.h" 42 superblock::superblock(int numBlocks, // The number of blocks in the sb. function in class:superblock 63 // Set the first block to just past this superblock header. 80 assert((unsigned long)b <= hoardHeap::align(sizeof(superblock) + blksize * _numBlocks) 83 hoardLockInit(_upLock, "hoard superblock"); 87 superblock * 88 superblock [all...] |
H A D | processheap.h | 76 // Extract a superblock. 77 inline superblock *acquire(const int c, hoardHeap * dest); 79 // Get space for a superblock. 82 // Insert a superblock. 83 inline void release(superblock * sb); 161 // A lock for the superblock buffer. 214 superblock * 219 // Remove the superblock with the most free space. 220 superblock *maxSb = removeMaxSuperblock(sizeclass); 250 // Put a superblock bac [all...] |
H A D | processheap.cpp | 158 // side effects: returns the block to the object's superblock; 160 // may release the superblock to the process heap. 170 // Find the block and superblock corresponding to this ptr. 184 superblock *sb = b->getSuperblock(); 191 // Return the block to the superblock, 192 // find the heap that owns this superblock 198 // By acquiring the up lock on the superblock,
|
H A D | heap.cpp | 24 #include "superblock.h" 152 superblock *sb, processHeap *pHeap) 163 // How full is this superblock? We'll use this information to put 175 // Recycle this superblock. 196 hoardUnsbrk(sb, align(sizeof(superblock) + blksize)); 202 superblock *&head = _superblocks[fullness][sizeclass]; 213 superblock * 218 superblock *head = NULL; 224 // We found one. Since we're removing this superblock, update the 233 // Instead of finding the superblock wit [all...] |
/haiku/src/add-ons/kernel/file_systems/ext2/ |
H A D | Journal.h | 305 status_t _CheckFeatures(JournalSuperBlock* superblock); 307 uint32 _Checksum(JournalSuperBlock* superblock);
|
H A D | Journal.cpp | 682 JournalSuperBlock superblock; local 684 &superblock, sizeof(superblock)); 686 if (bytesRead != sizeof(superblock)) 689 superblock.SetFirstCommitID(fFirstCommitID); 690 superblock.SetLogStart(fLogStart); 693 superblock.SetChecksum(_Checksum(&superblock)); 698 &superblock, sizeof(superblock)); 725 JournalSuperBlock superblock; local 800 _CheckFeatures(JournalSuperBlock* superblock) argument 831 _Checksum(JournalSuperBlock* superblock) argument [all...] |
Completed in 98 milliseconds