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 | 187 | fs/ext2/balloc.c | es = sb->u.ext2_sb.s_es; |
ext2_sb | 208 | fs/ext2/balloc.c | bh = sb->u.ext2_sb.s_block_bitmap[bitmap_nr]; |
ext2_sb | 215 | fs/ext2/balloc.c | sb->u.ext2_sb.s_itb_per_group) || |
ext2_sb | 217 | fs/ext2/balloc.c | sb->u.ext2_sb.s_itb_per_group))) |
ext2_sb | 237 | fs/ext2/balloc.c | mark_buffer_dirty(sb->u.ext2_sb.s_sbh, 1); |
ext2_sb | 278 | fs/ext2/balloc.c | es = sb->u.ext2_sb.s_es; |
ext2_sb | 280 | fs/ext2/balloc.c | (!fsuser() && (sb->u.ext2_sb.s_resuid != current->fsuid) && |
ext2_sb | 281 | fs/ext2/balloc.c | (sb->u.ext2_sb.s_resgid == 0 || |
ext2_sb | 282 | fs/ext2/balloc.c | !in_group_p (sb->u.ext2_sb.s_resgid)))) { |
ext2_sb | 304 | 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 | 418 | fs/ext2/balloc.c | in_range (tmp, gdp->bg_inode_table, sb->u.ext2_sb.s_itb_per_group))) |
ext2_sb | 490 | fs/ext2/balloc.c | mark_buffer_dirty(sb->u.ext2_sb.s_sbh, 1); |
ext2_sb | 507 | fs/ext2/balloc.c | es = sb->u.ext2_sb.s_es; |
ext2_sb | 511 | fs/ext2/balloc.c | for (i = 0; i < sb->u.ext2_sb.s_groups_count; i++) { |
ext2_sb | 515 | fs/ext2/balloc.c | x = ext2_count_free (sb->u.ext2_sb.s_block_bitmap[bitmap_nr], |
ext2_sb | 526 | fs/ext2/balloc.c | return sb->u.ext2_sb.s_es->s_free_blocks_count; |
ext2_sb | 534 | fs/ext2/balloc.c | return test_bit ((block - sb->u.ext2_sb.s_es->s_first_data_block) % |
ext2_sb | 549 | fs/ext2/balloc.c | es = sb->u.ext2_sb.s_es; |
ext2_sb | 553 | fs/ext2/balloc.c | desc_blocks = (sb->u.ext2_sb.s_groups_count + EXT2_DESC_PER_BLOCK(sb) - 1) / |
ext2_sb | 555 | fs/ext2/balloc.c | for (i = 0; i < sb->u.ext2_sb.s_groups_count; i++) { |
ext2_sb | 559 | fs/ext2/balloc.c | bh = sb->u.ext2_sb.s_block_bitmap[bitmap_nr]; |
ext2_sb | 581 | 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 | 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 | 326 | fs/ext2/ialloc.c | es = sb->u.ext2_sb.s_es; |
ext2_sb | 333 | fs/ext2/ialloc.c | sb->u.ext2_sb.s_groups_count; |
ext2_sb | 348 | fs/ext2/ialloc.c | for (j = 0; j < sb->u.ext2_sb.s_groups_count; j++) { |
ext2_sb | 377 | fs/ext2/ialloc.c | for (j = 1; j < sb->u.ext2_sb.s_groups_count; j <<= 1) { |
ext2_sb | 379 | fs/ext2/ialloc.c | if (i >= sb->u.ext2_sb.s_groups_count) |
ext2_sb | 380 | fs/ext2/ialloc.c | i -= sb->u.ext2_sb.s_groups_count; |
ext2_sb | 393 | fs/ext2/ialloc.c | for (j = 2; j < sb->u.ext2_sb.s_groups_count; j++) { |
ext2_sb | 394 | fs/ext2/ialloc.c | if (++i >= sb->u.ext2_sb.s_groups_count) |
ext2_sb | 411 | fs/ext2/ialloc.c | bh = sb->u.ext2_sb.s_inode_bitmap[bitmap_nr]; |
ext2_sb | 450 | fs/ext2/ialloc.c | mark_buffer_dirty(sb->u.ext2_sb.s_sbh, 1); |
ext2_sb | 515 | fs/ext2/ialloc.c | es = sb->u.ext2_sb.s_es; |
ext2_sb | 519 | fs/ext2/ialloc.c | for (i = 0; i < sb->u.ext2_sb.s_groups_count; i++) { |
ext2_sb | 523 | fs/ext2/ialloc.c | x = ext2_count_free (sb->u.ext2_sb.s_inode_bitmap[bitmap_nr], |
ext2_sb | 534 | fs/ext2/ialloc.c | return sb->u.ext2_sb.s_es->s_free_inodes_count; |
ext2_sb | 547 | fs/ext2/ialloc.c | es = sb->u.ext2_sb.s_es; |
ext2_sb | 551 | fs/ext2/ialloc.c | for (i = 0; i < sb->u.ext2_sb.s_groups_count; i++) { |
ext2_sb | 555 | fs/ext2/ialloc.c | x = ext2_count_free (sb->u.ext2_sb.s_inode_bitmap[bitmap_nr], |
ext2_sb | 222 | fs/ext2/inode.c | inode->i_sb->u.ext2_sb.s_es->s_first_data_block; |
ext2_sb | 502 | fs/ext2/inode.c | inode->i_ino > inode->i_sb->u.ext2_sb.s_es->s_inodes_count) { |
ext2_sb | 508 | fs/ext2/inode.c | if (block_group >= inode->i_sb->u.ext2_sb.s_groups_count) |
ext2_sb | 513 | fs/ext2/inode.c | bh = inode->i_sb->u.ext2_sb.s_group_desc[group_desc]; |
ext2_sb | 593 | fs/ext2/inode.c | inode->i_ino > inode->i_sb->u.ext2_sb.s_es->s_inodes_count) { |
ext2_sb | 599 | fs/ext2/inode.c | if (block_group >= inode->i_sb->u.ext2_sb.s_groups_count) |
ext2_sb | 604 | fs/ext2/inode.c | bh = inode->i_sb->u.ext2_sb.s_group_desc[group_desc]; |
ext2_sb | 1106 | fs/ext2/namei.c | while (old_dir->i_sb->u.ext2_sb.s_rename_lock) |
ext2_sb | 1107 | fs/ext2/namei.c | sleep_on (&old_dir->i_sb->u.ext2_sb.s_rename_wait); |
ext2_sb | 1108 | fs/ext2/namei.c | old_dir->i_sb->u.ext2_sb.s_rename_lock = 1; |
ext2_sb | 1111 | fs/ext2/namei.c | old_dir->i_sb->u.ext2_sb.s_rename_lock = 0; |
ext2_sb | 1112 | fs/ext2/namei.c | wake_up (&old_dir->i_sb->u.ext2_sb.s_rename_wait); |
ext2_sb | 41 | fs/ext2/super.c | sb->u.ext2_sb.s_mount_state |= EXT2_ERROR_FS; |
ext2_sb | 42 | fs/ext2/super.c | sb->u.ext2_sb.s_es->s_state |= EXT2_ERROR_FS; |
ext2_sb | 43 | fs/ext2/super.c | mark_buffer_dirty(sb->u.ext2_sb.s_sbh, 1); |
ext2_sb | 50 | fs/ext2/super.c | (sb->u.ext2_sb.s_es->s_errors == EXT2_ERRORS_PANIC && |
ext2_sb | 57 | fs/ext2/super.c | (sb->u.ext2_sb.s_es->s_errors == EXT2_ERRORS_RO && |
ext2_sb | 70 | fs/ext2/super.c | sb->u.ext2_sb.s_mount_state |= EXT2_ERROR_FS; |
ext2_sb | 71 | fs/ext2/super.c | sb->u.ext2_sb.s_es->s_state |= EXT2_ERROR_FS; |
ext2_sb | 72 | fs/ext2/super.c | mark_buffer_dirty(sb->u.ext2_sb.s_sbh, 1); |
ext2_sb | 105 | fs/ext2/super.c | sb->u.ext2_sb.s_es->s_state = sb->u.ext2_sb.s_mount_state; |
ext2_sb | 106 | fs/ext2/super.c | mark_buffer_dirty(sb->u.ext2_sb.s_sbh, 1); |
ext2_sb | 109 | fs/ext2/super.c | db_count = sb->u.ext2_sb.s_db_per_group; |
ext2_sb | 111 | fs/ext2/super.c | if (sb->u.ext2_sb.s_group_desc[i]) |
ext2_sb | 112 | fs/ext2/super.c | brelse (sb->u.ext2_sb.s_group_desc[i]); |
ext2_sb | 113 | fs/ext2/super.c | kfree_s (sb->u.ext2_sb.s_group_desc, |
ext2_sb | 116 | fs/ext2/super.c | if (sb->u.ext2_sb.s_inode_bitmap[i]) |
ext2_sb | 117 | fs/ext2/super.c | brelse (sb->u.ext2_sb.s_inode_bitmap[i]); |
ext2_sb | 119 | fs/ext2/super.c | if (sb->u.ext2_sb.s_block_bitmap[i]) |
ext2_sb | 120 | fs/ext2/super.c | brelse (sb->u.ext2_sb.s_block_bitmap[i]); |
ext2_sb | 121 | fs/ext2/super.c | brelse (sb->u.ext2_sb.s_sbh); |
ext2_sb | 279 | fs/ext2/super.c | if (!(sb->u.ext2_sb.s_mount_state & EXT2_VALID_FS)) |
ext2_sb | 282 | fs/ext2/super.c | else if ((sb->u.ext2_sb.s_mount_state & EXT2_ERROR_FS)) |
ext2_sb | 298 | fs/ext2/super.c | mark_buffer_dirty(sb->u.ext2_sb.s_sbh, 1); |
ext2_sb | 304 | fs/ext2/super.c | sb->u.ext2_sb.s_frag_size, |
ext2_sb | 305 | fs/ext2/super.c | sb->u.ext2_sb.s_groups_count, |
ext2_sb | 308 | fs/ext2/super.c | sb->u.ext2_sb.s_mount_opt); |
ext2_sb | 320 | fs/ext2/super.c | unsigned long block = sb->u.ext2_sb.s_es->s_first_data_block; |
ext2_sb | 325 | fs/ext2/super.c | for (i = 0; i < sb->u.ext2_sb.s_groups_count; i++) |
ext2_sb | 328 | fs/ext2/super.c | gdp = (struct ext2_group_desc *) sb->u.ext2_sb.s_group_desc[desc_block++]->b_data; |
ext2_sb | 348 | fs/ext2/super.c | gdp->bg_inode_table + sb->u.ext2_sb.s_itb_per_group >= |
ext2_sb | 378 | fs/ext2/super.c | set_opt (sb->u.ext2_sb.s_mount_opt, CHECK_NORMAL); |
ext2_sb | 380 | fs/ext2/super.c | &sb->u.ext2_sb.s_mount_opt)) { |
ext2_sb | 400 | fs/ext2/super.c | sb->u.ext2_sb.s_es = es; |
ext2_sb | 411 | fs/ext2/super.c | sb->s_blocksize_bits = sb->u.ext2_sb.s_es->s_log_block_size + 10; |
ext2_sb | 428 | fs/ext2/super.c | sb->u.ext2_sb.s_es = es; |
ext2_sb | 438 | fs/ext2/super.c | sb->u.ext2_sb.s_frag_size = EXT2_MIN_FRAG_SIZE << |
ext2_sb | 440 | fs/ext2/super.c | if (sb->u.ext2_sb.s_frag_size) |
ext2_sb | 441 | fs/ext2/super.c | sb->u.ext2_sb.s_frags_per_block = sb->s_blocksize / |
ext2_sb | 442 | fs/ext2/super.c | sb->u.ext2_sb.s_frag_size; |
ext2_sb | 445 | fs/ext2/super.c | sb->u.ext2_sb.s_blocks_per_group = es->s_blocks_per_group; |
ext2_sb | 446 | fs/ext2/super.c | sb->u.ext2_sb.s_frags_per_group = es->s_frags_per_group; |
ext2_sb | 447 | fs/ext2/super.c | sb->u.ext2_sb.s_inodes_per_group = es->s_inodes_per_group; |
ext2_sb | 448 | fs/ext2/super.c | sb->u.ext2_sb.s_inodes_per_block = sb->s_blocksize / |
ext2_sb | 450 | fs/ext2/super.c | sb->u.ext2_sb.s_itb_per_group = sb->u.ext2_sb.s_inodes_per_group / |
ext2_sb | 451 | fs/ext2/super.c | sb->u.ext2_sb.s_inodes_per_block; |
ext2_sb | 452 | fs/ext2/super.c | sb->u.ext2_sb.s_desc_per_block = sb->s_blocksize / |
ext2_sb | 454 | fs/ext2/super.c | sb->u.ext2_sb.s_sbh = bh; |
ext2_sb | 456 | fs/ext2/super.c | sb->u.ext2_sb.s_resuid = resuid; |
ext2_sb | 458 | fs/ext2/super.c | sb->u.ext2_sb.s_resuid = es->s_def_resuid; |
ext2_sb | 460 | fs/ext2/super.c | sb->u.ext2_sb.s_resgid = resgid; |
ext2_sb | 462 | fs/ext2/super.c | sb->u.ext2_sb.s_resgid = es->s_def_resgid; |
ext2_sb | 463 | fs/ext2/super.c | sb->u.ext2_sb.s_mount_state = es->s_state; |
ext2_sb | 464 | fs/ext2/super.c | sb->u.ext2_sb.s_rename_lock = 0; |
ext2_sb | 465 | fs/ext2/super.c | sb->u.ext2_sb.s_rename_wait = NULL; |
ext2_sb | 466 | fs/ext2/super.c | sb->u.ext2_sb.s_addr_per_block_bits = |
ext2_sb | 468 | fs/ext2/super.c | sb->u.ext2_sb.s_inodes_per_block_bits = |
ext2_sb | 470 | fs/ext2/super.c | sb->u.ext2_sb.s_desc_per_block_bits = |
ext2_sb | 494 | fs/ext2/super.c | if (sb->s_blocksize != sb->u.ext2_sb.s_frag_size) { |
ext2_sb | 499 | fs/ext2/super.c | sb->u.ext2_sb.s_frag_size, sb->s_blocksize); |
ext2_sb | 504 | fs/ext2/super.c | if (sb->u.ext2_sb.s_blocks_per_group > sb->s_blocksize * 8) { |
ext2_sb | 509 | fs/ext2/super.c | sb->u.ext2_sb.s_blocks_per_group); |
ext2_sb | 513 | fs/ext2/super.c | if (sb->u.ext2_sb.s_frags_per_group > sb->s_blocksize * 8) { |
ext2_sb | 518 | fs/ext2/super.c | sb->u.ext2_sb.s_frags_per_group); |
ext2_sb | 522 | fs/ext2/super.c | if (sb->u.ext2_sb.s_inodes_per_group > sb->s_blocksize * 8) { |
ext2_sb | 527 | fs/ext2/super.c | sb->u.ext2_sb.s_inodes_per_group); |
ext2_sb | 532 | fs/ext2/super.c | sb->u.ext2_sb.s_groups_count = (es->s_blocks_count - |
ext2_sb | 536 | fs/ext2/super.c | db_count = (sb->u.ext2_sb.s_groups_count + EXT2_DESC_PER_BLOCK(sb) - 1) / |
ext2_sb | 538 | fs/ext2/super.c | sb->u.ext2_sb.s_group_desc = kmalloc (db_count * sizeof (struct buffer_head *), GFP_KERNEL); |
ext2_sb | 539 | fs/ext2/super.c | if (sb->u.ext2_sb.s_group_desc == NULL) { |
ext2_sb | 548 | fs/ext2/super.c | sb->u.ext2_sb.s_group_desc[i] = bread (dev, logic_sb_block + i + 1, |
ext2_sb | 550 | fs/ext2/super.c | if (!sb->u.ext2_sb.s_group_desc[i]) { |
ext2_sb | 554 | fs/ext2/super.c | brelse (sb->u.ext2_sb.s_group_desc[j]); |
ext2_sb | 555 | fs/ext2/super.c | kfree_s (sb->u.ext2_sb.s_group_desc, |
ext2_sb | 567 | fs/ext2/super.c | brelse (sb->u.ext2_sb.s_group_desc[j]); |
ext2_sb | 568 | fs/ext2/super.c | kfree_s (sb->u.ext2_sb.s_group_desc, |
ext2_sb | 576 | fs/ext2/super.c | sb->u.ext2_sb.s_inode_bitmap_number[i] = 0; |
ext2_sb | 577 | fs/ext2/super.c | sb->u.ext2_sb.s_inode_bitmap[i] = NULL; |
ext2_sb | 578 | fs/ext2/super.c | sb->u.ext2_sb.s_block_bitmap_number[i] = 0; |
ext2_sb | 579 | fs/ext2/super.c | sb->u.ext2_sb.s_block_bitmap[i] = NULL; |
ext2_sb | 581 | fs/ext2/super.c | sb->u.ext2_sb.s_loaded_inode_bitmaps = 0; |
ext2_sb | 582 | fs/ext2/super.c | sb->u.ext2_sb.s_loaded_block_bitmaps = 0; |
ext2_sb | 583 | fs/ext2/super.c | sb->u.ext2_sb.s_db_per_group = db_count; |
ext2_sb | 593 | fs/ext2/super.c | if (sb->u.ext2_sb.s_group_desc[i]) |
ext2_sb | 594 | fs/ext2/super.c | brelse (sb->u.ext2_sb.s_group_desc[i]); |
ext2_sb | 595 | fs/ext2/super.c | kfree_s (sb->u.ext2_sb.s_group_desc, |
ext2_sb | 610 | fs/ext2/super.c | mark_buffer_dirty(sb->u.ext2_sb.s_sbh, 1); |
ext2_sb | 630 | fs/ext2/super.c | es = sb->u.ext2_sb.s_es; |
ext2_sb | 646 | fs/ext2/super.c | unsigned short resuid = sb->u.ext2_sb.s_resuid; |
ext2_sb | 647 | fs/ext2/super.c | unsigned short resgid = sb->u.ext2_sb.s_resgid; |
ext2_sb | 659 | fs/ext2/super.c | sb->u.ext2_sb.s_mount_opt = new_mount_opt; |
ext2_sb | 660 | fs/ext2/super.c | sb->u.ext2_sb.s_resuid = resuid; |
ext2_sb | 661 | fs/ext2/super.c | sb->u.ext2_sb.s_resgid = resgid; |
ext2_sb | 662 | fs/ext2/super.c | es = sb->u.ext2_sb.s_es; |
ext2_sb | 667 | fs/ext2/super.c | !(sb->u.ext2_sb.s_mount_state & EXT2_VALID_FS)) |
ext2_sb | 673 | fs/ext2/super.c | es->s_state = sb->u.ext2_sb.s_mount_state; |
ext2_sb | 675 | fs/ext2/super.c | mark_buffer_dirty(sb->u.ext2_sb.s_sbh, 1); |
ext2_sb | 685 | fs/ext2/super.c | sb->u.ext2_sb.s_mount_state = es->s_state; |
ext2_sb | 731 | fs/ext2/super.c | sb->u.ext2_sb.s_db_per_group /* descriptors */ + |
ext2_sb | 734 | fs/ext2/super.c | sb->u.ext2_sb.s_itb_per_group /* inode table */; |
ext2_sb | 735 | fs/ext2/super.c | overhead = sb->u.ext2_sb.s_es->s_first_data_block + |
ext2_sb | 736 | fs/ext2/super.c | sb->u.ext2_sb.s_groups_count * overhead_per_group; |
ext2_sb | 741 | fs/ext2/super.c | tmp.f_blocks = sb->u.ext2_sb.s_es->s_blocks_count - overhead; |
ext2_sb | 743 | fs/ext2/super.c | tmp.f_bavail = tmp.f_bfree - sb->u.ext2_sb.s_es->s_r_blocks_count; |
ext2_sb | 744 | fs/ext2/super.c | if (tmp.f_bfree < sb->u.ext2_sb.s_es->s_r_blocks_count) |
ext2_sb | 746 | fs/ext2/super.c | tmp.f_files = sb->u.ext2_sb.s_es->s_inodes_count; |
ext2_sb | 95 | include/linux/ext2_fs.h | #define EXT2_ADDR_PER_BLOCK_BITS(s) ((s)->u.ext2_sb.s_addr_per_block_bits) |
ext2_sb | 96 | include/linux/ext2_fs.h | #define EXT2_INODES_PER_BLOCK_BITS(s) ((s)->u.ext2_sb.s_inodes_per_block_bits) |
ext2_sb | 106 | include/linux/ext2_fs.h | # define EXT2_FRAG_SIZE(s) ((s)->u.ext2_sb.s_frag_size) |
ext2_sb | 107 | include/linux/ext2_fs.h | # define EXT2_FRAGS_PER_BLOCK(s) ((s)->u.ext2_sb.s_frags_per_block) |
ext2_sb | 154 | include/linux/ext2_fs.h | # define EXT2_BLOCKS_PER_GROUP(s) ((s)->u.ext2_sb.s_blocks_per_group) |
ext2_sb | 155 | include/linux/ext2_fs.h | # define EXT2_DESC_PER_BLOCK(s) ((s)->u.ext2_sb.s_desc_per_block) |
ext2_sb | 156 | include/linux/ext2_fs.h | # define EXT2_INODES_PER_GROUP(s) ((s)->u.ext2_sb.s_inodes_per_group) |
ext2_sb | 157 | include/linux/ext2_fs.h | # define EXT2_DESC_PER_BLOCK_BITS(s) ((s)->u.ext2_sb.s_desc_per_block_bits) |
ext2_sb | 292 | include/linux/ext2_fs.h | #define test_opt(sb, opt) ((sb)->u.ext2_sb.s_mount_opt & \ |
ext2_sb | 385 | include/linux/fs.h | struct ext2_sb_info ext2_sb; |