Lines Matching refs:block_nr
376 blk64_t *block_nr, in process_pass1b_block() argument
387 if (*block_nr == 0) in process_pass1b_block()
392 pc = EXT2FS_B2C(fs, *block_nr); in process_pass1b_block()
394 if (!ext2fs_test_block_bitmap2(ctx->block_dup_map, *block_nr)) in process_pass1b_block()
399 if (p->last_blk + 1 != *block_nr) { in process_pass1b_block()
406 p->pctx->blk = *block_nr; in process_pass1b_block()
408 p->pctx->blk2 = *block_nr; in process_pass1b_block()
409 p->last_blk = *block_nr; in process_pass1b_block()
422 add_dupe(ctx, p->ino, EXT2FS_B2C(fs, *block_nr), p->inode); in process_pass1b_block()
643 blk64_t *block_nr, in delete_file_block() argument
658 if (*block_nr == 0) in delete_file_block()
661 c = EXT2FS_B2C(fs, *block_nr); in delete_file_block()
663 if (ext2fs_test_block_bitmap2(ctx->block_dup_map, *block_nr)) { in delete_file_block()
668 decrement_badcount(ctx, *block_nr, p); in delete_file_block()
674 (unsigned long long) *block_nr); in delete_file_block()
676 if ((*block_nr % EXT2FS_CLUSTER_RATIO(ctx->fs)) == 0) in delete_file_block()
677 ext2fs_block_alloc_stats2(fs, *block_nr, -1); in delete_file_block()
790 blk64_t *block_nr, in clone_file_block() argument
809 if (*block_nr == 0) in clone_file_block()
818 if (check_if_fs_cluster(ctx, EXT2FS_B2C(fs, *block_nr))) in clone_file_block()
826 if (ext2fs_test_block_bitmap2(ctx->block_dup_map, *block_nr)) { in clone_file_block()
828 INT_TO_VOIDPTR(EXT2FS_B2C(fs, *block_nr))); in clone_file_block()
832 (unsigned long long) *block_nr); in clone_file_block()
851 EXT2FS_B2C(ctx->fs, *block_nr)) in clone_file_block()
882 blockcnt, (unsigned long long) *block_nr, in clone_file_block()
885 retval = io_channel_read_blk64(fs->io, *block_nr, 1, cs->buf); in clone_file_block()
898 cs->save_blocknr = *block_nr; in clone_file_block()
899 *block_nr = new_block; in clone_file_block()