Home | History | Annotate | Download | only in fs

Lines Matching refs:block

15  * the block size, which is 512 byte for FAT fs of the current 
16 * implementation since the block(cluster) size in FAT is a bit big.
32 /* We need one struct cache for the headnode plus one for each block */
43 head->block = -1;
51 cur->block = -1;
62 * Lock a block permanently in the cache by removing it
74 * Check for a particular BLOCK in the block cache,
76 * otherwise pick a victim block and update the LRU link.
78 struct cache *_get_cache_block(struct device *dev, block_t block)
87 if (cs->block == block)
96 /* Move to the end of the LRU chain, unless the block is already locked */
111 * Check for a particular BLOCK in the block cache,
116 const void *get_cache(struct device *dev, block_t block)
120 cs = _get_cache_block(dev, block);
121 if (cs->block != block) {
122 cs->block = block;
123 getoneblk(dev->disk, cs->data, block, dev->cache_block_size);
141 block_t block;
145 block = offset >> fs->block_shift;
147 cd = get_cache(fs->fs_dev, block);