• Home
  • Raw
  • Download

Lines Matching refs:state

1399 	struct ext4_fc_replay_state *state;  in ext4_fc_record_modified_inode()  local
1402 state = &EXT4_SB(sb)->s_fc_replay_state; in ext4_fc_record_modified_inode()
1403 for (i = 0; i < state->fc_modified_inodes_used; i++) in ext4_fc_record_modified_inode()
1404 if (state->fc_modified_inodes[i] == ino) in ext4_fc_record_modified_inode()
1406 if (state->fc_modified_inodes_used == state->fc_modified_inodes_size) { in ext4_fc_record_modified_inode()
1409 fc_modified_inodes = krealloc(state->fc_modified_inodes, in ext4_fc_record_modified_inode()
1410 sizeof(int) * (state->fc_modified_inodes_size + in ext4_fc_record_modified_inode()
1415 state->fc_modified_inodes = fc_modified_inodes; in ext4_fc_record_modified_inode()
1416 state->fc_modified_inodes_size += in ext4_fc_record_modified_inode()
1419 state->fc_modified_inodes[state->fc_modified_inodes_used++] = ino; in ext4_fc_record_modified_inode()
1589 struct ext4_fc_replay_state *state; in ext4_fc_record_regions() local
1592 state = &EXT4_SB(sb)->s_fc_replay_state; in ext4_fc_record_regions()
1597 if (replay && state->fc_regions_used != state->fc_regions_valid) in ext4_fc_record_regions()
1598 state->fc_regions_used = state->fc_regions_valid; in ext4_fc_record_regions()
1599 if (state->fc_regions_used == state->fc_regions_size) { in ext4_fc_record_regions()
1602 fc_regions = krealloc(state->fc_regions, in ext4_fc_record_regions()
1604 (state->fc_regions_size + in ext4_fc_record_regions()
1609 state->fc_regions_size += in ext4_fc_record_regions()
1611 state->fc_regions = fc_regions; in ext4_fc_record_regions()
1613 region = &state->fc_regions[state->fc_regions_used++]; in ext4_fc_record_regions()
1620 state->fc_regions_valid++; in ext4_fc_record_regions()
1837 struct ext4_fc_replay_state *state; in ext4_fc_set_bitmaps_and_counters() local
1844 state = &EXT4_SB(sb)->s_fc_replay_state; in ext4_fc_set_bitmaps_and_counters()
1845 for (i = 0; i < state->fc_modified_inodes_used; i++) { in ext4_fc_set_bitmaps_and_counters()
1846 inode = ext4_iget(sb, state->fc_modified_inodes[i], in ext4_fc_set_bitmaps_and_counters()
1850 state->fc_modified_inodes[i]); in ext4_fc_set_bitmaps_and_counters()
1891 struct ext4_fc_replay_state *state; in ext4_fc_replay_check_excluded() local
1893 state = &EXT4_SB(sb)->s_fc_replay_state; in ext4_fc_replay_check_excluded()
1894 for (i = 0; i < state->fc_regions_valid; i++) { in ext4_fc_replay_check_excluded()
1895 if (state->fc_regions[i].ino == 0 || in ext4_fc_replay_check_excluded()
1896 state->fc_regions[i].len == 0) in ext4_fc_replay_check_excluded()
1898 if (blk >= state->fc_regions[i].pblk && in ext4_fc_replay_check_excluded()
1899 blk < state->fc_regions[i].pblk + state->fc_regions[i].len) in ext4_fc_replay_check_excluded()
1938 struct ext4_fc_replay_state *state; in ext4_fc_replay_scan() local
1947 state = &sbi->s_fc_replay_state; in ext4_fc_replay_scan()
1952 if (state->fc_replay_expected_off == 0) { in ext4_fc_replay_scan()
1953 state->fc_cur_tag = 0; in ext4_fc_replay_scan()
1954 state->fc_replay_num_tags = 0; in ext4_fc_replay_scan()
1955 state->fc_crc = 0; in ext4_fc_replay_scan()
1956 state->fc_regions = NULL; in ext4_fc_replay_scan()
1957 state->fc_regions_valid = state->fc_regions_used = in ext4_fc_replay_scan()
1958 state->fc_regions_size = 0; in ext4_fc_replay_scan()
1965 if (off != state->fc_replay_expected_off) { in ext4_fc_replay_scan()
1970 state->fc_replay_expected_off++; in ext4_fc_replay_scan()
1994 state->fc_cur_tag++; in ext4_fc_replay_scan()
1995 state->fc_crc = ext4_chksum(sbi, state->fc_crc, cur, in ext4_fc_replay_scan()
1999 state->fc_cur_tag++; in ext4_fc_replay_scan()
2001 state->fc_crc = ext4_chksum(sbi, state->fc_crc, cur, in ext4_fc_replay_scan()
2006 le32_to_cpu(tail.fc_crc) == state->fc_crc) { in ext4_fc_replay_scan()
2007 state->fc_replay_num_tags = state->fc_cur_tag; in ext4_fc_replay_scan()
2008 state->fc_regions_valid = in ext4_fc_replay_scan()
2009 state->fc_regions_used; in ext4_fc_replay_scan()
2011 ret = state->fc_replay_num_tags ? in ext4_fc_replay_scan()
2014 state->fc_crc = 0; in ext4_fc_replay_scan()
2027 state->fc_cur_tag++; in ext4_fc_replay_scan()
2028 state->fc_crc = ext4_chksum(sbi, state->fc_crc, cur, in ext4_fc_replay_scan()
2032 ret = state->fc_replay_num_tags ? in ext4_fc_replay_scan()
2056 struct ext4_fc_replay_state *state = &sbi->s_fc_replay_state; in ext4_fc_replay() local
2060 state->fc_current_pass = PASS_SCAN; in ext4_fc_replay()
2064 if (state->fc_current_pass != pass) { in ext4_fc_replay()
2065 state->fc_current_pass = pass; in ext4_fc_replay()
2088 if (state->fc_replay_num_tags == 0) { in ext4_fc_replay()
2095 state->fc_replay_num_tags--; in ext4_fc_replay()