• Home
  • Raw
  • Download

Lines Matching refs:state

1440 	struct ext4_fc_replay_state *state;  in ext4_fc_record_modified_inode()  local
1443 state = &EXT4_SB(sb)->s_fc_replay_state; in ext4_fc_record_modified_inode()
1444 for (i = 0; i < state->fc_modified_inodes_used; i++) in ext4_fc_record_modified_inode()
1445 if (state->fc_modified_inodes[i] == ino) in ext4_fc_record_modified_inode()
1447 if (state->fc_modified_inodes_used == state->fc_modified_inodes_size) { in ext4_fc_record_modified_inode()
1450 fc_modified_inodes = krealloc(state->fc_modified_inodes, in ext4_fc_record_modified_inode()
1451 sizeof(int) * (state->fc_modified_inodes_size + in ext4_fc_record_modified_inode()
1456 state->fc_modified_inodes = fc_modified_inodes; in ext4_fc_record_modified_inode()
1457 state->fc_modified_inodes_size += in ext4_fc_record_modified_inode()
1460 state->fc_modified_inodes[state->fc_modified_inodes_used++] = ino; in ext4_fc_record_modified_inode()
1630 struct ext4_fc_replay_state *state; in ext4_fc_record_regions() local
1633 state = &EXT4_SB(sb)->s_fc_replay_state; in ext4_fc_record_regions()
1638 if (replay && state->fc_regions_used != state->fc_regions_valid) in ext4_fc_record_regions()
1639 state->fc_regions_used = state->fc_regions_valid; in ext4_fc_record_regions()
1640 if (state->fc_regions_used == state->fc_regions_size) { in ext4_fc_record_regions()
1643 fc_regions = krealloc(state->fc_regions, in ext4_fc_record_regions()
1645 (state->fc_regions_size + in ext4_fc_record_regions()
1650 state->fc_regions_size += in ext4_fc_record_regions()
1652 state->fc_regions = fc_regions; in ext4_fc_record_regions()
1654 region = &state->fc_regions[state->fc_regions_used++]; in ext4_fc_record_regions()
1661 state->fc_regions_valid++; in ext4_fc_record_regions()
1852 struct ext4_fc_replay_state *state; in ext4_fc_set_bitmaps_and_counters() local
1859 state = &EXT4_SB(sb)->s_fc_replay_state; in ext4_fc_set_bitmaps_and_counters()
1860 for (i = 0; i < state->fc_modified_inodes_used; i++) { in ext4_fc_set_bitmaps_and_counters()
1861 inode = ext4_iget(sb, state->fc_modified_inodes[i], in ext4_fc_set_bitmaps_and_counters()
1865 state->fc_modified_inodes[i]); in ext4_fc_set_bitmaps_and_counters()
1906 struct ext4_fc_replay_state *state; in ext4_fc_replay_check_excluded() local
1908 state = &EXT4_SB(sb)->s_fc_replay_state; in ext4_fc_replay_check_excluded()
1909 for (i = 0; i < state->fc_regions_valid; i++) { in ext4_fc_replay_check_excluded()
1910 if (state->fc_regions[i].ino == 0 || in ext4_fc_replay_check_excluded()
1911 state->fc_regions[i].len == 0) in ext4_fc_replay_check_excluded()
1913 if (blk >= state->fc_regions[i].pblk && in ext4_fc_replay_check_excluded()
1914 blk < state->fc_regions[i].pblk + state->fc_regions[i].len) in ext4_fc_replay_check_excluded()
1980 struct ext4_fc_replay_state *state; in ext4_fc_replay_scan() local
1989 state = &sbi->s_fc_replay_state; in ext4_fc_replay_scan()
1994 if (state->fc_replay_expected_off == 0) { in ext4_fc_replay_scan()
1995 state->fc_cur_tag = 0; in ext4_fc_replay_scan()
1996 state->fc_replay_num_tags = 0; in ext4_fc_replay_scan()
1997 state->fc_crc = 0; in ext4_fc_replay_scan()
1998 state->fc_regions = NULL; in ext4_fc_replay_scan()
1999 state->fc_regions_valid = state->fc_regions_used = in ext4_fc_replay_scan()
2000 state->fc_regions_size = 0; in ext4_fc_replay_scan()
2007 if (off != state->fc_replay_expected_off) { in ext4_fc_replay_scan()
2012 state->fc_replay_expected_off++; in ext4_fc_replay_scan()
2019 ret = state->fc_replay_num_tags ? in ext4_fc_replay_scan()
2043 state->fc_cur_tag++; in ext4_fc_replay_scan()
2044 state->fc_crc = ext4_chksum(sbi, state->fc_crc, cur, in ext4_fc_replay_scan()
2048 state->fc_cur_tag++; in ext4_fc_replay_scan()
2050 state->fc_crc = ext4_chksum(sbi, state->fc_crc, cur, in ext4_fc_replay_scan()
2055 le32_to_cpu(tail.fc_crc) == state->fc_crc) { in ext4_fc_replay_scan()
2056 state->fc_replay_num_tags = state->fc_cur_tag; in ext4_fc_replay_scan()
2057 state->fc_regions_valid = in ext4_fc_replay_scan()
2058 state->fc_regions_used; in ext4_fc_replay_scan()
2060 ret = state->fc_replay_num_tags ? in ext4_fc_replay_scan()
2063 state->fc_crc = 0; in ext4_fc_replay_scan()
2076 state->fc_cur_tag++; in ext4_fc_replay_scan()
2077 state->fc_crc = ext4_chksum(sbi, state->fc_crc, cur, in ext4_fc_replay_scan()
2081 ret = state->fc_replay_num_tags ? in ext4_fc_replay_scan()
2105 struct ext4_fc_replay_state *state = &sbi->s_fc_replay_state; in ext4_fc_replay() local
2109 state->fc_current_pass = PASS_SCAN; in ext4_fc_replay()
2113 if (state->fc_current_pass != pass) { in ext4_fc_replay()
2114 state->fc_current_pass = pass; in ext4_fc_replay()
2138 if (state->fc_replay_num_tags == 0) { in ext4_fc_replay()
2145 state->fc_replay_num_tags--; in ext4_fc_replay()