tag | line | file | source code |
ext2_sb | 46 | fs/ext2/balloc.c | if (block_group >= sb->u.ext2_sb.s_groups_count) |
ext2_sb | 50 | fs/ext2/balloc.c | block_group, sb->u.ext2_sb.s_groups_count); |
ext2_sb | 54 | fs/ext2/balloc.c | if (!sb->u.ext2_sb.s_group_desc[group_desc]) |
ext2_sb | 60 | fs/ext2/balloc.c | sb->u.ext2_sb.s_group_desc[group_desc]->b_data; |
ext2_sb | 62 | fs/ext2/balloc.c | *bh = sb->u.ext2_sb.s_group_desc[group_desc]; |
ext2_sb | 80 | fs/ext2/balloc.c | sb->u.ext2_sb.s_block_bitmap_number[bitmap_nr] = block_group; |
ext2_sb | 81 | fs/ext2/balloc.c | sb->u.ext2_sb.s_block_bitmap[bitmap_nr] = bh; |
ext2_sb | 102 | fs/ext2/balloc.c | if (block_group >= sb->u.ext2_sb.s_groups_count) |
ext2_sb | 106 | fs/ext2/balloc.c | block_group, sb->u.ext2_sb.s_groups_count); |
ext2_sb | 108 | fs/ext2/balloc.c | if (sb->u.ext2_sb.s_groups_count <= EXT2_MAX_GROUP_LOADED) { |
ext2_sb | 109 | fs/ext2/balloc.c | if (sb->u.ext2_sb.s_block_bitmap[block_group]) { |
ext2_sb | 110 | fs/ext2/balloc.c | if (sb->u.ext2_sb.s_block_bitmap_number[block_group] != |
ext2_sb | 122 | fs/ext2/balloc.c | for (i = 0; i < sb->u.ext2_sb.s_loaded_block_bitmaps && |
ext2_sb | 123 | fs/ext2/balloc.c | sb->u.ext2_sb.s_block_bitmap_number[i] != block_group; i++) |
ext2_sb | 125 | fs/ext2/balloc.c | if (i < sb->u.ext2_sb.s_loaded_block_bitmaps && |
ext2_sb | 126 | fs/ext2/balloc.c | sb->u.ext2_sb.s_block_bitmap_number[i] == block_group) { |
ext2_sb | 127 | fs/ext2/balloc.c | block_bitmap_number = sb->u.ext2_sb.s_block_bitmap_number[i]; |
ext2_sb | 128 | fs/ext2/balloc.c | block_bitmap = sb->u.ext2_sb.s_block_bitmap[i]; |
ext2_sb | 130 | fs/ext2/balloc.c | sb->u.ext2_sb.s_block_bitmap_number[j] = |
ext2_sb | 131 | fs/ext2/balloc.c | sb->u.ext2_sb.s_block_bitmap_number[j - 1]; |
ext2_sb | 132 | fs/ext2/balloc.c | sb->u.ext2_sb.s_block_bitmap[j] = |
ext2_sb | 133 | fs/ext2/balloc.c | sb->u.ext2_sb.s_block_bitmap[j - 1]; |
ext2_sb | 135 | fs/ext2/balloc.c | sb->u.ext2_sb.s_block_bitmap_number[0] = block_bitmap_number; |
ext2_sb | 136 | fs/ext2/balloc.c | sb->u.ext2_sb.s_block_bitmap[0] = block_bitmap; |
ext2_sb | 138 | fs/ext2/balloc.c | if (sb->u.ext2_sb.s_loaded_block_bitmaps < EXT2_MAX_GROUP_LOADED) |
ext2_sb | 139 | fs/ext2/balloc.c | sb->u.ext2_sb.s_loaded_block_bitmaps++; |
ext2_sb | 141 | fs/ext2/balloc.c | brelse (sb->u.ext2_sb.s_block_bitmap[EXT2_MAX_GROUP_LOADED - 1]); |
ext2_sb | 142 | fs/ext2/balloc.c | for (j = sb->u.ext2_sb.s_loaded_block_bitmaps - 1; j > 0; j--) { |
ext2_sb | 143 | fs/ext2/balloc.c | sb->u.ext2_sb.s_block_bitmap_number[j] = |
ext2_sb | 144 | fs/ext2/balloc.c | sb->u.ext2_sb.s_block_bitmap_number[j - 1]; |
ext2_sb | 145 | fs/ext2/balloc.c | sb->u.ext2_sb.s_block_bitmap[j] = |
ext2_sb | 146 | fs/ext2/balloc.c | sb->u.ext2_sb.s_block_bitmap[j - 1]; |
ext2_sb | 156 | fs/ext2/balloc.c | if (sb->u.ext2_sb.s_loaded_block_bitmaps > 0 && |
ext2_sb | 157 | fs/ext2/balloc.c | sb->u.ext2_sb.s_block_bitmap_number[0] == block_group) |
ext2_sb | 160 | fs/ext2/balloc.c | if (sb->u.ext2_sb.s_groups_count <= EXT2_MAX_GROUP_LOADED && |
ext2_sb | 161 | fs/ext2/balloc.c | sb->u.ext2_sb.s_block_bitmap_number[block_group] == block_group && |
ext2_sb | 162 | fs/ext2/balloc.c | sb->u.ext2_sb.s_block_bitmap[block_group]) |
ext2_sb | 185 | fs/ext2/balloc.c | es = sb->u.ext2_sb.s_es; |
ext2_sb | 206 | fs/ext2/balloc.c | bh = sb->u.ext2_sb.s_block_bitmap[bitmap_nr]; |
ext2_sb | 213 | fs/ext2/balloc.c | sb->u.ext2_sb.s_itb_per_group) || |
ext2_sb | 215 | fs/ext2/balloc.c | sb->u.ext2_sb.s_itb_per_group))) |
ext2_sb | 233 | 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 | 357 | fs/ext2/balloc.c | for (k = 0; k < sb->u.ext2_sb.s_groups_count; k++) { |
ext2_sb | 359 | fs/ext2/balloc.c | if (i >= sb->u.ext2_sb.s_groups_count) |
ext2_sb | 365 | fs/ext2/balloc.c | if (k >= sb->u.ext2_sb.s_groups_count) { |
ext2_sb | 370 | fs/ext2/balloc.c | bh = sb->u.ext2_sb.s_block_bitmap[bitmap_nr]; |
ext2_sb | 402 | fs/ext2/balloc.c | in_range (tmp, gdp->bg_inode_table, sb->u.ext2_sb.s_itb_per_group))) |
ext2_sb | 466 | fs/ext2/balloc.c | mark_buffer_dirty(sb->u.ext2_sb.s_sbh, 1); |
ext2_sb | 482 | fs/ext2/balloc.c | es = sb->u.ext2_sb.s_es; |
ext2_sb | 486 | fs/ext2/balloc.c | for (i = 0; i < sb->u.ext2_sb.s_groups_count; i++) { |
ext2_sb | 490 | fs/ext2/balloc.c | x = ext2_count_free (sb->u.ext2_sb.s_block_bitmap[bitmap_nr], |
ext2_sb | 501 | fs/ext2/balloc.c | return sb->u.ext2_sb.s_es->s_free_blocks_count; |
ext2_sb | 509 | fs/ext2/balloc.c | return test_bit ((block - sb->u.ext2_sb.s_es->s_first_data_block) % |
ext2_sb | 524 | fs/ext2/balloc.c | es = sb->u.ext2_sb.s_es; |
ext2_sb | 528 | fs/ext2/balloc.c | desc_blocks = (sb->u.ext2_sb.s_groups_count + EXT2_DESC_PER_BLOCK(sb) - 1) / |
ext2_sb | 530 | fs/ext2/balloc.c | for (i = 0; i < sb->u.ext2_sb.s_groups_count; i++) { |
ext2_sb | 534 | fs/ext2/balloc.c | bh = sb->u.ext2_sb.s_block_bitmap[bitmap_nr]; |
ext2_sb | 556 | fs/ext2/balloc.c | for (j = 0; j < sb->u.ext2_sb.s_itb_per_group; j++) |
ext2_sb | 87 | fs/ext2/dir.c | else if (dir && de->inode > dir->i_sb->u.ext2_sb.s_es->s_inodes_count) |
ext2_sb | 45 | fs/ext2/ialloc.c | if (block_group >= sb->u.ext2_sb.s_groups_count) |
ext2_sb | 49 | fs/ext2/ialloc.c | block_group, sb->u.ext2_sb.s_groups_count); |
ext2_sb | 53 | fs/ext2/ialloc.c | if (!sb->u.ext2_sb.s_group_desc[group_desc]) |
ext2_sb | 59 | fs/ext2/ialloc.c | sb->u.ext2_sb.s_group_desc[group_desc]->b_data; |
ext2_sb | 61 | fs/ext2/ialloc.c | *bh = sb->u.ext2_sb.s_group_desc[group_desc]; |
ext2_sb | 79 | fs/ext2/ialloc.c | sb->u.ext2_sb.s_inode_bitmap_number[bitmap_nr] = block_group; |
ext2_sb | 80 | fs/ext2/ialloc.c | sb->u.ext2_sb.s_inode_bitmap[bitmap_nr] = bh; |
ext2_sb | 101 | fs/ext2/ialloc.c | if (block_group >= sb->u.ext2_sb.s_groups_count) |
ext2_sb | 105 | fs/ext2/ialloc.c | block_group, sb->u.ext2_sb.s_groups_count); |
ext2_sb | 106 | fs/ext2/ialloc.c | if (sb->u.ext2_sb.s_loaded_inode_bitmaps > 0 && |
ext2_sb | 107 | fs/ext2/ialloc.c | sb->u.ext2_sb.s_inode_bitmap_number[0] == block_group) |
ext2_sb | 109 | fs/ext2/ialloc.c | if (sb->u.ext2_sb.s_groups_count <= EXT2_MAX_GROUP_LOADED) { |
ext2_sb | 110 | fs/ext2/ialloc.c | if (sb->u.ext2_sb.s_inode_bitmap[block_group]) { |
ext2_sb | 111 | fs/ext2/ialloc.c | if (sb->u.ext2_sb.s_inode_bitmap_number[block_group] != block_group) |
ext2_sb | 122 | fs/ext2/ialloc.c | for (i = 0; i < sb->u.ext2_sb.s_loaded_inode_bitmaps && |
ext2_sb | 123 | fs/ext2/ialloc.c | sb->u.ext2_sb.s_inode_bitmap_number[i] != block_group; |
ext2_sb | 126 | fs/ext2/ialloc.c | if (i < sb->u.ext2_sb.s_loaded_inode_bitmaps && |
ext2_sb | 127 | fs/ext2/ialloc.c | sb->u.ext2_sb.s_inode_bitmap_number[i] == block_group) { |
ext2_sb | 128 | fs/ext2/ialloc.c | inode_bitmap_number = sb->u.ext2_sb.s_inode_bitmap_number[i]; |
ext2_sb | 129 | fs/ext2/ialloc.c | inode_bitmap = sb->u.ext2_sb.s_inode_bitmap[i]; |
ext2_sb | 131 | fs/ext2/ialloc.c | sb->u.ext2_sb.s_inode_bitmap_number[j] = |
ext2_sb | 132 | fs/ext2/ialloc.c | sb->u.ext2_sb.s_inode_bitmap_number[j - 1]; |
ext2_sb | 133 | fs/ext2/ialloc.c | sb->u.ext2_sb.s_inode_bitmap[j] = |
ext2_sb | 134 | fs/ext2/ialloc.c | sb->u.ext2_sb.s_inode_bitmap[j - 1]; |
ext2_sb | 136 | fs/ext2/ialloc.c | sb->u.ext2_sb.s_inode_bitmap_number[0] = inode_bitmap_number; |
ext2_sb | 137 | fs/ext2/ialloc.c | sb->u.ext2_sb.s_inode_bitmap[0] = inode_bitmap; |
ext2_sb | 139 | fs/ext2/ialloc.c | if (sb->u.ext2_sb.s_loaded_inode_bitmaps < EXT2_MAX_GROUP_LOADED) |
ext2_sb | 140 | fs/ext2/ialloc.c | sb->u.ext2_sb.s_loaded_inode_bitmaps++; |
ext2_sb | 142 | fs/ext2/ialloc.c | brelse (sb->u.ext2_sb.s_inode_bitmap[EXT2_MAX_GROUP_LOADED - 1]); |
ext2_sb | 143 | fs/ext2/ialloc.c | for (j = sb->u.ext2_sb.s_loaded_inode_bitmaps - 1; j > 0; j--) { |
ext2_sb | 144 | fs/ext2/ialloc.c | sb->u.ext2_sb.s_inode_bitmap_number[j] = |
ext2_sb | 145 | fs/ext2/ialloc.c | sb->u.ext2_sb.s_inode_bitmap_number[j - 1]; |
ext2_sb | 146 | fs/ext2/ialloc.c | sb->u.ext2_sb.s_inode_bitmap[j] = |
ext2_sb | 147 | fs/ext2/ialloc.c | sb->u.ext2_sb.s_inode_bitmap[j - 1]; |
ext2_sb | 226 | fs/ext2/ialloc.c | inode->i_ino > sb->u.ext2_sb.s_es->s_inodes_count) { |
ext2_sb | 232 | fs/ext2/ialloc.c | es = sb->u.ext2_sb.s_es; |
ext2_sb | 236 | fs/ext2/ialloc.c | bh = sb->u.ext2_sb.s_inode_bitmap[bitmap_nr]; |
ext2_sb | 247 | fs/ext2/ialloc.c | mark_buffer_dirty(sb->u.ext2_sb.s_sbh, 1); |
ext2_sb | 324 | fs/ext2/ialloc.c | es = sb->u.ext2_sb.s_es; |
ext2_sb | 330 | fs/ext2/ialloc.c | sb->u.ext2_sb.s_groups_count; |
ext2_sb | 345 | fs/ext2/ialloc.c | for (j = 0; j < sb->u.ext2_sb.s_groups_count; j++) { |
ext2_sb | 374 | fs/ext2/ialloc.c | for (j = 1; j < sb->u.ext2_sb.s_groups_count; j <<= 1) { |
ext2_sb | 376 | fs/ext2/ialloc.c | if (i >= sb->u.ext2_sb.s_groups_count) |
ext2_sb | 377 | fs/ext2/ialloc.c | i -= sb->u.ext2_sb.s_groups_count; |
ext2_sb | 390 | fs/ext2/ialloc.c | for (j = 2; j < sb->u.ext2_sb.s_groups_count; j++) { |
ext2_sb | 391 | fs/ext2/ialloc.c | if (++i >= sb->u.ext2_sb.s_groups_count) |
ext2_sb | 408 | fs/ext2/ialloc.c | bh = sb->u.ext2_sb.s_inode_bitmap[bitmap_nr]; |
ext2_sb | 447 | fs/ext2/ialloc.c | mark_buffer_dirty(sb->u.ext2_sb.s_sbh, 1); |
ext2_sb | 500 | fs/ext2/ialloc.c | es = sb->u.ext2_sb.s_es; |
ext2_sb | 504 | fs/ext2/ialloc.c | for (i = 0; i < sb->u.ext2_sb.s_groups_count; i++) { |
ext2_sb | 508 | fs/ext2/ialloc.c | x = ext2_count_free (sb->u.ext2_sb.s_inode_bitmap[bitmap_nr], |
ext2_sb | 519 | fs/ext2/ialloc.c | return sb->u.ext2_sb.s_es->s_free_inodes_count; |
ext2_sb | 532 | fs/ext2/ialloc.c | es = sb->u.ext2_sb.s_es; |
ext2_sb | 536 | fs/ext2/ialloc.c | for (i = 0; i < sb->u.ext2_sb.s_groups_count; i++) { |
ext2_sb | 540 | fs/ext2/ialloc.c | x = ext2_count_free (sb->u.ext2_sb.s_inode_bitmap[bitmap_nr], |
ext2_sb | 223 | fs/ext2/inode.c | inode->i_sb->u.ext2_sb.s_es->s_first_data_block; |
ext2_sb | 503 | fs/ext2/inode.c | inode->i_ino > inode->i_sb->u.ext2_sb.s_es->s_inodes_count) { |
ext2_sb | 509 | fs/ext2/inode.c | if (block_group >= inode->i_sb->u.ext2_sb.s_groups_count) |
ext2_sb | 514 | fs/ext2/inode.c | bh = inode->i_sb->u.ext2_sb.s_group_desc[group_desc]; |
ext2_sb | 594 | fs/ext2/inode.c | inode->i_ino > inode->i_sb->u.ext2_sb.s_es->s_inodes_count) { |
ext2_sb | 600 | fs/ext2/inode.c | if (block_group >= inode->i_sb->u.ext2_sb.s_groups_count) |
ext2_sb | 605 | fs/ext2/inode.c | bh = inode->i_sb->u.ext2_sb.s_group_desc[group_desc]; |
ext2_sb | 1098 | fs/ext2/namei.c | while (old_dir->i_sb->u.ext2_sb.s_rename_lock) |
ext2_sb | 1099 | fs/ext2/namei.c | sleep_on (&old_dir->i_sb->u.ext2_sb.s_rename_wait); |
ext2_sb | 1100 | fs/ext2/namei.c | old_dir->i_sb->u.ext2_sb.s_rename_lock = 1; |
ext2_sb | 1103 | fs/ext2/namei.c | old_dir->i_sb->u.ext2_sb.s_rename_lock = 0; |
ext2_sb | 1104 | fs/ext2/namei.c | wake_up (&old_dir->i_sb->u.ext2_sb.s_rename_wait); |
ext2_sb | 39 | fs/ext2/super.c | sb->u.ext2_sb.s_mount_state |= EXT2_ERROR_FS; |
ext2_sb | 40 | fs/ext2/super.c | sb->u.ext2_sb.s_es->s_state |= EXT2_ERROR_FS; |
ext2_sb | 41 | fs/ext2/super.c | mark_buffer_dirty(sb->u.ext2_sb.s_sbh, 1); |
ext2_sb | 48 | fs/ext2/super.c | (sb->u.ext2_sb.s_es->s_errors == EXT2_ERRORS_PANIC && |
ext2_sb | 55 | fs/ext2/super.c | (sb->u.ext2_sb.s_es->s_errors == EXT2_ERRORS_RO && |
ext2_sb | 68 | fs/ext2/super.c | sb->u.ext2_sb.s_mount_state |= EXT2_ERROR_FS; |
ext2_sb | 69 | fs/ext2/super.c | sb->u.ext2_sb.s_es->s_state |= EXT2_ERROR_FS; |
ext2_sb | 70 | fs/ext2/super.c | mark_buffer_dirty(sb->u.ext2_sb.s_sbh, 1); |
ext2_sb | 99 | fs/ext2/super.c | sb->u.ext2_sb.s_es->s_state = sb->u.ext2_sb.s_mount_state; |
ext2_sb | 100 | fs/ext2/super.c | mark_buffer_dirty(sb->u.ext2_sb.s_sbh, 1); |
ext2_sb | 103 | fs/ext2/super.c | db_count = sb->u.ext2_sb.s_db_per_group; |
ext2_sb | 105 | fs/ext2/super.c | if (sb->u.ext2_sb.s_group_desc[i]) |
ext2_sb | 106 | fs/ext2/super.c | brelse (sb->u.ext2_sb.s_group_desc[i]); |
ext2_sb | 107 | fs/ext2/super.c | kfree_s (sb->u.ext2_sb.s_group_desc, |
ext2_sb | 110 | fs/ext2/super.c | if (sb->u.ext2_sb.s_inode_bitmap[i]) |
ext2_sb | 111 | fs/ext2/super.c | brelse (sb->u.ext2_sb.s_inode_bitmap[i]); |
ext2_sb | 113 | fs/ext2/super.c | if (sb->u.ext2_sb.s_block_bitmap[i]) |
ext2_sb | 114 | fs/ext2/super.c | brelse (sb->u.ext2_sb.s_block_bitmap[i]); |
ext2_sb | 115 | fs/ext2/super.c | brelse (sb->u.ext2_sb.s_sbh); |
ext2_sb | 150 | fs/ext2/super.c | groups_count = (sb->u.ext2_sb.s_blocks_count - |
ext2_sb | 151 | fs/ext2/super.c | sb->u.ext2_sb.s_first_data_block + |
ext2_sb | 308 | fs/ext2/super.c | if (!(sb->u.ext2_sb.s_mount_state & EXT2_VALID_FS)) |
ext2_sb | 311 | fs/ext2/super.c | else if ((sb->u.ext2_sb.s_mount_state & EXT2_ERROR_FS)) |
ext2_sb | 327 | fs/ext2/super.c | mark_buffer_dirty(sb->u.ext2_sb.s_sbh, 1); |
ext2_sb | 333 | fs/ext2/super.c | sb->u.ext2_sb.s_frag_size, |
ext2_sb | 334 | fs/ext2/super.c | sb->u.ext2_sb.s_groups_count, |
ext2_sb | 337 | fs/ext2/super.c | sb->u.ext2_sb.s_mount_opt); |
ext2_sb | 349 | fs/ext2/super.c | unsigned long block = sb->u.ext2_sb.s_es->s_first_data_block; |
ext2_sb | 354 | fs/ext2/super.c | for (i = 0; i < sb->u.ext2_sb.s_groups_count; i++) |
ext2_sb | 357 | fs/ext2/super.c | gdp = (struct ext2_group_desc *) sb->u.ext2_sb.s_group_desc[desc_block++]->b_data; |
ext2_sb | 377 | fs/ext2/super.c | gdp->bg_inode_table + sb->u.ext2_sb.s_itb_per_group >= |
ext2_sb | 410 | fs/ext2/super.c | set_opt (sb->u.ext2_sb.s_mount_opt, CHECK_NORMAL); |
ext2_sb | 412 | fs/ext2/super.c | &sb->u.ext2_sb.s_mount_opt)) { |
ext2_sb | 430 | fs/ext2/super.c | sb->u.ext2_sb.s_es = es; |
ext2_sb | 445 | fs/ext2/super.c | sb->s_blocksize_bits = sb->u.ext2_sb.s_es->s_log_block_size + 10; |
ext2_sb | 460 | fs/ext2/super.c | sb->u.ext2_sb.s_es = es; |
ext2_sb | 469 | fs/ext2/super.c | sb->u.ext2_sb.s_frag_size = EXT2_MIN_FRAG_SIZE << |
ext2_sb | 471 | fs/ext2/super.c | if (sb->u.ext2_sb.s_frag_size) |
ext2_sb | 472 | fs/ext2/super.c | sb->u.ext2_sb.s_frags_per_block = sb->s_blocksize / |
ext2_sb | 473 | fs/ext2/super.c | sb->u.ext2_sb.s_frag_size; |
ext2_sb | 476 | fs/ext2/super.c | sb->u.ext2_sb.s_blocks_per_group = es->s_blocks_per_group; |
ext2_sb | 477 | fs/ext2/super.c | sb->u.ext2_sb.s_frags_per_group = es->s_frags_per_group; |
ext2_sb | 478 | fs/ext2/super.c | sb->u.ext2_sb.s_inodes_per_group = es->s_inodes_per_group; |
ext2_sb | 479 | fs/ext2/super.c | sb->u.ext2_sb.s_inodes_per_block = sb->s_blocksize / |
ext2_sb | 481 | fs/ext2/super.c | sb->u.ext2_sb.s_itb_per_group = sb->u.ext2_sb.s_inodes_per_group / |
ext2_sb | 482 | fs/ext2/super.c | sb->u.ext2_sb.s_inodes_per_block; |
ext2_sb | 483 | fs/ext2/super.c | sb->u.ext2_sb.s_desc_per_block = sb->s_blocksize / |
ext2_sb | 485 | fs/ext2/super.c | sb->u.ext2_sb.s_sbh = bh; |
ext2_sb | 487 | fs/ext2/super.c | sb->u.ext2_sb.s_resuid = resuid; |
ext2_sb | 489 | fs/ext2/super.c | sb->u.ext2_sb.s_resuid = es->s_def_resuid; |
ext2_sb | 491 | fs/ext2/super.c | sb->u.ext2_sb.s_resgid = resgid; |
ext2_sb | 493 | fs/ext2/super.c | sb->u.ext2_sb.s_resgid = es->s_def_resgid; |
ext2_sb | 494 | fs/ext2/super.c | sb->u.ext2_sb.s_mount_state = es->s_state; |
ext2_sb | 495 | fs/ext2/super.c | sb->u.ext2_sb.s_rename_lock = 0; |
ext2_sb | 496 | fs/ext2/super.c | sb->u.ext2_sb.s_rename_wait = NULL; |
ext2_sb | 497 | fs/ext2/super.c | sb->u.ext2_sb.s_addr_per_block_bits = |
ext2_sb | 499 | fs/ext2/super.c | sb->u.ext2_sb.s_inodes_per_block_bits = |
ext2_sb | 501 | fs/ext2/super.c | sb->u.ext2_sb.s_desc_per_block_bits = |
ext2_sb | 555 | fs/ext2/super.c | if (sb->s_blocksize != sb->u.ext2_sb.s_frag_size) { |
ext2_sb | 560 | fs/ext2/super.c | sb->u.ext2_sb.s_frag_size, sb->s_blocksize); |
ext2_sb | 564 | fs/ext2/super.c | if (sb->u.ext2_sb.s_blocks_per_group > sb->s_blocksize * 8) { |
ext2_sb | 569 | fs/ext2/super.c | sb->u.ext2_sb.s_blocks_per_group); |
ext2_sb | 572 | fs/ext2/super.c | if (sb->u.ext2_sb.s_frags_per_group > sb->s_blocksize * 8) { |
ext2_sb | 577 | fs/ext2/super.c | sb->u.ext2_sb.s_frags_per_group); |
ext2_sb | 580 | fs/ext2/super.c | if (sb->u.ext2_sb.s_inodes_per_group > sb->s_blocksize * 8) { |
ext2_sb | 585 | fs/ext2/super.c | sb->u.ext2_sb.s_inodes_per_group); |
ext2_sb | 589 | fs/ext2/super.c | sb->u.ext2_sb.s_groups_count = (es->s_blocks_count - |
ext2_sb | 593 | fs/ext2/super.c | db_count = (sb->u.ext2_sb.s_groups_count + EXT2_DESC_PER_BLOCK(sb) - 1) / |
ext2_sb | 595 | fs/ext2/super.c | sb->u.ext2_sb.s_group_desc = kmalloc (db_count * sizeof (struct buffer_head *), GFP_KERNEL); |
ext2_sb | 596 | fs/ext2/super.c | if (sb->u.ext2_sb.s_group_desc == NULL) { |
ext2_sb | 604 | fs/ext2/super.c | sb->u.ext2_sb.s_group_desc[i] = bread (dev, logic_sb_block + i + 1, |
ext2_sb | 606 | fs/ext2/super.c | if (!sb->u.ext2_sb.s_group_desc[i]) { |
ext2_sb | 610 | fs/ext2/super.c | brelse (sb->u.ext2_sb.s_group_desc[j]); |
ext2_sb | 611 | fs/ext2/super.c | kfree_s (sb->u.ext2_sb.s_group_desc, |
ext2_sb | 622 | fs/ext2/super.c | brelse (sb->u.ext2_sb.s_group_desc[j]); |
ext2_sb | 623 | fs/ext2/super.c | kfree_s (sb->u.ext2_sb.s_group_desc, |
ext2_sb | 630 | fs/ext2/super.c | sb->u.ext2_sb.s_inode_bitmap_number[i] = 0; |
ext2_sb | 631 | fs/ext2/super.c | sb->u.ext2_sb.s_inode_bitmap[i] = NULL; |
ext2_sb | 632 | fs/ext2/super.c | sb->u.ext2_sb.s_block_bitmap_number[i] = 0; |
ext2_sb | 633 | fs/ext2/super.c | sb->u.ext2_sb.s_block_bitmap[i] = NULL; |
ext2_sb | 635 | fs/ext2/super.c | sb->u.ext2_sb.s_loaded_inode_bitmaps = 0; |
ext2_sb | 636 | fs/ext2/super.c | sb->u.ext2_sb.s_loaded_block_bitmaps = 0; |
ext2_sb | 637 | fs/ext2/super.c | sb->u.ext2_sb.s_db_per_group = db_count; |
ext2_sb | 647 | fs/ext2/super.c | if (sb->u.ext2_sb.s_group_desc[i]) |
ext2_sb | 648 | fs/ext2/super.c | brelse (sb->u.ext2_sb.s_group_desc[i]); |
ext2_sb | 649 | fs/ext2/super.c | kfree_s (sb->u.ext2_sb.s_group_desc, |
ext2_sb | 658 | fs/ext2/super.c | mark_buffer_dirty(sb->u.ext2_sb.s_group_desc[i], 1); |
ext2_sb | 670 | fs/ext2/super.c | mark_buffer_dirty(sb->u.ext2_sb.s_sbh, 1); |
ext2_sb | 690 | fs/ext2/super.c | es = sb->u.ext2_sb.s_es; |
ext2_sb | 706 | fs/ext2/super.c | unsigned short resuid = sb->u.ext2_sb.s_resuid; |
ext2_sb | 707 | fs/ext2/super.c | unsigned short resgid = sb->u.ext2_sb.s_resgid; |
ext2_sb | 714 | fs/ext2/super.c | set_opt (sb->u.ext2_sb.s_mount_opt, CHECK_NORMAL); |
ext2_sb | 719 | fs/ext2/super.c | sb->u.ext2_sb.s_mount_opt = new_mount_opt; |
ext2_sb | 720 | fs/ext2/super.c | sb->u.ext2_sb.s_resuid = resuid; |
ext2_sb | 721 | fs/ext2/super.c | sb->u.ext2_sb.s_resgid = resgid; |
ext2_sb | 722 | fs/ext2/super.c | es = sb->u.ext2_sb.s_es; |
ext2_sb | 727 | fs/ext2/super.c | !(sb->u.ext2_sb.s_mount_state & EXT2_VALID_FS)) |
ext2_sb | 733 | fs/ext2/super.c | es->s_state = sb->u.ext2_sb.s_mount_state; |
ext2_sb | 735 | fs/ext2/super.c | mark_buffer_dirty(sb->u.ext2_sb.s_sbh, 1); |
ext2_sb | 745 | fs/ext2/super.c | sb->u.ext2_sb.s_mount_state = es->s_state; |
ext2_sb | 765 | fs/ext2/super.c | sb->u.ext2_sb.s_db_per_group /* descriptors */ + |
ext2_sb | 768 | fs/ext2/super.c | sb->u.ext2_sb.s_itb_per_group /* inode table */; |
ext2_sb | 769 | fs/ext2/super.c | overhead = sb->u.ext2_sb.s_es->s_first_data_block + |
ext2_sb | 770 | fs/ext2/super.c | sb->u.ext2_sb.s_groups_count * overhead_per_group; |
ext2_sb | 775 | fs/ext2/super.c | tmp.f_blocks = sb->u.ext2_sb.s_es->s_blocks_count - overhead; |
ext2_sb | 777 | fs/ext2/super.c | tmp.f_bavail = tmp.f_bfree - sb->u.ext2_sb.s_es->s_r_blocks_count; |
ext2_sb | 778 | fs/ext2/super.c | if (tmp.f_bfree < sb->u.ext2_sb.s_es->s_r_blocks_count) |
ext2_sb | 780 | fs/ext2/super.c | tmp.f_files = sb->u.ext2_sb.s_es->s_inodes_count; |
ext2_sb | 111 | include/linux/ext2_fs.h | #define EXT2_ADDR_PER_BLOCK_BITS(s) ((s)->u.ext2_sb.s_addr_per_block_bits) |
ext2_sb | 112 | include/linux/ext2_fs.h | #define EXT2_INODES_PER_BLOCK_BITS(s) ((s)->u.ext2_sb.s_inodes_per_block_bits) |
ext2_sb | 122 | include/linux/ext2_fs.h | # define EXT2_FRAG_SIZE(s) ((s)->u.ext2_sb.s_frag_size) |
ext2_sb | 123 | include/linux/ext2_fs.h | # define EXT2_FRAGS_PER_BLOCK(s) ((s)->u.ext2_sb.s_frags_per_block) |
ext2_sb | 179 | include/linux/ext2_fs.h | # define EXT2_BLOCKS_PER_GROUP(s) ((s)->u.ext2_sb.s_blocks_per_group) |
ext2_sb | 180 | include/linux/ext2_fs.h | # define EXT2_DESC_PER_BLOCK(s) ((s)->u.ext2_sb.s_desc_per_block) |
ext2_sb | 181 | include/linux/ext2_fs.h | # define EXT2_INODES_PER_GROUP(s) ((s)->u.ext2_sb.s_inodes_per_group) |
ext2_sb | 182 | include/linux/ext2_fs.h | # define EXT2_DESC_PER_BLOCK_BITS(s) ((s)->u.ext2_sb.s_desc_per_block_bits) |
ext2_sb | 317 | include/linux/ext2_fs.h | #define test_opt(sb, opt) ((sb)->u.ext2_sb.s_mount_opt & \ |
ext2_sb | 317 | include/linux/fs.h | struct ext2_sb_info ext2_sb; |