Lines Matching refs:block_nr
375 blk64_t *block_nr, in process_pass1b_block() argument
386 if (*block_nr == 0) in process_pass1b_block()
391 pc = EXT2FS_B2C(fs, *block_nr); in process_pass1b_block()
393 if (!ext2fs_test_block_bitmap2(ctx->block_dup_map, *block_nr)) in process_pass1b_block()
398 if (p->last_blk + 1 != *block_nr) { in process_pass1b_block()
405 p->pctx->blk = *block_nr; in process_pass1b_block()
407 p->pctx->blk2 = *block_nr; in process_pass1b_block()
408 p->last_blk = *block_nr; in process_pass1b_block()
421 add_dupe(ctx, p->ino, EXT2FS_B2C(fs, *block_nr), p->inode); in process_pass1b_block()
642 blk64_t *block_nr, in delete_file_block() argument
657 if (*block_nr == 0) in delete_file_block()
660 c = EXT2FS_B2C(fs, *block_nr); in delete_file_block()
662 if (ext2fs_test_block_bitmap2(ctx->block_dup_map, *block_nr)) { in delete_file_block()
667 decrement_badcount(ctx, *block_nr, p); in delete_file_block()
673 *block_nr); in delete_file_block()
675 if ((*block_nr % EXT2FS_CLUSTER_RATIO(ctx->fs)) == 0) in delete_file_block()
676 ext2fs_block_alloc_stats2(fs, *block_nr, -1); in delete_file_block()
785 blk64_t *block_nr, in clone_file_block() argument
804 if (*block_nr == 0) in clone_file_block()
813 if (check_if_fs_cluster(ctx, EXT2FS_B2C(fs, *block_nr))) in clone_file_block()
821 if (ext2fs_test_block_bitmap2(ctx->block_dup_map, *block_nr)) { in clone_file_block()
823 INT_TO_VOIDPTR(EXT2FS_B2C(fs, *block_nr))); in clone_file_block()
827 *block_nr); in clone_file_block()
846 EXT2FS_B2C(ctx->fs, *block_nr)) in clone_file_block()
877 blockcnt, *block_nr, new_block); in clone_file_block()
879 retval = io_channel_read_blk64(fs->io, *block_nr, 1, cs->buf); in clone_file_block()
892 cs->save_blocknr = *block_nr; in clone_file_block()
893 *block_nr = new_block; in clone_file_block()