Home
last modified time | relevance | path

Searched refs:sblock (Results 1 – 7 of 7) sorted by relevance

/Linux-v6.1/fs/btrfs/
Dscrub.c66 struct scrub_block *sblock; member
261 struct scrub_block *sblock; in alloc_scrub_block() local
263 sblock = kzalloc(sizeof(*sblock), GFP_KERNEL); in alloc_scrub_block()
264 if (!sblock) in alloc_scrub_block()
266 refcount_set(&sblock->refs, 1); in alloc_scrub_block()
267 sblock->sctx = sctx; in alloc_scrub_block()
268 sblock->logical = logical; in alloc_scrub_block()
269 sblock->physical = physical; in alloc_scrub_block()
270 sblock->physical_for_dev_replace = physical_for_dev_replace; in alloc_scrub_block()
271 sblock->dev = dev; in alloc_scrub_block()
[all …]
/Linux-v6.1/drivers/md/
Ddm-clone-metadata.c237 struct dm_block *sblock; in __superblock_all_zeroes() local
244 r = dm_bm_read_lock(bm, SUPERBLOCK_LOCATION, NULL, &sblock); in __superblock_all_zeroes()
250 data_le = dm_block_data(sblock); in __superblock_all_zeroes()
263 dm_bm_unlock(sblock); in __superblock_all_zeroes()
274 struct dm_block **sblock) in superblock_read_lock() argument
276 return dm_bm_read_lock(cmd->bm, SUPERBLOCK_LOCATION, &sb_validator, sblock); in superblock_read_lock()
280 struct dm_block **sblock) in superblock_write_lock_zero() argument
282 return dm_bm_write_lock_zero(cmd->bm, SUPERBLOCK_LOCATION, &sb_validator, sblock); in superblock_write_lock_zero()
321 struct dm_block *sblock; in __open_metadata() local
324 r = superblock_read_lock(cmd, &sblock); in __open_metadata()
[all …]
Ddm-thin-metadata.c435 struct dm_block **sblock) in superblock_lock_zero() argument
438 &sb_validator, sblock); in superblock_lock_zero()
442 struct dm_block **sblock) in superblock_lock() argument
445 &sb_validator, sblock); in superblock_lock()
550 struct dm_block *sblock; in __write_initial_superblock() local
569 r = superblock_lock_zero(pmd, &sblock); in __write_initial_superblock()
573 disk_super = dm_block_data(sblock); in __write_initial_superblock()
590 return dm_tm_commit(pmd->tm, sblock); in __write_initial_superblock()
678 struct dm_block *sblock; in __open_metadata() local
682 &sb_validator, &sblock); in __open_metadata()
[all …]
Ddm-cache-metadata.c238 struct dm_block **sblock) in superblock_read_lock() argument
241 &sb_validator, sblock); in superblock_read_lock()
245 struct dm_block **sblock) in superblock_lock_zero() argument
248 &sb_validator, sblock); in superblock_lock_zero()
252 struct dm_block **sblock) in superblock_lock() argument
255 &sb_validator, sblock); in superblock_lock()
335 struct dm_block *sblock; in __write_initial_superblock() local
355 r = superblock_lock_zero(cmd, &sblock); in __write_initial_superblock()
359 disk_super = dm_block_data(sblock); in __write_initial_superblock()
387 return dm_tm_commit(cmd->tm, sblock); in __write_initial_superblock()
[all …]
Ddm-era-target.c302 struct dm_block **sblock) in superblock_read_lock() argument
305 &sb_validator, sblock); in superblock_read_lock()
309 struct dm_block **sblock) in superblock_lock_zero() argument
312 &sb_validator, sblock); in superblock_lock_zero()
316 struct dm_block **sblock) in superblock_lock() argument
319 &sb_validator, sblock); in superblock_lock()
519 struct dm_block *sblock; in write_superblock() local
528 r = superblock_lock_zero(md, &sblock); in write_superblock()
532 disk = dm_block_data(sblock); in write_superblock()
535 return dm_tm_commit(md->tm, sblock); in write_superblock()
[all …]
/Linux-v6.1/fs/efs/
Dsuper.c159 efs_block_t sblock = 0; /* shuts up gcc */ in module_exit() local
217 sblock = be32_to_cpu(vh->vh_pt[i].pt_firstlbn); in module_exit()
228 sblock); in module_exit()
231 return sblock; in module_exit()
/Linux-v6.1/fs/bfs/
Ddir.c273 int block, sblock, eblock, off, pos; in bfs_add_entry() local
283 sblock = BFS_I(dir)->i_sblock; in bfs_add_entry()
285 for (block = sblock; block <= eblock; block++) { in bfs_add_entry()
292 pos = (block - sblock) * BFS_BSIZE + off; in bfs_add_entry()