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 | 325 | fs/ext2/ialloc.c | es = sb->u.ext2_sb.s_es; |
ext2_sb | 332 | fs/ext2/ialloc.c | sb->u.ext2_sb.s_groups_count; |
ext2_sb | 347 | fs/ext2/ialloc.c | for (j = 0; j < sb->u.ext2_sb.s_groups_count; j++) { |
ext2_sb | 376 | fs/ext2/ialloc.c | for (j = 1; j < sb->u.ext2_sb.s_groups_count; j <<= 1) { |
ext2_sb | 378 | fs/ext2/ialloc.c | if (i >= sb->u.ext2_sb.s_groups_count) |
ext2_sb | 379 | fs/ext2/ialloc.c | i -= sb->u.ext2_sb.s_groups_count; |
ext2_sb | 392 | fs/ext2/ialloc.c | for (j = 2; j < sb->u.ext2_sb.s_groups_count; j++) { |
ext2_sb | 393 | fs/ext2/ialloc.c | if (++i >= sb->u.ext2_sb.s_groups_count) |
ext2_sb | 410 | fs/ext2/ialloc.c | bh = sb->u.ext2_sb.s_inode_bitmap[bitmap_nr]; |
ext2_sb | 449 | fs/ext2/ialloc.c | mark_buffer_dirty(sb->u.ext2_sb.s_sbh, 1); |
ext2_sb | 514 | fs/ext2/ialloc.c | es = sb->u.ext2_sb.s_es; |
ext2_sb | 518 | fs/ext2/ialloc.c | for (i = 0; i < sb->u.ext2_sb.s_groups_count; i++) { |
ext2_sb | 522 | fs/ext2/ialloc.c | x = ext2_count_free (sb->u.ext2_sb.s_inode_bitmap[bitmap_nr], |
ext2_sb | 533 | fs/ext2/ialloc.c | return sb->u.ext2_sb.s_es->s_free_inodes_count; |
ext2_sb | 546 | fs/ext2/ialloc.c | es = sb->u.ext2_sb.s_es; |
ext2_sb | 550 | fs/ext2/ialloc.c | for (i = 0; i < sb->u.ext2_sb.s_groups_count; i++) { |
ext2_sb | 554 | 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 | 101 | fs/ext2/super.c | sb->u.ext2_sb.s_es->s_state = sb->u.ext2_sb.s_mount_state; |
ext2_sb | 102 | fs/ext2/super.c | mark_buffer_dirty(sb->u.ext2_sb.s_sbh, 1); |
ext2_sb | 105 | fs/ext2/super.c | db_count = sb->u.ext2_sb.s_db_per_group; |
ext2_sb | 107 | fs/ext2/super.c | if (sb->u.ext2_sb.s_group_desc[i]) |
ext2_sb | 108 | fs/ext2/super.c | brelse (sb->u.ext2_sb.s_group_desc[i]); |
ext2_sb | 109 | fs/ext2/super.c | kfree_s (sb->u.ext2_sb.s_group_desc, |
ext2_sb | 112 | fs/ext2/super.c | if (sb->u.ext2_sb.s_inode_bitmap[i]) |
ext2_sb | 113 | fs/ext2/super.c | brelse (sb->u.ext2_sb.s_inode_bitmap[i]); |
ext2_sb | 115 | fs/ext2/super.c | if (sb->u.ext2_sb.s_block_bitmap[i]) |
ext2_sb | 116 | fs/ext2/super.c | brelse (sb->u.ext2_sb.s_block_bitmap[i]); |
ext2_sb | 117 | fs/ext2/super.c | brelse (sb->u.ext2_sb.s_sbh); |
ext2_sb | 275 | fs/ext2/super.c | if (!(sb->u.ext2_sb.s_mount_state & EXT2_VALID_FS)) |
ext2_sb | 278 | fs/ext2/super.c | else if ((sb->u.ext2_sb.s_mount_state & EXT2_ERROR_FS)) |
ext2_sb | 294 | fs/ext2/super.c | mark_buffer_dirty(sb->u.ext2_sb.s_sbh, 1); |
ext2_sb | 300 | fs/ext2/super.c | sb->u.ext2_sb.s_frag_size, |
ext2_sb | 301 | fs/ext2/super.c | sb->u.ext2_sb.s_groups_count, |
ext2_sb | 304 | fs/ext2/super.c | sb->u.ext2_sb.s_mount_opt); |
ext2_sb | 316 | fs/ext2/super.c | unsigned long block = sb->u.ext2_sb.s_es->s_first_data_block; |
ext2_sb | 321 | fs/ext2/super.c | for (i = 0; i < sb->u.ext2_sb.s_groups_count; i++) |
ext2_sb | 324 | fs/ext2/super.c | gdp = (struct ext2_group_desc *) sb->u.ext2_sb.s_group_desc[desc_block++]->b_data; |
ext2_sb | 344 | fs/ext2/super.c | gdp->bg_inode_table + sb->u.ext2_sb.s_itb_per_group >= |
ext2_sb | 374 | fs/ext2/super.c | set_opt (sb->u.ext2_sb.s_mount_opt, CHECK_NORMAL); |
ext2_sb | 376 | fs/ext2/super.c | &sb->u.ext2_sb.s_mount_opt)) { |
ext2_sb | 396 | fs/ext2/super.c | sb->u.ext2_sb.s_es = es; |
ext2_sb | 407 | fs/ext2/super.c | sb->s_blocksize_bits = sb->u.ext2_sb.s_es->s_log_block_size + 10; |
ext2_sb | 424 | fs/ext2/super.c | sb->u.ext2_sb.s_es = es; |
ext2_sb | 434 | fs/ext2/super.c | sb->u.ext2_sb.s_frag_size = EXT2_MIN_FRAG_SIZE << |
ext2_sb | 436 | fs/ext2/super.c | if (sb->u.ext2_sb.s_frag_size) |
ext2_sb | 437 | fs/ext2/super.c | sb->u.ext2_sb.s_frags_per_block = sb->s_blocksize / |
ext2_sb | 438 | fs/ext2/super.c | sb->u.ext2_sb.s_frag_size; |
ext2_sb | 441 | fs/ext2/super.c | sb->u.ext2_sb.s_blocks_per_group = es->s_blocks_per_group; |
ext2_sb | 442 | fs/ext2/super.c | sb->u.ext2_sb.s_frags_per_group = es->s_frags_per_group; |
ext2_sb | 443 | fs/ext2/super.c | sb->u.ext2_sb.s_inodes_per_group = es->s_inodes_per_group; |
ext2_sb | 444 | fs/ext2/super.c | sb->u.ext2_sb.s_inodes_per_block = sb->s_blocksize / |
ext2_sb | 446 | fs/ext2/super.c | sb->u.ext2_sb.s_itb_per_group = sb->u.ext2_sb.s_inodes_per_group / |
ext2_sb | 447 | fs/ext2/super.c | sb->u.ext2_sb.s_inodes_per_block; |
ext2_sb | 448 | fs/ext2/super.c | sb->u.ext2_sb.s_desc_per_block = sb->s_blocksize / |
ext2_sb | 450 | fs/ext2/super.c | sb->u.ext2_sb.s_sbh = bh; |
ext2_sb | 452 | fs/ext2/super.c | sb->u.ext2_sb.s_resuid = resuid; |
ext2_sb | 454 | fs/ext2/super.c | sb->u.ext2_sb.s_resuid = es->s_def_resuid; |
ext2_sb | 456 | fs/ext2/super.c | sb->u.ext2_sb.s_resgid = resgid; |
ext2_sb | 458 | fs/ext2/super.c | sb->u.ext2_sb.s_resgid = es->s_def_resgid; |
ext2_sb | 459 | fs/ext2/super.c | sb->u.ext2_sb.s_mount_state = es->s_state; |
ext2_sb | 460 | fs/ext2/super.c | sb->u.ext2_sb.s_rename_lock = 0; |
ext2_sb | 461 | fs/ext2/super.c | sb->u.ext2_sb.s_rename_wait = NULL; |
ext2_sb | 462 | fs/ext2/super.c | sb->u.ext2_sb.s_addr_per_block_bits = |
ext2_sb | 464 | fs/ext2/super.c | sb->u.ext2_sb.s_inodes_per_block_bits = |
ext2_sb | 466 | fs/ext2/super.c | sb->u.ext2_sb.s_desc_per_block_bits = |
ext2_sb | 490 | fs/ext2/super.c | if (sb->s_blocksize != sb->u.ext2_sb.s_frag_size) { |
ext2_sb | 495 | fs/ext2/super.c | sb->u.ext2_sb.s_frag_size, sb->s_blocksize); |
ext2_sb | 500 | fs/ext2/super.c | if (sb->u.ext2_sb.s_blocks_per_group > sb->s_blocksize * 8) { |
ext2_sb | 505 | fs/ext2/super.c | sb->u.ext2_sb.s_blocks_per_group); |
ext2_sb | 509 | fs/ext2/super.c | if (sb->u.ext2_sb.s_frags_per_group > sb->s_blocksize * 8) { |
ext2_sb | 514 | fs/ext2/super.c | sb->u.ext2_sb.s_frags_per_group); |
ext2_sb | 518 | fs/ext2/super.c | if (sb->u.ext2_sb.s_inodes_per_group > sb->s_blocksize * 8) { |
ext2_sb | 523 | fs/ext2/super.c | sb->u.ext2_sb.s_inodes_per_group); |
ext2_sb | 528 | fs/ext2/super.c | sb->u.ext2_sb.s_groups_count = (es->s_blocks_count - |
ext2_sb | 532 | fs/ext2/super.c | db_count = (sb->u.ext2_sb.s_groups_count + EXT2_DESC_PER_BLOCK(sb) - 1) / |
ext2_sb | 534 | fs/ext2/super.c | sb->u.ext2_sb.s_group_desc = kmalloc (db_count * sizeof (struct buffer_head *), GFP_KERNEL); |
ext2_sb | 535 | fs/ext2/super.c | if (sb->u.ext2_sb.s_group_desc == NULL) { |
ext2_sb | 544 | fs/ext2/super.c | sb->u.ext2_sb.s_group_desc[i] = bread (dev, logic_sb_block + i + 1, |
ext2_sb | 546 | fs/ext2/super.c | if (!sb->u.ext2_sb.s_group_desc[i]) { |
ext2_sb | 550 | fs/ext2/super.c | brelse (sb->u.ext2_sb.s_group_desc[j]); |
ext2_sb | 551 | fs/ext2/super.c | kfree_s (sb->u.ext2_sb.s_group_desc, |
ext2_sb | 563 | fs/ext2/super.c | brelse (sb->u.ext2_sb.s_group_desc[j]); |
ext2_sb | 564 | fs/ext2/super.c | kfree_s (sb->u.ext2_sb.s_group_desc, |
ext2_sb | 572 | fs/ext2/super.c | sb->u.ext2_sb.s_inode_bitmap_number[i] = 0; |
ext2_sb | 573 | fs/ext2/super.c | sb->u.ext2_sb.s_inode_bitmap[i] = NULL; |
ext2_sb | 574 | fs/ext2/super.c | sb->u.ext2_sb.s_block_bitmap_number[i] = 0; |
ext2_sb | 575 | fs/ext2/super.c | sb->u.ext2_sb.s_block_bitmap[i] = NULL; |
ext2_sb | 577 | fs/ext2/super.c | sb->u.ext2_sb.s_loaded_inode_bitmaps = 0; |
ext2_sb | 578 | fs/ext2/super.c | sb->u.ext2_sb.s_loaded_block_bitmaps = 0; |
ext2_sb | 579 | fs/ext2/super.c | sb->u.ext2_sb.s_db_per_group = db_count; |
ext2_sb | 589 | fs/ext2/super.c | if (sb->u.ext2_sb.s_group_desc[i]) |
ext2_sb | 590 | fs/ext2/super.c | brelse (sb->u.ext2_sb.s_group_desc[i]); |
ext2_sb | 591 | fs/ext2/super.c | kfree_s (sb->u.ext2_sb.s_group_desc, |
ext2_sb | 606 | fs/ext2/super.c | mark_buffer_dirty(sb->u.ext2_sb.s_sbh, 1); |
ext2_sb | 626 | fs/ext2/super.c | es = sb->u.ext2_sb.s_es; |
ext2_sb | 642 | fs/ext2/super.c | unsigned short resuid = sb->u.ext2_sb.s_resuid; |
ext2_sb | 643 | fs/ext2/super.c | unsigned short resgid = sb->u.ext2_sb.s_resgid; |
ext2_sb | 655 | fs/ext2/super.c | sb->u.ext2_sb.s_mount_opt = new_mount_opt; |
ext2_sb | 656 | fs/ext2/super.c | sb->u.ext2_sb.s_resuid = resuid; |
ext2_sb | 657 | fs/ext2/super.c | sb->u.ext2_sb.s_resgid = resgid; |
ext2_sb | 658 | fs/ext2/super.c | es = sb->u.ext2_sb.s_es; |
ext2_sb | 663 | fs/ext2/super.c | !(sb->u.ext2_sb.s_mount_state & EXT2_VALID_FS)) |
ext2_sb | 669 | fs/ext2/super.c | es->s_state = sb->u.ext2_sb.s_mount_state; |
ext2_sb | 671 | fs/ext2/super.c | mark_buffer_dirty(sb->u.ext2_sb.s_sbh, 1); |
ext2_sb | 681 | fs/ext2/super.c | sb->u.ext2_sb.s_mount_state = es->s_state; |
ext2_sb | 719 | fs/ext2/super.c | sb->u.ext2_sb.s_db_per_group /* descriptors */ + |
ext2_sb | 722 | fs/ext2/super.c | sb->u.ext2_sb.s_itb_per_group /* inode table */; |
ext2_sb | 723 | fs/ext2/super.c | overhead = sb->u.ext2_sb.s_es->s_first_data_block + |
ext2_sb | 724 | fs/ext2/super.c | sb->u.ext2_sb.s_groups_count * overhead_per_group; |
ext2_sb | 729 | fs/ext2/super.c | tmp.f_blocks = sb->u.ext2_sb.s_es->s_blocks_count - overhead; |
ext2_sb | 731 | fs/ext2/super.c | tmp.f_bavail = tmp.f_bfree - sb->u.ext2_sb.s_es->s_r_blocks_count; |
ext2_sb | 732 | fs/ext2/super.c | if (tmp.f_bfree < sb->u.ext2_sb.s_es->s_r_blocks_count) |
ext2_sb | 734 | 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 | 359 | include/linux/fs.h | struct ext2_sb_info ext2_sb; |