tag | line | file | source code |
ext2_sb | 45 | fs/ext2/balloc.c | if (block_group >= sb->u.ext2_sb.s_groups_count) |
ext2_sb | 49 | fs/ext2/balloc.c | block_group, sb->u.ext2_sb.s_groups_count); |
ext2_sb | 53 | fs/ext2/balloc.c | if (!sb->u.ext2_sb.s_group_desc[group_desc]) |
ext2_sb | 59 | fs/ext2/balloc.c | sb->u.ext2_sb.s_group_desc[group_desc]->b_data; |
ext2_sb | 61 | fs/ext2/balloc.c | *bh = sb->u.ext2_sb.s_group_desc[group_desc]; |
ext2_sb | 79 | fs/ext2/balloc.c | sb->u.ext2_sb.s_block_bitmap_number[bitmap_nr] = block_group; |
ext2_sb | 80 | fs/ext2/balloc.c | sb->u.ext2_sb.s_block_bitmap[bitmap_nr] = bh; |
ext2_sb | 101 | fs/ext2/balloc.c | if (block_group >= sb->u.ext2_sb.s_groups_count) |
ext2_sb | 105 | fs/ext2/balloc.c | block_group, sb->u.ext2_sb.s_groups_count); |
ext2_sb | 107 | fs/ext2/balloc.c | if (sb->u.ext2_sb.s_groups_count <= EXT2_MAX_GROUP_LOADED) { |
ext2_sb | 108 | fs/ext2/balloc.c | if (sb->u.ext2_sb.s_block_bitmap[block_group]) { |
ext2_sb | 109 | fs/ext2/balloc.c | if (sb->u.ext2_sb.s_block_bitmap_number[block_group] != |
ext2_sb | 121 | fs/ext2/balloc.c | for (i = 0; i < sb->u.ext2_sb.s_loaded_block_bitmaps && |
ext2_sb | 122 | fs/ext2/balloc.c | sb->u.ext2_sb.s_block_bitmap_number[i] != block_group; i++) |
ext2_sb | 124 | fs/ext2/balloc.c | if (i < sb->u.ext2_sb.s_loaded_block_bitmaps && |
ext2_sb | 125 | fs/ext2/balloc.c | sb->u.ext2_sb.s_block_bitmap_number[i] == block_group) { |
ext2_sb | 126 | fs/ext2/balloc.c | block_bitmap_number = sb->u.ext2_sb.s_block_bitmap_number[i]; |
ext2_sb | 127 | fs/ext2/balloc.c | block_bitmap = sb->u.ext2_sb.s_block_bitmap[i]; |
ext2_sb | 129 | fs/ext2/balloc.c | sb->u.ext2_sb.s_block_bitmap_number[j] = |
ext2_sb | 130 | fs/ext2/balloc.c | sb->u.ext2_sb.s_block_bitmap_number[j - 1]; |
ext2_sb | 131 | fs/ext2/balloc.c | sb->u.ext2_sb.s_block_bitmap[j] = |
ext2_sb | 132 | fs/ext2/balloc.c | sb->u.ext2_sb.s_block_bitmap[j - 1]; |
ext2_sb | 134 | fs/ext2/balloc.c | sb->u.ext2_sb.s_block_bitmap_number[0] = block_bitmap_number; |
ext2_sb | 135 | fs/ext2/balloc.c | sb->u.ext2_sb.s_block_bitmap[0] = block_bitmap; |
ext2_sb | 137 | fs/ext2/balloc.c | if (sb->u.ext2_sb.s_loaded_block_bitmaps < EXT2_MAX_GROUP_LOADED) |
ext2_sb | 138 | fs/ext2/balloc.c | sb->u.ext2_sb.s_loaded_block_bitmaps++; |
ext2_sb | 140 | fs/ext2/balloc.c | brelse (sb->u.ext2_sb.s_block_bitmap[EXT2_MAX_GROUP_LOADED - 1]); |
ext2_sb | 141 | fs/ext2/balloc.c | for (j = sb->u.ext2_sb.s_loaded_block_bitmaps - 1; j > 0; j--) { |
ext2_sb | 142 | fs/ext2/balloc.c | sb->u.ext2_sb.s_block_bitmap_number[j] = |
ext2_sb | 143 | fs/ext2/balloc.c | sb->u.ext2_sb.s_block_bitmap_number[j - 1]; |
ext2_sb | 144 | fs/ext2/balloc.c | sb->u.ext2_sb.s_block_bitmap[j] = |
ext2_sb | 145 | fs/ext2/balloc.c | sb->u.ext2_sb.s_block_bitmap[j - 1]; |
ext2_sb | 155 | fs/ext2/balloc.c | if (sb->u.ext2_sb.s_loaded_block_bitmaps > 0 && |
ext2_sb | 156 | fs/ext2/balloc.c | sb->u.ext2_sb.s_block_bitmap_number[0] == block_group) |
ext2_sb | 159 | fs/ext2/balloc.c | if (sb->u.ext2_sb.s_groups_count <= EXT2_MAX_GROUP_LOADED && |
ext2_sb | 160 | fs/ext2/balloc.c | sb->u.ext2_sb.s_block_bitmap_number[block_group] == block_group && |
ext2_sb | 161 | fs/ext2/balloc.c | sb->u.ext2_sb.s_block_bitmap[block_group]) |
ext2_sb | 184 | fs/ext2/balloc.c | es = sb->u.ext2_sb.s_es; |
ext2_sb | 205 | fs/ext2/balloc.c | bh = sb->u.ext2_sb.s_block_bitmap[bitmap_nr]; |
ext2_sb | 212 | fs/ext2/balloc.c | sb->u.ext2_sb.s_itb_per_group) || |
ext2_sb | 214 | fs/ext2/balloc.c | sb->u.ext2_sb.s_itb_per_group))) |
ext2_sb | 232 | fs/ext2/balloc.c | mark_buffer_dirty(sb->u.ext2_sb.s_sbh, 1); |
ext2_sb | 272 | fs/ext2/balloc.c | es = sb->u.ext2_sb.s_es; |
ext2_sb | 274 | fs/ext2/balloc.c | (!fsuser() && (sb->u.ext2_sb.s_resuid != current->fsuid) && |
ext2_sb | 275 | fs/ext2/balloc.c | (sb->u.ext2_sb.s_resgid == 0 || |
ext2_sb | 276 | fs/ext2/balloc.c | !in_group_p (sb->u.ext2_sb.s_resgid)))) { |
ext2_sb | 298 | fs/ext2/balloc.c | bh = sb->u.ext2_sb.s_block_bitmap[bitmap_nr]; |
ext2_sb | 363 | fs/ext2/balloc.c | for (k = 0; k < sb->u.ext2_sb.s_groups_count; k++) { |
ext2_sb | 365 | fs/ext2/balloc.c | if (i >= sb->u.ext2_sb.s_groups_count) |
ext2_sb | 371 | fs/ext2/balloc.c | if (k >= sb->u.ext2_sb.s_groups_count) { |
ext2_sb | 376 | fs/ext2/balloc.c | bh = sb->u.ext2_sb.s_block_bitmap[bitmap_nr]; |
ext2_sb | 408 | fs/ext2/balloc.c | in_range (tmp, gdp->bg_inode_table, sb->u.ext2_sb.s_itb_per_group))) |
ext2_sb | 472 | fs/ext2/balloc.c | mark_buffer_dirty(sb->u.ext2_sb.s_sbh, 1); |
ext2_sb | 488 | fs/ext2/balloc.c | es = sb->u.ext2_sb.s_es; |
ext2_sb | 492 | fs/ext2/balloc.c | for (i = 0; i < sb->u.ext2_sb.s_groups_count; i++) { |
ext2_sb | 496 | fs/ext2/balloc.c | x = ext2_count_free (sb->u.ext2_sb.s_block_bitmap[bitmap_nr], |
ext2_sb | 507 | fs/ext2/balloc.c | return sb->u.ext2_sb.s_es->s_free_blocks_count; |
ext2_sb | 515 | fs/ext2/balloc.c | return test_bit ((block - sb->u.ext2_sb.s_es->s_first_data_block) % |
ext2_sb | 530 | fs/ext2/balloc.c | es = sb->u.ext2_sb.s_es; |
ext2_sb | 534 | fs/ext2/balloc.c | desc_blocks = (sb->u.ext2_sb.s_groups_count + EXT2_DESC_PER_BLOCK(sb) - 1) / |
ext2_sb | 536 | fs/ext2/balloc.c | for (i = 0; i < sb->u.ext2_sb.s_groups_count; i++) { |
ext2_sb | 540 | fs/ext2/balloc.c | bh = sb->u.ext2_sb.s_block_bitmap[bitmap_nr]; |
ext2_sb | 562 | fs/ext2/balloc.c | for (j = 0; j < sb->u.ext2_sb.s_itb_per_group; j++) |
ext2_sb | 89 | fs/ext2/dir.c | else if (dir && de->inode > dir->i_sb->u.ext2_sb.s_es->s_inodes_count) |
ext2_sb | 44 | fs/ext2/ialloc.c | if (block_group >= sb->u.ext2_sb.s_groups_count) |
ext2_sb | 48 | fs/ext2/ialloc.c | block_group, sb->u.ext2_sb.s_groups_count); |
ext2_sb | 52 | fs/ext2/ialloc.c | if (!sb->u.ext2_sb.s_group_desc[group_desc]) |
ext2_sb | 58 | fs/ext2/ialloc.c | sb->u.ext2_sb.s_group_desc[group_desc]->b_data; |
ext2_sb | 60 | fs/ext2/ialloc.c | *bh = sb->u.ext2_sb.s_group_desc[group_desc]; |
ext2_sb | 78 | fs/ext2/ialloc.c | sb->u.ext2_sb.s_inode_bitmap_number[bitmap_nr] = block_group; |
ext2_sb | 79 | fs/ext2/ialloc.c | sb->u.ext2_sb.s_inode_bitmap[bitmap_nr] = bh; |
ext2_sb | 100 | fs/ext2/ialloc.c | if (block_group >= sb->u.ext2_sb.s_groups_count) |
ext2_sb | 104 | fs/ext2/ialloc.c | block_group, sb->u.ext2_sb.s_groups_count); |
ext2_sb | 105 | fs/ext2/ialloc.c | if (sb->u.ext2_sb.s_loaded_inode_bitmaps > 0 && |
ext2_sb | 106 | fs/ext2/ialloc.c | sb->u.ext2_sb.s_inode_bitmap_number[0] == block_group) |
ext2_sb | 108 | fs/ext2/ialloc.c | if (sb->u.ext2_sb.s_groups_count <= EXT2_MAX_GROUP_LOADED) { |
ext2_sb | 109 | fs/ext2/ialloc.c | if (sb->u.ext2_sb.s_inode_bitmap[block_group]) { |
ext2_sb | 110 | fs/ext2/ialloc.c | if (sb->u.ext2_sb.s_inode_bitmap_number[block_group] != block_group) |
ext2_sb | 121 | fs/ext2/ialloc.c | for (i = 0; i < sb->u.ext2_sb.s_loaded_inode_bitmaps && |
ext2_sb | 122 | fs/ext2/ialloc.c | sb->u.ext2_sb.s_inode_bitmap_number[i] != block_group; |
ext2_sb | 125 | fs/ext2/ialloc.c | if (i < sb->u.ext2_sb.s_loaded_inode_bitmaps && |
ext2_sb | 126 | fs/ext2/ialloc.c | sb->u.ext2_sb.s_inode_bitmap_number[i] == block_group) { |
ext2_sb | 127 | fs/ext2/ialloc.c | inode_bitmap_number = sb->u.ext2_sb.s_inode_bitmap_number[i]; |
ext2_sb | 128 | fs/ext2/ialloc.c | inode_bitmap = sb->u.ext2_sb.s_inode_bitmap[i]; |
ext2_sb | 130 | fs/ext2/ialloc.c | sb->u.ext2_sb.s_inode_bitmap_number[j] = |
ext2_sb | 131 | fs/ext2/ialloc.c | sb->u.ext2_sb.s_inode_bitmap_number[j - 1]; |
ext2_sb | 132 | fs/ext2/ialloc.c | sb->u.ext2_sb.s_inode_bitmap[j] = |
ext2_sb | 133 | fs/ext2/ialloc.c | sb->u.ext2_sb.s_inode_bitmap[j - 1]; |
ext2_sb | 135 | fs/ext2/ialloc.c | sb->u.ext2_sb.s_inode_bitmap_number[0] = inode_bitmap_number; |
ext2_sb | 136 | fs/ext2/ialloc.c | sb->u.ext2_sb.s_inode_bitmap[0] = inode_bitmap; |
ext2_sb | 138 | fs/ext2/ialloc.c | if (sb->u.ext2_sb.s_loaded_inode_bitmaps < EXT2_MAX_GROUP_LOADED) |
ext2_sb | 139 | fs/ext2/ialloc.c | sb->u.ext2_sb.s_loaded_inode_bitmaps++; |
ext2_sb | 141 | fs/ext2/ialloc.c | brelse (sb->u.ext2_sb.s_inode_bitmap[EXT2_MAX_GROUP_LOADED - 1]); |
ext2_sb | 142 | fs/ext2/ialloc.c | for (j = sb->u.ext2_sb.s_loaded_inode_bitmaps - 1; j > 0; j--) { |
ext2_sb | 143 | fs/ext2/ialloc.c | sb->u.ext2_sb.s_inode_bitmap_number[j] = |
ext2_sb | 144 | fs/ext2/ialloc.c | sb->u.ext2_sb.s_inode_bitmap_number[j - 1]; |
ext2_sb | 145 | fs/ext2/ialloc.c | sb->u.ext2_sb.s_inode_bitmap[j] = |
ext2_sb | 146 | fs/ext2/ialloc.c | sb->u.ext2_sb.s_inode_bitmap[j - 1]; |
ext2_sb | 225 | fs/ext2/ialloc.c | inode->i_ino > sb->u.ext2_sb.s_es->s_inodes_count) { |
ext2_sb | 231 | fs/ext2/ialloc.c | es = sb->u.ext2_sb.s_es; |
ext2_sb | 235 | fs/ext2/ialloc.c | bh = sb->u.ext2_sb.s_inode_bitmap[bitmap_nr]; |
ext2_sb | 246 | fs/ext2/ialloc.c | mark_buffer_dirty(sb->u.ext2_sb.s_sbh, 1); |
ext2_sb | 323 | fs/ext2/ialloc.c | es = sb->u.ext2_sb.s_es; |
ext2_sb | 329 | fs/ext2/ialloc.c | sb->u.ext2_sb.s_groups_count; |
ext2_sb | 344 | fs/ext2/ialloc.c | for (j = 0; j < sb->u.ext2_sb.s_groups_count; j++) { |
ext2_sb | 373 | fs/ext2/ialloc.c | for (j = 1; j < sb->u.ext2_sb.s_groups_count; j <<= 1) { |
ext2_sb | 375 | fs/ext2/ialloc.c | if (i >= sb->u.ext2_sb.s_groups_count) |
ext2_sb | 376 | fs/ext2/ialloc.c | i -= sb->u.ext2_sb.s_groups_count; |
ext2_sb | 389 | fs/ext2/ialloc.c | for (j = 2; j < sb->u.ext2_sb.s_groups_count; j++) { |
ext2_sb | 390 | fs/ext2/ialloc.c | if (++i >= sb->u.ext2_sb.s_groups_count) |
ext2_sb | 407 | fs/ext2/ialloc.c | bh = sb->u.ext2_sb.s_inode_bitmap[bitmap_nr]; |
ext2_sb | 446 | fs/ext2/ialloc.c | mark_buffer_dirty(sb->u.ext2_sb.s_sbh, 1); |
ext2_sb | 499 | fs/ext2/ialloc.c | es = sb->u.ext2_sb.s_es; |
ext2_sb | 503 | fs/ext2/ialloc.c | for (i = 0; i < sb->u.ext2_sb.s_groups_count; i++) { |
ext2_sb | 507 | fs/ext2/ialloc.c | x = ext2_count_free (sb->u.ext2_sb.s_inode_bitmap[bitmap_nr], |
ext2_sb | 518 | fs/ext2/ialloc.c | return sb->u.ext2_sb.s_es->s_free_inodes_count; |
ext2_sb | 531 | fs/ext2/ialloc.c | es = sb->u.ext2_sb.s_es; |
ext2_sb | 535 | fs/ext2/ialloc.c | for (i = 0; i < sb->u.ext2_sb.s_groups_count; i++) { |
ext2_sb | 539 | fs/ext2/ialloc.c | x = ext2_count_free (sb->u.ext2_sb.s_inode_bitmap[bitmap_nr], |
ext2_sb | 220 | fs/ext2/inode.c | inode->i_sb->u.ext2_sb.s_es->s_first_data_block; |
ext2_sb | 497 | fs/ext2/inode.c | inode->i_ino > inode->i_sb->u.ext2_sb.s_es->s_inodes_count) { |
ext2_sb | 503 | fs/ext2/inode.c | if (block_group >= inode->i_sb->u.ext2_sb.s_groups_count) |
ext2_sb | 508 | fs/ext2/inode.c | bh = inode->i_sb->u.ext2_sb.s_group_desc[group_desc]; |
ext2_sb | 588 | fs/ext2/inode.c | inode->i_ino > inode->i_sb->u.ext2_sb.s_es->s_inodes_count) { |
ext2_sb | 594 | fs/ext2/inode.c | if (block_group >= inode->i_sb->u.ext2_sb.s_groups_count) |
ext2_sb | 599 | fs/ext2/inode.c | bh = inode->i_sb->u.ext2_sb.s_group_desc[group_desc]; |
ext2_sb | 1090 | fs/ext2/namei.c | while (old_dir->i_sb->u.ext2_sb.s_rename_lock) |
ext2_sb | 1091 | fs/ext2/namei.c | sleep_on (&old_dir->i_sb->u.ext2_sb.s_rename_wait); |
ext2_sb | 1092 | fs/ext2/namei.c | old_dir->i_sb->u.ext2_sb.s_rename_lock = 1; |
ext2_sb | 1095 | fs/ext2/namei.c | old_dir->i_sb->u.ext2_sb.s_rename_lock = 0; |
ext2_sb | 1096 | fs/ext2/namei.c | wake_up (&old_dir->i_sb->u.ext2_sb.s_rename_wait); |
ext2_sb | 36 | fs/ext2/super.c | sb->u.ext2_sb.s_mount_state |= EXT2_ERROR_FS; |
ext2_sb | 37 | fs/ext2/super.c | sb->u.ext2_sb.s_es->s_state |= EXT2_ERROR_FS; |
ext2_sb | 38 | fs/ext2/super.c | mark_buffer_dirty(sb->u.ext2_sb.s_sbh, 1); |
ext2_sb | 45 | fs/ext2/super.c | (sb->u.ext2_sb.s_es->s_errors == EXT2_ERRORS_PANIC && |
ext2_sb | 52 | fs/ext2/super.c | (sb->u.ext2_sb.s_es->s_errors == EXT2_ERRORS_RO && |
ext2_sb | 66 | fs/ext2/super.c | sb->u.ext2_sb.s_mount_state |= EXT2_ERROR_FS; |
ext2_sb | 67 | fs/ext2/super.c | sb->u.ext2_sb.s_es->s_state |= EXT2_ERROR_FS; |
ext2_sb | 68 | fs/ext2/super.c | mark_buffer_dirty(sb->u.ext2_sb.s_sbh, 1); |
ext2_sb | 98 | fs/ext2/super.c | sb->u.ext2_sb.s_es->s_state = sb->u.ext2_sb.s_mount_state; |
ext2_sb | 99 | fs/ext2/super.c | mark_buffer_dirty(sb->u.ext2_sb.s_sbh, 1); |
ext2_sb | 102 | fs/ext2/super.c | db_count = sb->u.ext2_sb.s_db_per_group; |
ext2_sb | 104 | fs/ext2/super.c | if (sb->u.ext2_sb.s_group_desc[i]) |
ext2_sb | 105 | fs/ext2/super.c | brelse (sb->u.ext2_sb.s_group_desc[i]); |
ext2_sb | 106 | fs/ext2/super.c | kfree_s (sb->u.ext2_sb.s_group_desc, |
ext2_sb | 109 | fs/ext2/super.c | if (sb->u.ext2_sb.s_inode_bitmap[i]) |
ext2_sb | 110 | fs/ext2/super.c | brelse (sb->u.ext2_sb.s_inode_bitmap[i]); |
ext2_sb | 112 | fs/ext2/super.c | if (sb->u.ext2_sb.s_block_bitmap[i]) |
ext2_sb | 113 | fs/ext2/super.c | brelse (sb->u.ext2_sb.s_block_bitmap[i]); |
ext2_sb | 114 | fs/ext2/super.c | brelse (sb->u.ext2_sb.s_sbh); |
ext2_sb | 149 | fs/ext2/super.c | groups_count = (sb->u.ext2_sb.s_blocks_count - |
ext2_sb | 150 | fs/ext2/super.c | sb->u.ext2_sb.s_first_data_block + |
ext2_sb | 307 | fs/ext2/super.c | if (!(sb->u.ext2_sb.s_mount_state & EXT2_VALID_FS)) |
ext2_sb | 310 | fs/ext2/super.c | else if ((sb->u.ext2_sb.s_mount_state & EXT2_ERROR_FS)) |
ext2_sb | 326 | fs/ext2/super.c | mark_buffer_dirty(sb->u.ext2_sb.s_sbh, 1); |
ext2_sb | 332 | fs/ext2/super.c | sb->u.ext2_sb.s_frag_size, |
ext2_sb | 333 | fs/ext2/super.c | sb->u.ext2_sb.s_groups_count, |
ext2_sb | 336 | fs/ext2/super.c | sb->u.ext2_sb.s_mount_opt); |
ext2_sb | 348 | fs/ext2/super.c | unsigned long block = sb->u.ext2_sb.s_es->s_first_data_block; |
ext2_sb | 353 | fs/ext2/super.c | for (i = 0; i < sb->u.ext2_sb.s_groups_count; i++) |
ext2_sb | 356 | fs/ext2/super.c | gdp = (struct ext2_group_desc *) sb->u.ext2_sb.s_group_desc[desc_block++]->b_data; |
ext2_sb | 376 | fs/ext2/super.c | gdp->bg_inode_table + sb->u.ext2_sb.s_itb_per_group >= |
ext2_sb | 407 | fs/ext2/super.c | set_opt (sb->u.ext2_sb.s_mount_opt, CHECK_NORMAL); |
ext2_sb | 409 | fs/ext2/super.c | &sb->u.ext2_sb.s_mount_opt)) { |
ext2_sb | 427 | fs/ext2/super.c | sb->u.ext2_sb.s_es = es; |
ext2_sb | 457 | fs/ext2/super.c | sb->u.ext2_sb.s_es = es; |
ext2_sb | 466 | fs/ext2/super.c | sb->u.ext2_sb.s_frag_size = EXT2_MIN_FRAG_SIZE << |
ext2_sb | 468 | fs/ext2/super.c | if (sb->u.ext2_sb.s_frag_size) |
ext2_sb | 469 | fs/ext2/super.c | sb->u.ext2_sb.s_frags_per_block = sb->s_blocksize / |
ext2_sb | 470 | fs/ext2/super.c | sb->u.ext2_sb.s_frag_size; |
ext2_sb | 473 | fs/ext2/super.c | sb->u.ext2_sb.s_blocks_per_group = es->s_blocks_per_group; |
ext2_sb | 474 | fs/ext2/super.c | sb->u.ext2_sb.s_frags_per_group = es->s_frags_per_group; |
ext2_sb | 475 | fs/ext2/super.c | sb->u.ext2_sb.s_inodes_per_group = es->s_inodes_per_group; |
ext2_sb | 476 | fs/ext2/super.c | sb->u.ext2_sb.s_inodes_per_block = sb->s_blocksize / |
ext2_sb | 478 | fs/ext2/super.c | sb->u.ext2_sb.s_itb_per_group = sb->u.ext2_sb.s_inodes_per_group / |
ext2_sb | 479 | fs/ext2/super.c | sb->u.ext2_sb.s_inodes_per_block; |
ext2_sb | 480 | fs/ext2/super.c | sb->u.ext2_sb.s_desc_per_block = sb->s_blocksize / |
ext2_sb | 482 | fs/ext2/super.c | sb->u.ext2_sb.s_sbh = bh; |
ext2_sb | 483 | fs/ext2/super.c | sb->u.ext2_sb.s_es = es; |
ext2_sb | 485 | fs/ext2/super.c | sb->u.ext2_sb.s_resuid = resuid; |
ext2_sb | 487 | fs/ext2/super.c | sb->u.ext2_sb.s_resuid = es->s_def_resuid; |
ext2_sb | 489 | fs/ext2/super.c | sb->u.ext2_sb.s_resgid = resgid; |
ext2_sb | 491 | fs/ext2/super.c | sb->u.ext2_sb.s_resgid = es->s_def_resgid; |
ext2_sb | 492 | fs/ext2/super.c | sb->u.ext2_sb.s_mount_state = es->s_state; |
ext2_sb | 493 | fs/ext2/super.c | sb->u.ext2_sb.s_rename_lock = 0; |
ext2_sb | 494 | fs/ext2/super.c | sb->u.ext2_sb.s_rename_wait = NULL; |
ext2_sb | 547 | fs/ext2/super.c | if (sb->s_blocksize != sb->u.ext2_sb.s_frag_size) { |
ext2_sb | 552 | fs/ext2/super.c | sb->u.ext2_sb.s_frag_size, sb->s_blocksize); |
ext2_sb | 556 | fs/ext2/super.c | sb->u.ext2_sb.s_groups_count = (es->s_blocks_count - |
ext2_sb | 560 | fs/ext2/super.c | db_count = (sb->u.ext2_sb.s_groups_count + EXT2_DESC_PER_BLOCK(sb) - 1) / |
ext2_sb | 562 | fs/ext2/super.c | sb->u.ext2_sb.s_group_desc = kmalloc (db_count * sizeof (struct buffer_head *), GFP_KERNEL); |
ext2_sb | 563 | fs/ext2/super.c | if (sb->u.ext2_sb.s_group_desc == NULL) { |
ext2_sb | 571 | fs/ext2/super.c | sb->u.ext2_sb.s_group_desc[i] = bread (dev, logic_sb_block + i + 1, |
ext2_sb | 573 | fs/ext2/super.c | if (!sb->u.ext2_sb.s_group_desc[i]) { |
ext2_sb | 577 | fs/ext2/super.c | brelse (sb->u.ext2_sb.s_group_desc[j]); |
ext2_sb | 578 | fs/ext2/super.c | kfree_s (sb->u.ext2_sb.s_group_desc, |
ext2_sb | 589 | fs/ext2/super.c | brelse (sb->u.ext2_sb.s_group_desc[j]); |
ext2_sb | 590 | fs/ext2/super.c | kfree_s (sb->u.ext2_sb.s_group_desc, |
ext2_sb | 597 | fs/ext2/super.c | sb->u.ext2_sb.s_inode_bitmap_number[i] = 0; |
ext2_sb | 598 | fs/ext2/super.c | sb->u.ext2_sb.s_inode_bitmap[i] = NULL; |
ext2_sb | 599 | fs/ext2/super.c | sb->u.ext2_sb.s_block_bitmap_number[i] = 0; |
ext2_sb | 600 | fs/ext2/super.c | sb->u.ext2_sb.s_block_bitmap[i] = NULL; |
ext2_sb | 602 | fs/ext2/super.c | sb->u.ext2_sb.s_loaded_inode_bitmaps = 0; |
ext2_sb | 603 | fs/ext2/super.c | sb->u.ext2_sb.s_loaded_block_bitmaps = 0; |
ext2_sb | 604 | fs/ext2/super.c | sb->u.ext2_sb.s_db_per_group = db_count; |
ext2_sb | 614 | fs/ext2/super.c | if (sb->u.ext2_sb.s_group_desc[i]) |
ext2_sb | 615 | fs/ext2/super.c | brelse (sb->u.ext2_sb.s_group_desc[i]); |
ext2_sb | 616 | fs/ext2/super.c | kfree_s (sb->u.ext2_sb.s_group_desc, |
ext2_sb | 625 | fs/ext2/super.c | mark_buffer_dirty(sb->u.ext2_sb.s_group_desc[i], 1); |
ext2_sb | 637 | fs/ext2/super.c | mark_buffer_dirty(sb->u.ext2_sb.s_sbh, 1); |
ext2_sb | 657 | fs/ext2/super.c | es = sb->u.ext2_sb.s_es; |
ext2_sb | 673 | fs/ext2/super.c | unsigned short resuid = sb->u.ext2_sb.s_resuid; |
ext2_sb | 674 | fs/ext2/super.c | unsigned short resgid = sb->u.ext2_sb.s_resgid; |
ext2_sb | 681 | fs/ext2/super.c | set_opt (sb->u.ext2_sb.s_mount_opt, CHECK_NORMAL); |
ext2_sb | 686 | fs/ext2/super.c | sb->u.ext2_sb.s_mount_opt = new_mount_opt; |
ext2_sb | 687 | fs/ext2/super.c | sb->u.ext2_sb.s_resuid = resuid; |
ext2_sb | 688 | fs/ext2/super.c | sb->u.ext2_sb.s_resgid = resgid; |
ext2_sb | 689 | fs/ext2/super.c | es = sb->u.ext2_sb.s_es; |
ext2_sb | 694 | fs/ext2/super.c | !(sb->u.ext2_sb.s_mount_state & EXT2_VALID_FS)) |
ext2_sb | 700 | fs/ext2/super.c | es->s_state = sb->u.ext2_sb.s_mount_state; |
ext2_sb | 702 | fs/ext2/super.c | mark_buffer_dirty(sb->u.ext2_sb.s_sbh, 1); |
ext2_sb | 712 | fs/ext2/super.c | sb->u.ext2_sb.s_mount_state = es->s_state; |
ext2_sb | 732 | fs/ext2/super.c | sb->u.ext2_sb.s_db_per_group /* descriptors */ + |
ext2_sb | 735 | fs/ext2/super.c | sb->u.ext2_sb.s_itb_per_group /* inode table */; |
ext2_sb | 736 | fs/ext2/super.c | overhead = sb->u.ext2_sb.s_es->s_first_data_block + |
ext2_sb | 737 | fs/ext2/super.c | sb->u.ext2_sb.s_groups_count * overhead_per_group; |
ext2_sb | 742 | fs/ext2/super.c | put_fs_long (sb->u.ext2_sb.s_es->s_blocks_count - overhead, |
ext2_sb | 746 | fs/ext2/super.c | if (tmp >= sb->u.ext2_sb.s_es->s_r_blocks_count) |
ext2_sb | 747 | fs/ext2/super.c | put_fs_long (tmp - sb->u.ext2_sb.s_es->s_r_blocks_count, |
ext2_sb | 751 | fs/ext2/super.c | put_fs_long (sb->u.ext2_sb.s_es->s_inodes_count, &buf->f_files); |
ext2_sb | 102 | include/linux/ext2_fs.h | # define EXT2_BLOCK_SIZE_BITS(s) ((s)->u.ext2_sb.s_es->s_log_block_size + 10) |
ext2_sb | 115 | include/linux/ext2_fs.h | # define EXT2_FRAG_SIZE(s) ((s)->u.ext2_sb.s_frag_size) |
ext2_sb | 116 | include/linux/ext2_fs.h | # define EXT2_FRAGS_PER_BLOCK(s) ((s)->u.ext2_sb.s_frags_per_block) |
ext2_sb | 172 | include/linux/ext2_fs.h | # define EXT2_BLOCKS_PER_GROUP(s) ((s)->u.ext2_sb.s_blocks_per_group) |
ext2_sb | 173 | include/linux/ext2_fs.h | # define EXT2_DESC_PER_BLOCK(s) ((s)->u.ext2_sb.s_desc_per_block) |
ext2_sb | 174 | include/linux/ext2_fs.h | # define EXT2_INODES_PER_GROUP(s) ((s)->u.ext2_sb.s_inodes_per_group) |
ext2_sb | 309 | include/linux/ext2_fs.h | #define test_opt(sb, opt) ((sb)->u.ext2_sb.s_mount_opt & \ |
ext2_sb | 315 | include/linux/fs.h | struct ext2_sb_info ext2_sb; |