taglinefilesource code
sb700drivers/char/tpqic02.cstatic int send_qic02_data(char sb[], unsigned size, int ignore_ex)
sb710drivers/char/tpqic02.cstat = notify_cmd(sb[i], ignore_ex);
sb47fs/ext/freelists.cvoid ext_free_block(struct super_block * sb, int block)
sb52fs/ext/freelists.cif (!sb) {
sb56fs/ext/freelists.clock_super (sb);
sb57fs/ext/freelists.cif (block < sb->u.ext_sb.s_firstdatazone ||
sb58fs/ext/freelists.cblock >= sb->u.ext_sb.s_nzones) {
sb62fs/ext/freelists.cbh = get_hash_table(sb->s_dev, block, sb->s_blocksize);
sb66fs/ext/freelists.cif (sb->u.ext_sb.s_firstfreeblock)
sb67fs/ext/freelists.cefb = (struct ext_free_block *) sb->u.ext_sb.s_firstfreeblock->b_data;
sb68fs/ext/freelists.cif (!sb->u.ext_sb.s_firstfreeblock || efb->count == 254) {
sb72fs/ext/freelists.cif (sb->u.ext_sb.s_firstfreeblock)
sb73fs/ext/freelists.cbrelse (sb->u.ext_sb.s_firstfreeblock);
sb74fs/ext/freelists.cif (!(sb->u.ext_sb.s_firstfreeblock = bread (sb->s_dev,
sb75fs/ext/freelists.cblock, sb->s_blocksize)))
sb77fs/ext/freelists.cefb = (struct ext_free_block *) sb->u.ext_sb.s_firstfreeblock->b_data;
sb78fs/ext/freelists.cefb->next = sb->u.ext_sb.s_firstfreeblocknumber;
sb80fs/ext/freelists.csb->u.ext_sb.s_firstfreeblocknumber = block;
sb84fs/ext/freelists.csb->u.ext_sb.s_freeblockscount ++;
sb85fs/ext/freelists.csb->s_dirt = 1;
sb86fs/ext/freelists.csb->u.ext_sb.s_firstfreeblock->b_dirt = 1;
sb87fs/ext/freelists.cunlock_super (sb);
sb91fs/ext/freelists.cint ext_new_block(struct super_block * sb)
sb97fs/ext/freelists.cif (!sb) {
sb101fs/ext/freelists.cif (!sb->u.ext_sb.s_firstfreeblock)
sb103fs/ext/freelists.clock_super (sb);
sb104fs/ext/freelists.cefb = (struct ext_free_block *) sb->u.ext_sb.s_firstfreeblock->b_data;
sb107fs/ext/freelists.csb->u.ext_sb.s_firstfreeblock->b_dirt = 1;
sb112fs/ext/freelists.cj = sb->u.ext_sb.s_firstfreeblocknumber;
sb113fs/ext/freelists.csb->u.ext_sb.s_firstfreeblocknumber = efb->next;
sb114fs/ext/freelists.cbrelse (sb->u.ext_sb.s_firstfreeblock);
sb115fs/ext/freelists.cif (!sb->u.ext_sb.s_firstfreeblocknumber) {
sb116fs/ext/freelists.csb->u.ext_sb.s_firstfreeblock = NULL;
sb118fs/ext/freelists.cif (!(sb->u.ext_sb.s_firstfreeblock = bread (sb->s_dev,
sb119fs/ext/freelists.csb->u.ext_sb.s_firstfreeblocknumber,
sb120fs/ext/freelists.csb->s_blocksize)))
sb124fs/ext/freelists.cif (j < sb->u.ext_sb.s_firstdatazone || j > sb->u.ext_sb.s_nzones) {
sb129fs/ext/freelists.csb->u.ext_sb.s_freeblockscount --;
sb130fs/ext/freelists.csb->s_dirt = 1;
sb132fs/ext/freelists.cif (!(bh=getblk(sb->s_dev, j, sb->s_blocksize))) {
sb143fs/ext/freelists.cunlock_super (sb);
sb147fs/ext/freelists.cunsigned long ext_count_free_blocks(struct super_block *sb)
sb154fs/ext/freelists.clock_super (sb);
sb155fs/ext/freelists.cif (!sb->u.ext_sb.s_firstfreeblock)
sb158fs/ext/freelists.cefb = (struct ext_free_block *) sb->u.ext_sb.s_firstfreeblock->b_data;
sb162fs/ext/freelists.cif (!(bh = bread (sb->s_dev, block, sb->s_blocksize))) {
sb174fs/ext/freelists.csb->u.ext_sb.s_freeblockscount, count);
sb175fs/ext/freelists.cunlock_super (sb);
sb178fs/ext/freelists.creturn sb->u.ext_sb.s_freeblockscount;
sb186fs/ext/freelists.cstruct super_block * sb;
sb209fs/ext/freelists.csb = inode->i_sb;
sb213fs/ext/freelists.clock_super (sb);
sb214fs/ext/freelists.cif (ino < 1 || ino > sb->u.ext_sb.s_ninodes) {
sb216fs/ext/freelists.cunlock_super (sb);
sb219fs/ext/freelists.cif (sb->u.ext_sb.s_firstfreeinodeblock)
sb220fs/ext/freelists.cefi = ((struct ext_free_inode *) sb->u.ext_sb.s_firstfreeinodeblock->b_data) +
sb221fs/ext/freelists.c(sb->u.ext_sb.s_firstfreeinodenumber-1)%EXT_INODES_PER_BLOCK;
sb222fs/ext/freelists.cif (!sb->u.ext_sb.s_firstfreeinodeblock || efi->count == 14) {
sb226fs/ext/freelists.cif (sb->u.ext_sb.s_firstfreeinodeblock)
sb227fs/ext/freelists.cbrelse (sb->u.ext_sb.s_firstfreeinodeblock);
sb229fs/ext/freelists.cif (!(bh = bread(dev, block, sb->s_blocksize)))
sb233fs/ext/freelists.cefi->next = sb->u.ext_sb.s_firstfreeinodenumber;
sb235fs/ext/freelists.csb->u.ext_sb.s_firstfreeinodenumber = ino;
sb236fs/ext/freelists.csb->u.ext_sb.s_firstfreeinodeblock = bh;
sb240fs/ext/freelists.csb->u.ext_sb.s_freeinodescount ++;
sb241fs/ext/freelists.csb->s_dirt = 1;
sb242fs/ext/freelists.csb->u.ext_sb.s_firstfreeinodeblock->b_dirt = 1;
sb243fs/ext/freelists.cunlock_super (sb);
sb248fs/ext/freelists.cstruct super_block * sb;
sb256fs/ext/freelists.csb = dir->i_sb;
sb257fs/ext/freelists.cinode->i_sb = sb;
sb258fs/ext/freelists.cinode->i_flags = sb->s_flags;
sb259fs/ext/freelists.cif (!sb->u.ext_sb.s_firstfreeinodeblock)
sb261fs/ext/freelists.clock_super (sb);
sb262fs/ext/freelists.cefi = ((struct ext_free_inode *) sb->u.ext_sb.s_firstfreeinodeblock->b_data) +
sb263fs/ext/freelists.c(sb->u.ext_sb.s_firstfreeinodenumber-1)%EXT_INODES_PER_BLOCK;
sb266fs/ext/freelists.csb->u.ext_sb.s_firstfreeinodeblock->b_dirt = 1;
sb271fs/ext/freelists.cj = sb->u.ext_sb.s_firstfreeinodenumber;
sb272fs/ext/freelists.cif (efi->next > sb->u.ext_sb.s_ninodes) {
sb276fs/ext/freelists.csb->u.ext_sb.s_firstfreeinodenumber = efi->next;
sb278fs/ext/freelists.cbrelse (sb->u.ext_sb.s_firstfreeinodeblock);
sb279fs/ext/freelists.cif (!sb->u.ext_sb.s_firstfreeinodenumber) {
sb280fs/ext/freelists.csb->u.ext_sb.s_firstfreeinodeblock = NULL;
sb282fs/ext/freelists.cif (!(sb->u.ext_sb.s_firstfreeinodeblock =
sb283fs/ext/freelists.cbread(sb->s_dev, block, sb->s_blocksize)))
sb287fs/ext/freelists.csb->u.ext_sb.s_freeinodescount --;
sb288fs/ext/freelists.csb->s_dirt = 1;
sb291fs/ext/freelists.cinode->i_dev = sb->s_dev;
sb303fs/ext/freelists.cunlock_super (sb);
sb307fs/ext/freelists.cunsigned long ext_count_free_inodes(struct super_block *sb)
sb314fs/ext/freelists.clock_super (sb);
sb315fs/ext/freelists.cif (!sb->u.ext_sb.s_firstfreeinodeblock)
sb318fs/ext/freelists.cefi = ((struct ext_free_inode *) sb->u.ext_sb.s_firstfreeinodeblock->b_data) +
sb319fs/ext/freelists.c((sb->u.ext_sb.s_firstfreeinodenumber-1)%EXT_INODES_PER_BLOCK);
sb323fs/ext/freelists.cif (ino < 1 || ino > sb->u.ext_sb.s_ninodes) {
sb325fs/ext/freelists.c(int) sb->u.ext_sb.s_firstfreeinodenumber,ino);
sb329fs/ext/freelists.cif (!(bh = bread (sb->s_dev, block, sb->s_blocksize))) {
sb342fs/ext/freelists.csb->u.ext_sb.s_freeinodescount, count);
sb343fs/ext/freelists.cunlock_super (sb);
sb346fs/ext/freelists.creturn sb->u.ext_sb.s_freeinodescount;
sb33fs/ext/inode.cvoid ext_put_super(struct super_block *sb)
sb36fs/ext/inode.clock_super(sb);
sb37fs/ext/inode.csb->s_dev = 0;
sb38fs/ext/inode.cif (sb->u.ext_sb.s_firstfreeinodeblock)
sb39fs/ext/inode.cbrelse (sb->u.ext_sb.s_firstfreeinodeblock);
sb40fs/ext/inode.cif (sb->u.ext_sb.s_firstfreeblock)
sb41fs/ext/inode.cbrelse (sb->u.ext_sb.s_firstfreeblock);
sb42fs/ext/inode.cunlock_super(sb);
sb128fs/ext/inode.cvoid ext_write_super (struct super_block *sb)
sb133fs/ext/inode.cif (!(bh = bread(sb->s_dev, 1, BLOCK_SIZE))) {
sb138fs/ext/inode.ces->s_firstfreeblock = sb->u.ext_sb.s_firstfreeblocknumber;
sb139fs/ext/inode.ces->s_freeblockscount = sb->u.ext_sb.s_freeblockscount;
sb140fs/ext/inode.ces->s_firstfreeinode = sb->u.ext_sb.s_firstfreeinodenumber;
sb141fs/ext/inode.ces->s_freeinodescount = sb->u.ext_sb.s_freeinodescount;
sb144fs/ext/inode.csb->s_dirt = 0;
sb147fs/ext/inode.cvoid ext_statfs (struct super_block *sb, struct statfs *buf)
sb153fs/ext/inode.cput_fs_long(sb->u.ext_sb.s_nzones << sb->u.ext_sb.s_log_zone_size,
sb155fs/ext/inode.ctmp = ext_count_free_blocks(sb);
sb158fs/ext/inode.cput_fs_long(sb->u.ext_sb.s_ninodes, &buf->f_files);
sb159fs/ext/inode.cput_fs_long(ext_count_free_inodes(sb), &buf->f_ffree);
sb112fs/ext2/balloc.cstatic void read_block_bitmap (struct super_block * sb,
sb121fs/ext2/balloc.cgroup_desc = block_group / EXT2_DESC_PER_BLOCK(sb);
sb122fs/ext2/balloc.cdesc = block_group % EXT2_DESC_PER_BLOCK(sb);
sb123fs/ext2/balloc.cif (!sb->u.ext2_sb.s_group_desc[group_desc])
sb124fs/ext2/balloc.cext2_panic (sb, "read_block_bitmap",
sb129fs/ext2/balloc.csb->u.ext2_sb.s_group_desc[group_desc]->b_data;
sb130fs/ext2/balloc.cbh = bread (sb->s_dev, gdp[desc].bg_block_bitmap, sb->s_blocksize);
sb132fs/ext2/balloc.cext2_panic (sb, "read_block_bitmap",
sb138fs/ext2/balloc.csb->u.ext2_sb.s_block_bitmap_number[bitmap_nr] = block_group;
sb139fs/ext2/balloc.csb->u.ext2_sb.s_block_bitmap[bitmap_nr] = bh;
sb153fs/ext2/balloc.cstatic int load__block_bitmap (struct super_block * sb,
sb160fs/ext2/balloc.cif (block_group >= sb->u.ext2_sb.s_groups_count)
sb161fs/ext2/balloc.cext2_panic (sb, "load_block_bitmap",
sb164fs/ext2/balloc.cblock_group, sb->u.ext2_sb.s_groups_count);
sb166fs/ext2/balloc.cif (sb->u.ext2_sb.s_groups_count <= EXT2_MAX_GROUP_LOADED) {
sb167fs/ext2/balloc.cif (sb->u.ext2_sb.s_block_bitmap[block_group]) {
sb168fs/ext2/balloc.cif (sb->u.ext2_sb.s_block_bitmap_number[block_group] !=
sb170fs/ext2/balloc.cext2_panic (sb, "load_block_bitmap",
sb175fs/ext2/balloc.cread_block_bitmap (sb, block_group, block_group);
sb180fs/ext2/balloc.cfor (i = 0; i < sb->u.ext2_sb.s_loaded_block_bitmaps &&
sb181fs/ext2/balloc.csb->u.ext2_sb.s_block_bitmap_number[i] != block_group; i++)
sb183fs/ext2/balloc.cif (i < sb->u.ext2_sb.s_loaded_block_bitmaps &&
sb184fs/ext2/balloc.csb->u.ext2_sb.s_block_bitmap_number[i] == block_group) {
sb185fs/ext2/balloc.cblock_bitmap_number = sb->u.ext2_sb.s_block_bitmap_number[i];
sb186fs/ext2/balloc.cblock_bitmap = sb->u.ext2_sb.s_block_bitmap[i];
sb188fs/ext2/balloc.csb->u.ext2_sb.s_block_bitmap_number[j] =
sb189fs/ext2/balloc.csb->u.ext2_sb.s_block_bitmap_number[j - 1];
sb190fs/ext2/balloc.csb->u.ext2_sb.s_block_bitmap[j] =
sb191fs/ext2/balloc.csb->u.ext2_sb.s_block_bitmap[j - 1];
sb193fs/ext2/balloc.csb->u.ext2_sb.s_block_bitmap_number[0] = block_bitmap_number;
sb194fs/ext2/balloc.csb->u.ext2_sb.s_block_bitmap[0] = block_bitmap;
sb196fs/ext2/balloc.cif (sb->u.ext2_sb.s_loaded_block_bitmaps < 
sb198fs/ext2/balloc.csb->u.ext2_sb.s_loaded_block_bitmaps++;
sb200fs/ext2/balloc.cbrelse (sb->u.ext2_sb.s_block_bitmap
sb202fs/ext2/balloc.cfor (j = sb->u.ext2_sb.s_loaded_block_bitmaps - 1; j > 0;  j--) {
sb203fs/ext2/balloc.csb->u.ext2_sb.s_block_bitmap_number[j] =
sb204fs/ext2/balloc.csb->u.ext2_sb.s_block_bitmap_number[j - 1];
sb205fs/ext2/balloc.csb->u.ext2_sb.s_block_bitmap[j] =
sb206fs/ext2/balloc.csb->u.ext2_sb.s_block_bitmap[j - 1];
sb208fs/ext2/balloc.cread_block_bitmap (sb, block_group, 0);
sb213fs/ext2/balloc.cstatic inline int load_block_bitmap (struct super_block * sb,
sb216fs/ext2/balloc.cif (sb->u.ext2_sb.s_loaded_block_bitmaps > 0 &&
sb217fs/ext2/balloc.csb->u.ext2_sb.s_block_bitmap_number[0] == block_group)
sb220fs/ext2/balloc.cif (sb->u.ext2_sb.s_groups_count <= EXT2_MAX_GROUP_LOADED && 
sb221fs/ext2/balloc.csb->u.ext2_sb.s_block_bitmap_number[block_group] == block_group &&
sb222fs/ext2/balloc.csb->u.ext2_sb.s_block_bitmap[block_group]) 
sb225fs/ext2/balloc.creturn load__block_bitmap (sb, block_group);
sb228fs/ext2/balloc.cvoid ext2_free_block (struct super_block * sb, unsigned long block)
sb240fs/ext2/balloc.cif (!sb) {
sb244fs/ext2/balloc.clock_super (sb);
sb245fs/ext2/balloc.ces = sb->u.ext2_sb.s_es;
sb247fs/ext2/balloc.cext2_error (sb, "ext2_free_block", "block not in datazone");
sb248fs/ext2/balloc.cunlock_super (sb);
sb255fs/ext2/balloc.cbh = get_hash_table (sb->s_dev, block, sb->s_blocksize);
sb261fs/ext2/balloc.cEXT2_BLOCKS_PER_GROUP(sb);
sb262fs/ext2/balloc.cbit = (block - es->s_first_data_block) % EXT2_BLOCKS_PER_GROUP(sb);
sb263fs/ext2/balloc.cbitmap_nr = load_block_bitmap (sb, block_group);
sb264fs/ext2/balloc.cbh = sb->u.ext2_sb.s_block_bitmap[bitmap_nr];
sb266fs/ext2/balloc.cext2_panic (sb, "ext2_free_block",
sb270fs/ext2/balloc.cext2_warning (sb, "ext2_free_block",
sb273fs/ext2/balloc.cgroup_desc = block_group / EXT2_DESC_PER_BLOCK(sb);
sb274fs/ext2/balloc.cdesc = block_group % EXT2_DESC_PER_BLOCK(sb);
sb275fs/ext2/balloc.cbh2 = sb->u.ext2_sb.s_group_desc[group_desc];
sb277fs/ext2/balloc.cext2_panic (sb, "ext2_free_block",
sb284fs/ext2/balloc.csb->u.ext2_sb.s_sbh->b_dirt = 1;
sb287fs/ext2/balloc.cif (sb->s_flags & MS_SYNC) {
sb291fs/ext2/balloc.csb->s_dirt = 1;
sb292fs/ext2/balloc.cunlock_super (sb);
sb303fs/ext2/balloc.cint ext2_new_block (struct super_block * sb, unsigned long goal)
sb318fs/ext2/balloc.cif (!sb) {
sb322fs/ext2/balloc.clock_super (sb);
sb323fs/ext2/balloc.ces = sb->u.ext2_sb.s_es;
sb325fs/ext2/balloc.cunlock_super (sb);
sb333fs/ext2/balloc.ci = ((goal - es->s_first_data_block) / EXT2_BLOCKS_PER_GROUP(sb));
sb334fs/ext2/balloc.cgroup_desc = i / EXT2_DESC_PER_BLOCK(sb);
sb335fs/ext2/balloc.cdesc = i % EXT2_DESC_PER_BLOCK(sb);
sb337fs/ext2/balloc.csb->u.ext2_sb.s_group_desc[group_desc]->b_data;
sb339fs/ext2/balloc.cext2_panic (sb, "ext2_new_block",
sb344fs/ext2/balloc.cEXT2_BLOCKS_PER_GROUP(sb));
sb349fs/ext2/balloc.cbitmap_nr = load_block_bitmap (sb, i);
sb350fs/ext2/balloc.cbh = sb->u.ext2_sb.s_block_bitmap[bitmap_nr];
sb352fs/ext2/balloc.cext2_panic (sb, "ext2_new_block",
sb354fs/ext2/balloc.cunlock_super (sb);
sb373fs/ext2/balloc.cif (j < EXT2_BLOCKS_PER_GROUP(sb) - 32)
sb383fs/ext2/balloc.cif ((j + k) < EXT2_BLOCKS_PER_GROUP(sb)) {
sb401fs/ext2/balloc.c(EXT2_BLOCKS_PER_GROUP(sb) - j + 7) >> 3);
sb403fs/ext2/balloc.cif (k < EXT2_BLOCKS_PER_GROUP(sb)) {
sb408fs/ext2/balloc.cEXT2_BLOCKS_PER_GROUP(sb),
sb410fs/ext2/balloc.cif (k < EXT2_BLOCKS_PER_GROUP(sb)) {
sb420fs/ext2/balloc.cfor (k = 0; k < sb->u.ext2_sb.s_groups_count; k++) {
sb422fs/ext2/balloc.cif (i >= sb->u.ext2_sb.s_groups_count) {
sb427fs/ext2/balloc.csb->u.ext2_sb.s_group_desc[group_desc]->b_data;
sb431fs/ext2/balloc.cif (desc >= EXT2_DESC_PER_BLOCK(sb)) {
sb435fs/ext2/balloc.csb->u.ext2_sb.s_group_desc[group_desc]
sb440fs/ext2/balloc.cext2_panic (sb, "ext2_new_block",
sb446fs/ext2/balloc.cif (k >= sb->u.ext2_sb.s_groups_count) {
sb447fs/ext2/balloc.cunlock_super (sb);
sb450fs/ext2/balloc.cbitmap_nr = load_block_bitmap (sb, i);
sb451fs/ext2/balloc.cbh = sb->u.ext2_sb.s_block_bitmap[bitmap_nr];
sb453fs/ext2/balloc.cext2_panic (sb, "ext2_new_block",
sb456fs/ext2/balloc.cEXT2_BLOCKS_PER_GROUP(sb) >> 3);
sb458fs/ext2/balloc.cif (j >= EXT2_BLOCKS_PER_GROUP(sb))
sb460fs/ext2/balloc.cEXT2_BLOCKS_PER_GROUP(sb));
sb461fs/ext2/balloc.cif (j >= EXT2_BLOCKS_PER_GROUP(sb)) {
sb462fs/ext2/balloc.cext2_error (sb, "ext2_new_block",
sb464fs/ext2/balloc.cunlock_super (sb);
sb474fs/ext2/balloc.cext2_warning (sb, "ext2_new_block",
sb479fs/ext2/balloc.cif (sb->s_flags & MS_SYNC) {
sb486fs/ext2/balloc.cj += i * EXT2_BLOCKS_PER_GROUP(sb) + es->s_first_data_block;
sb488fs/ext2/balloc.cext2_error (sb, "ext2_new_block",
sb491fs/ext2/balloc.cunlock_super (sb);
sb494fs/ext2/balloc.cif (!(bh = getblk (sb->s_dev, j, sb->s_blocksize))) {
sb495fs/ext2/balloc.cext2_error (sb, "ext2_new_block", "cannot get block %d", j);
sb496fs/ext2/balloc.cunlock_super (sb);
sb499fs/ext2/balloc.cclear_block (bh->b_data, sb->s_blocksize);
sb508fs/ext2/balloc.csb->u.ext2_sb.s_group_desc[group_desc]->b_dirt = 1;
sb510fs/ext2/balloc.csb->u.ext2_sb.s_sbh->b_dirt = 1;
sb511fs/ext2/balloc.csb->s_dirt = 1;
sb512fs/ext2/balloc.cunlock_super (sb);
sb516fs/ext2/balloc.cunsigned long ext2_count_free_blocks (struct super_block * sb)
sb527fs/ext2/balloc.clock_super (sb);
sb528fs/ext2/balloc.ces = sb->u.ext2_sb.s_es;
sb534fs/ext2/balloc.cfor (i = 0; i < sb->u.ext2_sb.s_groups_count; i++) {
sb536fs/ext2/balloc.cif (!sb->u.ext2_sb.s_group_desc[group_desc]) {
sb542fs/ext2/balloc.csb->u.ext2_sb.s_group_desc[group_desc]->b_data;
sb545fs/ext2/balloc.cbitmap_nr = load_block_bitmap (sb, i);
sb546fs/ext2/balloc.cif (sb->u.ext2_sb.s_block_bitmap[bitmap_nr])
sb548fs/ext2/balloc.c(sb->u.ext2_sb.s_block_bitmap[bitmap_nr],
sb549fs/ext2/balloc.csb->s_blocksize);
sb558fs/ext2/balloc.cif (desc == EXT2_DESC_PER_BLOCK(sb)) {
sb566fs/ext2/balloc.cunlock_super (sb);
sb569fs/ext2/balloc.creturn sb->u.ext2_sb.s_es->s_free_blocks_count;
sb573fs/ext2/balloc.cvoid ext2_check_blocks_bitmap (struct super_block * sb)
sb583fs/ext2/balloc.clock_super (sb);
sb584fs/ext2/balloc.ces = sb->u.ext2_sb.s_es;
sb590fs/ext2/balloc.cfor (i = 0; i < sb->u.ext2_sb.s_groups_count; i++) {
sb592fs/ext2/balloc.cif (!sb->u.ext2_sb.s_group_desc[group_desc]) {
sb593fs/ext2/balloc.cext2_error (sb, "ext2_check_blocks_bitmap",
sb599fs/ext2/balloc.csb->u.ext2_sb.s_group_desc[group_desc]->b_data;
sb602fs/ext2/balloc.cbitmap_nr = load_block_bitmap (sb, i);
sb603fs/ext2/balloc.cif (sb->u.ext2_sb.s_block_bitmap[bitmap_nr])
sb605fs/ext2/balloc.c(sb->u.ext2_sb.s_block_bitmap[bitmap_nr],
sb606fs/ext2/balloc.csb->s_blocksize);
sb609fs/ext2/balloc.cext2_error (sb, "ext2_check_blocks_bitmap",
sb613fs/ext2/balloc.cext2_error (sb, "ext2_check_blocks_bitmap",
sb619fs/ext2/balloc.cif (desc == EXT2_DESC_PER_BLOCK(sb)) {
sb626fs/ext2/balloc.cext2_error (sb, "ext2_check_blocks_bitmap",
sb630fs/ext2/balloc.cunlock_super (sb);
sb99fs/ext2/dir.cstruct super_block * sb;
sb104fs/ext2/dir.csb = inode->i_sb;
sb106fs/ext2/dir.coffset = filp->f_pos & (sb->s_blocksize - 1);
sb107fs/ext2/dir.cbh = ext2_bread (inode, (filp->f_pos) >> EXT2_BLOCK_SIZE_BITS(sb),
sb110fs/ext2/dir.cfilp->f_pos += sb->s_blocksize - offset;
sb114fs/ext2/dir.cwhile (offset < sb->s_blocksize && filp->f_pos < inode->i_size) {
sb82fs/ext2/file.cstruct super_block * sb;
sb90fs/ext2/file.csb = inode->i_sb;
sb92fs/ext2/file.cext2_warning (sb, "ext2_file_read", "mode = %07o",
sb107fs/ext2/file.cblock = offset >> EXT2_BLOCK_SIZE_BITS(sb);
sb108fs/ext2/file.coffset &= (sb->s_blocksize - 1);
sb109fs/ext2/file.csize = (size + sb->s_blocksize - 1) >> EXT2_BLOCK_SIZE_BITS(sb);
sb110fs/ext2/file.cblocks = (left + offset + sb->s_blocksize - 1) >> EXT2_BLOCK_SIZE_BITS(sb);
sb114fs/ext2/file.c(EXT2_BLOCK_SIZE_BITS(sb) - 9);
sb167fs/ext2/file.cif (left < sb->s_blocksize - offset)
sb170fs/ext2/file.cchars = sb->s_blocksize - offset;
sb212fs/ext2/file.cstruct super_block * sb;
sb219fs/ext2/file.csb = inode->i_sb;
sb221fs/ext2/file.cext2_warning (sb, "ext2_file_write", "mode = %07o\n",
sb235fs/ext2/file.cbh = ext2_getblk (inode, pos / sb->s_blocksize, 1, &err);
sb241fs/ext2/file.cc = sb->s_blocksize - (pos % sb->s_blocksize);
sb244fs/ext2/file.cif (c != sb->s_blocksize && !bh->b_uptodate) {
sb254fs/ext2/file.cp = (pos % sb->s_blocksize) + bh->b_data;
sb62fs/ext2/ialloc.cstatic void read_inode_bitmap (struct super_block * sb,
sb71fs/ext2/ialloc.cgroup_desc = block_group / EXT2_DESC_PER_BLOCK(sb);
sb72fs/ext2/ialloc.cdesc = block_group % EXT2_DESC_PER_BLOCK(sb);
sb73fs/ext2/ialloc.cif (!sb->u.ext2_sb.s_group_desc[group_desc])
sb74fs/ext2/ialloc.cext2_panic (sb, "read_inode_bitmap",
sb78fs/ext2/ialloc.cgdp = (struct ext2_group_desc *) sb->u.ext2_sb.s_group_desc[group_desc]->b_data;
sb79fs/ext2/ialloc.cbh = bread (sb->s_dev, gdp[desc].bg_inode_bitmap, sb->s_blocksize);
sb81fs/ext2/ialloc.cext2_panic (sb, "read_inode_bitmap", "Cannot read inode bitmap\n"
sb84fs/ext2/ialloc.csb->u.ext2_sb.s_inode_bitmap_number[bitmap_nr] = block_group;
sb85fs/ext2/ialloc.csb->u.ext2_sb.s_inode_bitmap[bitmap_nr] = bh;
sb99fs/ext2/ialloc.cstatic int load_inode_bitmap (struct super_block * sb,
sb106fs/ext2/ialloc.cif (block_group >= sb->u.ext2_sb.s_groups_count)
sb107fs/ext2/ialloc.cext2_panic (sb, "load_inode_bitmap",
sb110fs/ext2/ialloc.cblock_group, sb->u.ext2_sb.s_groups_count);
sb111fs/ext2/ialloc.cif (sb->u.ext2_sb.s_loaded_inode_bitmaps > 0 &&
sb112fs/ext2/ialloc.csb->u.ext2_sb.s_inode_bitmap_number[0] == block_group)
sb114fs/ext2/ialloc.cif (sb->u.ext2_sb.s_groups_count <= EXT2_MAX_GROUP_LOADED) {
sb115fs/ext2/ialloc.cif (sb->u.ext2_sb.s_inode_bitmap[block_group]) {
sb116fs/ext2/ialloc.cif (sb->u.ext2_sb.s_inode_bitmap_number[block_group] != block_group)
sb117fs/ext2/ialloc.cext2_panic (sb, "load_inode_bitmap",
sb122fs/ext2/ialloc.cread_inode_bitmap (sb, block_group, block_group);
sb127fs/ext2/ialloc.cfor (i = 0; i < sb->u.ext2_sb.s_loaded_inode_bitmaps &&
sb128fs/ext2/ialloc.csb->u.ext2_sb.s_inode_bitmap_number[i] != block_group;
sb131fs/ext2/ialloc.cif (i < sb->u.ext2_sb.s_loaded_inode_bitmaps &&
sb132fs/ext2/ialloc.csb->u.ext2_sb.s_inode_bitmap_number[i] == block_group) {
sb133fs/ext2/ialloc.cinode_bitmap_number = sb->u.ext2_sb.s_inode_bitmap_number[i];
sb134fs/ext2/ialloc.cinode_bitmap = sb->u.ext2_sb.s_inode_bitmap[i];
sb136fs/ext2/ialloc.csb->u.ext2_sb.s_inode_bitmap_number[j] =
sb137fs/ext2/ialloc.csb->u.ext2_sb.s_inode_bitmap_number[j - 1];
sb138fs/ext2/ialloc.csb->u.ext2_sb.s_inode_bitmap[j] =
sb139fs/ext2/ialloc.csb->u.ext2_sb.s_inode_bitmap[j - 1];
sb141fs/ext2/ialloc.csb->u.ext2_sb.s_inode_bitmap_number[0] = inode_bitmap_number;
sb142fs/ext2/ialloc.csb->u.ext2_sb.s_inode_bitmap[0] = inode_bitmap;
sb144fs/ext2/ialloc.cif (sb->u.ext2_sb.s_loaded_inode_bitmaps < EXT2_MAX_GROUP_LOADED)
sb145fs/ext2/ialloc.csb->u.ext2_sb.s_loaded_inode_bitmaps++;
sb147fs/ext2/ialloc.cbrelse (sb->u.ext2_sb.s_inode_bitmap[EXT2_MAX_GROUP_LOADED - 1]);
sb148fs/ext2/ialloc.cfor (j = sb->u.ext2_sb.s_loaded_inode_bitmaps - 1; j > 0; j--) {
sb149fs/ext2/ialloc.csb->u.ext2_sb.s_inode_bitmap_number[j] =
sb150fs/ext2/ialloc.csb->u.ext2_sb.s_inode_bitmap_number[j - 1];
sb151fs/ext2/ialloc.csb->u.ext2_sb.s_inode_bitmap[j] =
sb152fs/ext2/ialloc.csb->u.ext2_sb.s_inode_bitmap[j - 1];
sb154fs/ext2/ialloc.cread_inode_bitmap (sb, block_group, 0);
sb196fs/ext2/ialloc.cstruct super_block * sb;
sb230fs/ext2/ialloc.csb = inode->i_sb;
sb231fs/ext2/ialloc.clock_super (sb);
sb233fs/ext2/ialloc.cinode->i_ino > sb->u.ext2_sb.s_es->s_inodes_count) {
sb234fs/ext2/ialloc.cext2_error (sb, "free_inode",
sb236fs/ext2/ialloc.cunlock_super (sb);
sb239fs/ext2/ialloc.ces = sb->u.ext2_sb.s_es;
sb240fs/ext2/ialloc.cblock_group = (inode->i_ino - 1) / EXT2_INODES_PER_GROUP(sb);
sb241fs/ext2/ialloc.cbit = (inode->i_ino - 1) % EXT2_INODES_PER_GROUP(sb);
sb242fs/ext2/ialloc.cbitmap_nr = load_inode_bitmap (sb, block_group);
sb243fs/ext2/ialloc.cbh = sb->u.ext2_sb.s_inode_bitmap[bitmap_nr];
sb245fs/ext2/ialloc.cext2_panic (sb, "ext2_free_inode",
sb248fs/ext2/ialloc.cext2_warning (sb, "ext2_free_inode",
sb251fs/ext2/ialloc.cgroup_desc = block_group / EXT2_DESC_PER_BLOCK(sb);
sb252fs/ext2/ialloc.cdesc = block_group % EXT2_DESC_PER_BLOCK(sb);
sb253fs/ext2/ialloc.cbh2 = sb->u.ext2_sb.s_group_desc[group_desc];
sb255fs/ext2/ialloc.cext2_panic (sb, "ext2_free_inode",
sb264fs/ext2/ialloc.csb->u.ext2_sb.s_sbh->b_dirt = 1;
sb268fs/ext2/ialloc.cif (sb->s_flags & MS_SYNC) {
sb273fs/ext2/ialloc.csb->s_dirt = 1;
sb275fs/ext2/ialloc.cunlock_super (sb);
sb313fs/ext2/ialloc.cstatic struct ext2_group_desc * get_group_desc (struct super_block * sb,
sb318fs/ext2/ialloc.cif (group >= sb->u.ext2_sb.s_groups_count || group < 0 )
sb319fs/ext2/ialloc.cext2_panic (sb, "get_group_desc", "Invalid group %d", group);
sb320fs/ext2/ialloc.cif (!sb->u.ext2_sb.s_group_desc[group / EXT2_DESC_PER_BLOCK(sb)])
sb321fs/ext2/ialloc.cext2_panic (sb, "get_group_desc",
sb324fs/ext2/ialloc.csb->u.ext2_sb.s_group_desc[group / EXT2_DESC_PER_BLOCK(sb)]
sb326fs/ext2/ialloc.creturn gdp + (group % EXT2_DESC_PER_BLOCK(sb));
sb341fs/ext2/ialloc.cstruct super_block * sb;
sb351fs/ext2/ialloc.csb = dir->i_sb;
sb352fs/ext2/ialloc.cinode->i_sb = sb;
sb353fs/ext2/ialloc.cinode->i_flags = sb->s_flags;
sb354fs/ext2/ialloc.clock_super (sb);
sb355fs/ext2/ialloc.ces = sb->u.ext2_sb.s_es;
sb361fs/ext2/ialloc.csb->u.ext2_sb.s_groups_count;
sb376fs/ext2/ialloc.cfor (j = 0; j < sb->u.ext2_sb.s_groups_count; j++) {
sb377fs/ext2/ialloc.ctmp = get_group_desc (sb, j);
sb393fs/ext2/ialloc.ctmp = get_group_desc (sb, i);
sb398fs/ext2/ialloc.cfor (j = 1; j < sb->u.ext2_sb.s_groups_count; j <<= 1) {
sb400fs/ext2/ialloc.cif (i >= sb->u.ext2_sb.s_groups_count)
sb401fs/ext2/ialloc.ci -= sb->u.ext2_sb.s_groups_count;
sb402fs/ext2/ialloc.ctmp = get_group_desc (sb, i);
sb412fs/ext2/ialloc.cfor (j = 2; j < sb->u.ext2_sb.s_groups_count; j++) {
sb413fs/ext2/ialloc.cif (++i >= sb->u.ext2_sb.s_groups_count)
sb415fs/ext2/ialloc.ctmp = get_group_desc (sb,i);
sb425fs/ext2/ialloc.cunlock_super (sb);
sb429fs/ext2/ialloc.cbitmap_nr = load_inode_bitmap (sb, i);
sb430fs/ext2/ialloc.cbh = sb->u.ext2_sb.s_inode_bitmap[bitmap_nr];
sb432fs/ext2/ialloc.cext2_panic (sb, "ext2_new_inode",
sb435fs/ext2/ialloc.cEXT2_INODES_PER_GROUP(sb))) <
sb436fs/ext2/ialloc.cEXT2_INODES_PER_GROUP(sb)) {
sb438fs/ext2/ialloc.cext2_warning (sb, "ext2_new_inode",
sb443fs/ext2/ialloc.cif (sb->s_flags & MS_SYNC) {
sb449fs/ext2/ialloc.cj += i * EXT2_INODES_PER_GROUP(sb) + 1;
sb451fs/ext2/ialloc.cext2_error (sb, "ext2_new_inode",
sb454fs/ext2/ialloc.cunlock_super (sb);
sb461fs/ext2/ialloc.csb->u.ext2_sb.s_group_desc[i / EXT2_DESC_PER_BLOCK(sb)]->b_dirt = 1;
sb463fs/ext2/ialloc.csb->u.ext2_sb.s_sbh->b_dirt = 1;
sb464fs/ext2/ialloc.csb->s_dirt = 1;
sb466fs/ext2/ialloc.cinode->i_sb = sb;
sb469fs/ext2/ialloc.cinode->i_dev = sb->s_dev;
sb474fs/ext2/ialloc.cinode->i_blksize = sb->s_blocksize;
sb493fs/ext2/ialloc.cunlock_super (sb);
sb497fs/ext2/ialloc.cunsigned long ext2_count_free_inodes (struct super_block * sb)
sb508fs/ext2/ialloc.clock_super (sb);
sb509fs/ext2/ialloc.ces = sb->u.ext2_sb.s_es;
sb515fs/ext2/ialloc.cfor (i = 0; i < sb->u.ext2_sb.s_groups_count; i++) {
sb517fs/ext2/ialloc.cif (!sb->u.ext2_sb.s_group_desc[group_desc]) {
sb521fs/ext2/ialloc.cgdp = (struct ext2_group_desc *) sb->u.ext2_sb.s_group_desc[group_desc]->b_data;
sb524fs/ext2/ialloc.cbitmap_nr = load_inode_bitmap (sb, i);
sb525fs/ext2/ialloc.cif (sb->u.ext2_sb.s_inode_bitmap[bitmap_nr])
sb526fs/ext2/ialloc.cx = ext2_count_free (sb->u.ext2_sb.s_inode_bitmap[bitmap_nr],
sb527fs/ext2/ialloc.cEXT2_INODES_PER_GROUP(sb) / 8);
sb537fs/ext2/ialloc.cif (desc == EXT2_DESC_PER_BLOCK(sb)) {
sb545fs/ext2/ialloc.cunlock_super (sb);
sb548fs/ext2/ialloc.creturn sb->u.ext2_sb.s_es->s_free_inodes_count;
sb552fs/ext2/ialloc.cvoid ext2_check_inodes_bitmap (struct super_block * sb)
sb562fs/ext2/ialloc.clock_super (sb);
sb563fs/ext2/ialloc.ces = sb->u.ext2_sb.s_es;
sb569fs/ext2/ialloc.cfor (i = 0; i < sb->u.ext2_sb.s_groups_count; i++) {
sb571fs/ext2/ialloc.cif (!sb->u.ext2_sb.s_group_desc[group_desc]) {
sb572fs/ext2/ialloc.cext2_error (sb, "ext2_check_inodes_bitmap",
sb577fs/ext2/ialloc.cgdp = (struct ext2_group_desc *) sb->u.ext2_sb.s_group_desc[group_desc]->b_data;
sb580fs/ext2/ialloc.cbitmap_nr = load_inode_bitmap (sb, i);
sb581fs/ext2/ialloc.cif (sb->u.ext2_sb.s_inode_bitmap[bitmap_nr])
sb582fs/ext2/ialloc.cx = ext2_count_free (sb->u.ext2_sb.s_inode_bitmap[bitmap_nr],
sb583fs/ext2/ialloc.cEXT2_INODES_PER_GROUP(sb) / 8);
sb586fs/ext2/ialloc.cext2_error (sb, "ext2_check_inodes_bitmap",
sb591fs/ext2/ialloc.cext2_error (sb, "ext2_check_inodes_bitmap",
sb597fs/ext2/ialloc.cif (desc == EXT2_DESC_PER_BLOCK(sb)) {
sb604fs/ext2/ialloc.cext2_error (sb, "ext2_check_inodes_bitmap",
sb608fs/ext2/ialloc.cunlock_super (sb);
sb72fs/ext2/namei.cstruct super_block * sb;
sb78fs/ext2/namei.csb = dir->i_sb;
sb92fs/ext2/namei.cif (!bh || (char *)de >= sb->s_blocksize + bh->b_data) {
sb94fs/ext2/namei.cbh = ext2_bread (dir, offset >> EXT2_BLOCK_SIZE_BITS(sb), 0, &err);
sb96fs/ext2/namei.coffset += sb->s_blocksize;
sb174fs/ext2/namei.cstruct super_block * sb;
sb180fs/ext2/namei.csb = dir->i_sb;
sb205fs/ext2/namei.cif ((char *)de >= sb->s_blocksize + bh->b_data) {
sb208fs/ext2/namei.cbh = ext2_bread (dir, offset >> EXT2_BLOCK_SIZE_BITS(sb), 1, err);
sb221fs/ext2/namei.cde->rec_len = sb->s_blocksize;
sb222fs/ext2/namei.cdir->i_size = offset + sb->s_blocksize;
sb521fs/ext2/namei.cstruct super_block * sb;
sb524fs/ext2/namei.csb = inode->i_sb;
sb542fs/ext2/namei.cif ((void *) de >= (void *) (bh->b_data + sb->s_blocksize)) {
sb544fs/ext2/namei.cbh = ext2_bread (inode, offset >> EXT2_BLOCK_SIZE_BITS(sb), 1, &err);
sb546fs/ext2/namei.coffset += sb->s_blocksize;
sb29fs/ext2/super.cvoid ext2_error (struct super_block * sb, const char * function,
sb35fs/ext2/super.cif (!(sb->s_flags & MS_RDONLY)) {
sb36fs/ext2/super.csb->u.ext2_sb.s_mount_state |= EXT2_ERROR_FS;
sb37fs/ext2/super.csb->u.ext2_sb.s_es->s_state |= EXT2_ERROR_FS;
sb38fs/ext2/super.csb->u.ext2_sb.s_sbh->b_dirt = 1;
sb39fs/ext2/super.csb->s_dirt = 1;
sb49fs/ext2/super.cMAJOR(sb->s_dev), MINOR(sb->s_dev), function, buf);
sb52fs/ext2/super.cvolatile void ext2_panic (struct super_block * sb, const char * function,
sb58fs/ext2/super.cif (!(sb->s_flags & MS_RDONLY)) {
sb59fs/ext2/super.csb->u.ext2_sb.s_mount_state |= EXT2_ERROR_FS;
sb60fs/ext2/super.csb->u.ext2_sb.s_es->s_state |= EXT2_ERROR_FS;
sb61fs/ext2/super.csb->u.ext2_sb.s_sbh->b_dirt = 1;
sb62fs/ext2/super.csb->s_dirt = 1;
sb68fs/ext2/super.cMAJOR(sb->s_dev), MINOR(sb->s_dev), function, buf);
sb71fs/ext2/super.cvoid ext2_warning (struct super_block * sb, const char * function,
sb85fs/ext2/super.cMAJOR(sb->s_dev), MINOR(sb->s_dev), function, buf);
sb88fs/ext2/super.cvoid ext2_put_super (struct super_block * sb)
sb92fs/ext2/super.clock_super (sb);
sb93fs/ext2/super.cif (!(sb->s_flags & MS_RDONLY)) {
sb94fs/ext2/super.csb->u.ext2_sb.s_es->s_state = sb->u.ext2_sb.s_mount_state;
sb95fs/ext2/super.csb->u.ext2_sb.s_sbh->b_dirt = 1;
sb98fs/ext2/super.cext2_dcache_invalidate (sb->s_dev);
sb100fs/ext2/super.csb->s_dev = 0;
sb102fs/ext2/super.cif (sb->u.ext2_sb.s_group_desc[i])
sb103fs/ext2/super.cbrelse (sb->u.ext2_sb.s_group_desc[i]);
sb105fs/ext2/super.cif (sb->u.ext2_sb.s_inode_bitmap[i])
sb106fs/ext2/super.cbrelse (sb->u.ext2_sb.s_inode_bitmap[i]);
sb108fs/ext2/super.cif (sb->u.ext2_sb.s_block_bitmap[i])
sb109fs/ext2/super.cbrelse (sb->u.ext2_sb.s_block_bitmap[i]);
sb110fs/ext2/super.cbrelse (sb->u.ext2_sb.s_sbh);
sb111fs/ext2/super.cunlock_super (sb);
sb128fs/ext2/super.cstatic int convert_pre_02b_fs (struct super_block * sb,
sb139fs/ext2/super.cbh2 = bread (sb->s_dev, 2, BLOCK_SIZE);
sb145fs/ext2/super.cgroups_count = (sb->u.ext2_sb.s_blocks_count - 
sb146fs/ext2/super.csb->u.ext2_sb.s_first_data_block +
sb147fs/ext2/super.c(EXT2_BLOCK_SIZE(sb) * 8) - 1) /
sb148fs/ext2/super.c(EXT2_BLOCK_SIZE(sb) * 8);
sb162fs/ext2/super.csb->s_magic = EXT2_SUPER_MAGIC;
sb435fs/ext2/super.cstatic void ext2_commit_super (struct super_block * sb,
sb439fs/ext2/super.csb->u.ext2_sb.s_sbh->b_dirt = 1;
sb440fs/ext2/super.csb->s_dirt = 0;
sb454fs/ext2/super.cvoid ext2_write_super (struct super_block * sb)
sb458fs/ext2/super.cif (!(sb->s_flags & MS_RDONLY)) {
sb459fs/ext2/super.ces = sb->u.ext2_sb.s_es;
sb467fs/ext2/super.cext2_commit_super (sb, es);
sb469fs/ext2/super.csb->s_dirt = 0;
sb472fs/ext2/super.cint ext2_remount (struct super_block * sb, int * flags)
sb476fs/ext2/super.ces = sb->u.ext2_sb.s_es;
sb477fs/ext2/super.cif ((*flags & MS_RDONLY) == (sb->s_flags & MS_RDONLY))
sb481fs/ext2/super.c!(sb->u.ext2_sb.s_mount_state & EXT2_VALID_FS))
sb486fs/ext2/super.ces->s_state = sb->u.ext2_sb.s_mount_state;
sb488fs/ext2/super.csb->u.ext2_sb.s_sbh->b_dirt = 1;
sb489fs/ext2/super.csb->s_dirt = 1;
sb490fs/ext2/super.cext2_commit_super (sb, es);
sb496fs/ext2/super.csb->u.ext2_sb.s_mount_state = es->s_state;
sb502fs/ext2/super.csb->u.ext2_sb.s_sbh->b_dirt = 1;
sb503fs/ext2/super.csb->s_dirt = 1;
sb504fs/ext2/super.cif (!(sb->u.ext2_sb.s_mount_state & EXT2_VALID_FS))
sb507fs/ext2/super.celse if ((sb->u.ext2_sb.s_mount_state & EXT2_ERROR_FS))
sb517fs/ext2/super.cvoid ext2_statfs (struct super_block * sb, struct statfs * buf)
sb522fs/ext2/super.cput_fs_long (sb->s_blocksize, &buf->f_bsize);
sb523fs/ext2/super.cput_fs_long (sb->u.ext2_sb.s_es->s_blocks_count, &buf->f_blocks);
sb524fs/ext2/super.ctmp = ext2_count_free_blocks (sb);
sb526fs/ext2/super.cif (tmp >= sb->u.ext2_sb.s_es->s_r_blocks_count)
sb527fs/ext2/super.cput_fs_long (tmp - sb->u.ext2_sb.s_es->s_r_blocks_count,
sb531fs/ext2/super.cput_fs_long (sb->u.ext2_sb.s_es->s_inodes_count, &buf->f_files);
sb532fs/ext2/super.cput_fs_long (ext2_count_free_inodes (sb), &buf->f_ffree);
sb417fs/inode.cstruct inode * iget(struct super_block * sb,int nr)
sb419fs/inode.creturn __iget(sb,nr,1);
sb422fs/inode.cstruct inode * __iget(struct super_block * sb, int nr, int crossmntp)
sb426fs/inode.cif (!sb)
sb430fs/inode.cinode = *(hash(sb->s_dev,nr));
sb432fs/inode.cif (inode->i_dev != sb->s_dev || inode->i_ino != nr) {
sb437fs/inode.cif (inode->i_dev != sb->s_dev || inode->i_ino != nr)
sb458fs/inode.cinode->i_sb = sb;
sb459fs/inode.cinode->i_dev = sb->s_dev;
sb461fs/inode.cinode->i_flags = sb->s_flags;
sb39fs/isofs/inode.cvoid isofs_put_super(struct super_block *sb)
sb41fs/isofs/inode.clock_super(sb);
sb47fs/isofs/inode.csb->s_dev = 0;
sb48fs/isofs/inode.cunlock_super(sb);
sb299fs/isofs/inode.cvoid isofs_statfs (struct super_block *sb, struct statfs *buf)
sb303fs/isofs/inode.cput_fs_long(sb->u.isofs_sb.s_nzones, &buf->f_blocks);
sb306fs/isofs/inode.cput_fs_long(sb->u.isofs_sb.s_ninodes, &buf->f_files);
sb68fs/minix/bitmap.cvoid minix_free_block(struct super_block * sb, int block)
sb73fs/minix/bitmap.cif (!sb) {
sb77fs/minix/bitmap.cif (block < sb->u.minix_sb.s_firstdatazone ||
sb78fs/minix/bitmap.cblock >= sb->u.minix_sb.s_nzones) {
sb82fs/minix/bitmap.cbh = get_hash_table(sb->s_dev,block,BLOCK_SIZE);
sb86fs/minix/bitmap.czone = block - sb->u.minix_sb.s_firstdatazone + 1;
sb89fs/minix/bitmap.cbh = sb->u.minix_sb.s_zmap[zone];
sb95fs/minix/bitmap.cprintk("free_block (%04x:%d): bit already cleared\n",sb->s_dev,block);
sb100fs/minix/bitmap.cint minix_new_block(struct super_block * sb)
sb105fs/minix/bitmap.cif (!sb) {
sb112fs/minix/bitmap.cif ((bh=sb->u.minix_sb.s_zmap[i]) != NULL)
sb122fs/minix/bitmap.cj += i*8192 + sb->u.minix_sb.s_firstdatazone-1;
sb123fs/minix/bitmap.cif (j < sb->u.minix_sb.s_firstdatazone ||
sb124fs/minix/bitmap.cj >= sb->u.minix_sb.s_nzones)
sb126fs/minix/bitmap.cif (!(bh = getblk(sb->s_dev,j,BLOCK_SIZE))) {
sb137fs/minix/bitmap.cunsigned long minix_count_free_blocks(struct super_block *sb)
sb139fs/minix/bitmap.creturn (sb->u.minix_sb.s_nzones - count_used(sb->u.minix_sb.s_zmap,sb->u.minix_sb.s_zmap_blocks,sb->u.minix_sb.s_nzones))
sb140fs/minix/bitmap.c<< sb->u.minix_sb.s_log_zone_size;
sb183fs/minix/bitmap.cstruct super_block * sb;
sb190fs/minix/bitmap.csb = dir->i_sb;
sb191fs/minix/bitmap.cinode->i_sb = sb;
sb215fs/minix/bitmap.cinode->i_dev = sb->s_dev;
sb227fs/minix/bitmap.cunsigned long minix_count_free_inodes(struct super_block *sb)
sb229fs/minix/bitmap.creturn sb->u.minix_sb.s_ninodes - count_used(sb->u.minix_sb.s_imap,sb->u.minix_sb.s_imap_blocks,sb->u.minix_sb.s_ninodes);
sb28fs/minix/inode.cvoid minix_put_super(struct super_block *sb)
sb32fs/minix/inode.clock_super(sb);
sb33fs/minix/inode.csb->s_dev = 0;
sb35fs/minix/inode.cbrelse(sb->u.minix_sb.s_imap[i]);
sb37fs/minix/inode.cbrelse(sb->u.minix_sb.s_zmap[i]);
sb38fs/minix/inode.cunlock_super(sb);
sb135fs/minix/inode.cvoid minix_statfs(struct super_block *sb, struct statfs *buf)
sb141fs/minix/inode.ctmp = sb->u.minix_sb.s_nzones - sb->u.minix_sb.s_firstdatazone;
sb142fs/minix/inode.ctmp <<= sb->u.minix_sb.s_log_zone_size;
sb144fs/minix/inode.ctmp = minix_count_free_blocks(sb);
sb147fs/minix/inode.cput_fs_long(sb->u.minix_sb.s_ninodes, &buf->f_files);
sb148fs/minix/inode.cput_fs_long(minix_count_free_inodes(sb), &buf->f_ffree);
sb149fs/minix/inode.cput_fs_long(sb->u.minix_sb.s_namelen, &buf->f_namelen);
sb18fs/msdos/fat.cint fat_access(struct super_block *sb,int nr,int new_value)
sb25fs/msdos/fat.cif ((unsigned) (nr-2) >= MSDOS_SB(sb)->clusters) return 0;
sb26fs/msdos/fat.cif (MSDOS_SB(sb)->fat_bits == 16) first = last = nr*2;
sb31fs/msdos/fat.cif (!(bh = msdos_sread(sb->s_dev,MSDOS_SB(sb)->fat_start+(first >>
sb41fs/msdos/fat.cif (!(bh2 = msdos_sread(sb->s_dev,MSDOS_SB(sb)->fat_start+(last
sb48fs/msdos/fat.cif (MSDOS_SB(sb)->fat_bits == 16) {
sb63fs/msdos/fat.cif (MSDOS_SB(sb)->fat_bits == 16)
sb78fs/msdos/fat.cfor (copy = 1; copy < MSDOS_SB(sb)->fats; copy++) {
sb79fs/msdos/fat.cif (!(c_bh = msdos_sread(sb->s_dev,MSDOS_SB(sb)->
sb80fs/msdos/fat.cfat_start+(first >> SECTOR_BITS)+MSDOS_SB(sb)->
sb85fs/msdos/fat.cif (!(c_bh2 = msdos_sread(sb->s_dev,
sb86fs/msdos/fat.cMSDOS_SB(sb)->fat_start+(first >>
sb87fs/msdos/fat.cSECTOR_BITS)+MSDOS_SB(sb)->fat_length*copy
sb240fs/msdos/fat.cstruct msdos_sb_info *sb;
sb243fs/msdos/fat.csb = MSDOS_SB(inode->i_sb);
sb246fs/msdos/fat.cif (sector >= sb->dir_entries >> MSDOS_DPS_BITS) return 0;
sb247fs/msdos/fat.creturn sector+sb->dir_start;
sb249fs/msdos/fat.ccluster = sector/sb->cluster_size;
sb250fs/msdos/fat.coffset = sector % sb->cluster_size;
sb252fs/msdos/fat.creturn (cluster-2)*sb->cluster_size+sb->data_start+offset;
sb22fs/msdos/inode.cstruct super_block *sb;
sb31fs/msdos/inode.csb = inode->i_sb;
sb38fs/msdos/inode.cfs_panic(sb,"...");
sb47fs/msdos/inode.cvoid msdos_put_super(struct super_block *sb)
sb49fs/msdos/inode.ccache_inval_dev(sb->s_dev);
sb50fs/msdos/inode.clock_super(sb);
sb51fs/msdos/inode.csb->s_dev = 0;
sb52fs/msdos/inode.cunlock_super(sb);
sb262fs/msdos/inode.cvoid msdos_statfs(struct super_block *sb,struct statfs *buf)
sb266fs/msdos/inode.cput_fs_long(sb->s_magic,&buf->f_type);
sb267fs/msdos/inode.cput_fs_long(MSDOS_SB(sb)->cluster_size*SECTOR_SIZE,&buf->f_bsize);
sb268fs/msdos/inode.cput_fs_long(MSDOS_SB(sb)->clusters,&buf->f_blocks);
sb269fs/msdos/inode.clock_fat(sb);
sb270fs/msdos/inode.cif (MSDOS_SB(sb)->free_clusters != -1)
sb271fs/msdos/inode.cfree = MSDOS_SB(sb)->free_clusters;
sb274fs/msdos/inode.cfor (nr = 2; nr < MSDOS_SB(sb)->clusters+2; nr++)
sb275fs/msdos/inode.cif (!fat_access(sb,nr,-1)) free++;
sb276fs/msdos/inode.cMSDOS_SB(sb)->free_clusters = free;
sb278fs/msdos/inode.cunlock_fat(sb);
sb289fs/msdos/inode.cstruct msdos_sb_info *sb;
sb292fs/msdos/inode.csb = MSDOS_SB(inode->i_sb);
sb293fs/msdos/inode.cif ((sb->cluster_size & 1) || (sb->data_start & 1)) return 0;
sb295fs/msdos/inode.cif (sb->dir_start & 1) return 0;
sb296fs/msdos/inode.creturn (sb->dir_start >> 1)+block;
sb298fs/msdos/inode.ccluster = (block*2)/sb->cluster_size;
sb299fs/msdos/inode.coffset = (block*2) % sb->cluster_size;
sb301fs/msdos/inode.creturn ((cluster-2)*sb->cluster_size+sb->data_start+offset) >> 1;
sb90fs/msdos/misc.cvoid lock_fat(struct super_block *sb)
sb92fs/msdos/misc.cwhile (MSDOS_SB(sb)->fat_lock) sleep_on(&MSDOS_SB(sb)->fat_wait);
sb93fs/msdos/misc.cMSDOS_SB(sb)->fat_lock = 1;
sb97fs/msdos/misc.cvoid unlock_fat(struct super_block *sb)
sb99fs/msdos/misc.cMSDOS_SB(sb)->fat_lock = 0;
sb100fs/msdos/misc.cwake_up(&MSDOS_SB(sb)->fat_wait);
sb330fs/msdos/misc.cinode = iget(sb,sector*MSDOS_DPS+entry); \
sb346fs/msdos/misc.cstatic int raw_scan_sector(struct super_block *sb,int sector,char *name,
sb355fs/msdos/misc.cif (!(bh = msdos_sread(sb->s_dev,sector,(void **) &data))) return -EIO;
sb386fs/msdos/misc.cstatic int raw_scan_root(struct super_block *sb,char *name,int *number,int *ino,
sb391fs/msdos/misc.cfor (count = 0; count < MSDOS_SB(sb)->dir_entries/MSDOS_DPS; count++) {
sb392fs/msdos/misc.cif ((cluster = raw_scan_sector(sb,MSDOS_SB(sb)->dir_start+count,
sb404fs/msdos/misc.cstatic int raw_scan_nonroot(struct super_block *sb,int start,char *name,
sb414fs/msdos/misc.cfor (count = 0; count < MSDOS_SB(sb)->cluster_size; count++) {
sb415fs/msdos/misc.cif ((cluster = raw_scan_sector(sb,(start-2)*
sb416fs/msdos/misc.cMSDOS_SB(sb)->cluster_size+MSDOS_SB(sb)->data_start+
sb420fs/msdos/misc.cif (!(start = fat_access(sb,start,-1))) {
sb421fs/msdos/misc.cfs_panic(sb,"FAT error");
sb440fs/msdos/misc.cstatic int raw_scan(struct super_block *sb,int start,char *name,int *number,
sb444fs/msdos/misc.creturn raw_scan_nonroot(sb,start,name,number,ino,res_bh,res_de);
sb445fs/msdos/misc.celse return raw_scan_root(sb,name,number,ino,res_bh,res_de);
sb226fs/msdos/namei.cstatic void dump_fat(struct super_block *sb,int start)
sb231fs/msdos/namei.cstart = fat_access(sb,start,-1);
sb97fs/namei.cstruct super_block * sb;
sb109fs/namei.c} else if ((sb = dir->i_sb) && (dir == sb->s_mounted)) {
sb110fs/namei.csb = dir->i_sb;
sb112fs/namei.cdir = sb->s_covered;
sb44fs/nfs/inode.cvoid nfs_put_super(struct super_block *sb)
sb47fs/nfs/inode.cclose_fp(sb->u.nfs_sb.s_server.file, 0);
sb48fs/nfs/inode.clock_super(sb);
sb49fs/nfs/inode.csb->s_dev = 0;
sb50fs/nfs/inode.cunlock_super(sb);
sb61fs/nfs/inode.cstruct super_block *nfs_read_super(struct super_block *sb, void *raw_data,
sb68fs/nfs/inode.cdev_t dev = sb->s_dev;
sb72fs/nfs/inode.csb->s_dev = 0;
sb82fs/nfs/inode.csb->s_dev = 0;
sb87fs/nfs/inode.csb->s_dev = 0;
sb91fs/nfs/inode.clock_super(sb);
sb92fs/nfs/inode.csb->s_blocksize = 1024; /* XXX */
sb93fs/nfs/inode.csb->s_blocksize_bits = 10;
sb94fs/nfs/inode.csb->s_magic = NFS_SUPER_MAGIC;
sb95fs/nfs/inode.csb->s_dev = dev;
sb96fs/nfs/inode.csb->s_op = &nfs_sops;
sb97fs/nfs/inode.cserver = &sb->u.nfs_sb.s_server;
sb119fs/nfs/inode.csb->u.nfs_sb.s_root = data->root;
sb120fs/nfs/inode.cunlock_super(sb);
sb121fs/nfs/inode.cif (!(sb->s_mounted = nfs_fhget(sb, &data->root, NULL))) {
sb122fs/nfs/inode.csb->s_dev = 0;
sb126fs/nfs/inode.creturn sb;
sb129fs/nfs/inode.cvoid nfs_statfs(struct super_block *sb, struct statfs *buf)
sb135fs/nfs/inode.cerror = nfs_proc_statfs(&sb->u.nfs_sb.s_server, &sb->u.nfs_sb.s_root,
sb161fs/nfs/inode.cstruct inode *nfs_fhget(struct super_block *sb, struct nfs_fh *fhandle,
sb168fs/nfs/inode.cif (!sb) {
sb173fs/nfs/inode.cerror = nfs_proc_getattr(&sb->u.nfs_sb.s_server, fhandle,
sb181fs/nfs/inode.cif (!(inode = iget(sb, fattr->fileid))) {
sb185fs/nfs/inode.cif (inode->i_dev == sb->s_dev) {
sb58fs/proc/fd.cstruct super_block * sb;
sb68fs/proc/fd.csb = dir->i_sb;
sb79fs/proc/fd.cif (!(*result = iget(sb,(pid << 16)+2))) {
sb121fs/proc/fd.cif (!(*result = iget(sb,ino)))
sb26fs/proc/inode.cvoid proc_put_super(struct super_block *sb)
sb28fs/proc/inode.clock_super(sb);
sb29fs/proc/inode.csb->s_dev = 0;
sb30fs/proc/inode.cunlock_super(sb);
sb61fs/proc/inode.cvoid proc_statfs(struct super_block *sb, struct statfs *buf)
sb39fs/super.cstatic int do_remount_sb(struct super_block *sb, int flags);
sb56fs/super.cvoid __wait_on_super(struct super_block * sb)
sb60fs/super.cadd_wait_queue(&sb->s_wait, &wait);
sb63fs/super.cif (sb->s_lock) {
sb67fs/super.cremove_wait_queue(&sb->s_wait, &wait);
sb73fs/super.cstruct super_block * sb;
sb75fs/super.cfor (sb = super_blocks + 0 ; sb < super_blocks + NR_SUPER ; sb++) {
sb76fs/super.cif (!sb->s_dev)
sb78fs/super.cif (dev && sb->s_dev != dev)
sb80fs/super.cwait_on_super(sb);
sb81fs/super.cif (!sb->s_dev || !sb->s_dirt)
sb83fs/super.cif (dev && (dev != sb->s_dev))
sb85fs/super.cif (sb->s_op && sb->s_op->write_super)
sb86fs/super.csb->s_op->write_super(sb);
sb110fs/super.cstruct super_block * sb;
sb117fs/super.cif (!(sb = get_super(dev)))
sb119fs/super.cif (sb->s_covered) {
sb124fs/super.cif (sb->s_op && sb->s_op->put_super)
sb125fs/super.csb->s_op->put_super(sb);
sb204fs/super.cstruct super_block * sb;
sb210fs/super.cif (!(sb=get_super(dev)))
sb212fs/super.cif (!(sb->s_flags & MS_RDONLY)) {
sb213fs/super.cretval = do_remount_sb(sb, MS_RDONLY);
sb219fs/super.cif (!(sb=get_super(dev)) || !(sb->s_covered))
sb221fs/super.cif (!sb->s_covered->i_mount)
sb224fs/super.cif (!fs_may_umount(dev, sb->s_mounted))
sb226fs/super.csb->s_covered->i_mount = NULL;
sb227fs/super.ciput(sb->s_covered);
sb228fs/super.csb->s_covered = NULL;
sb229fs/super.ciput(sb->s_mounted);
sb230fs/super.csb->s_mounted = NULL;
sb231fs/super.cif (sb->s_op && sb->s_op->write_super && sb->s_dirt)
sb232fs/super.csb->s_op->write_super(sb);
sb312fs/super.cstruct super_block * sb;
sb330fs/super.csb = read_super(dev,type,flags,data,0);
sb331fs/super.cif (!sb || sb->s_covered) {
sb335fs/super.csb->s_covered = dir_i;
sb336fs/super.cdir_i->i_mount = sb->s_mounted;
sb347fs/super.cstatic int do_remount_sb(struct super_block *sb, int flags)
sb352fs/super.cif ((flags & MS_RDONLY) && !(sb->s_flags & MS_RDONLY))
sb353fs/super.cif (!fs_may_remount_ro(sb->s_dev))
sb355fs/super.cif (sb->s_op && sb->s_op->remount_fs) {
sb356fs/super.cretval = sb->s_op->remount_fs(sb, &flags);
sb360fs/super.csb->s_flags = (sb->s_flags & ~MS_RMT_MASK) |
sb491fs/super.cstruct super_block * sb;
sb503fs/super.csb = read_super(ROOT_DEV,fs_type->name,root_mountflags,NULL,1);
sb504fs/super.cif (sb) {
sb505fs/super.cinode = sb->s_mounted;
sb507fs/super.csb->s_covered = inode;
sb508fs/super.csb->s_flags = root_mountflags;
sb513fs/super.c(sb->s_flags & MS_RDONLY) ? " readonly" : "");
sb98fs/xiafs/bitmap.c#define get_imap_zone(sb, bit_nr, not_que) \
sb99fs/xiafs/bitmap.cget__map_zone((sb), (sb)->u.xiafs_sb.s_imap_buf, \
sb100fs/xiafs/bitmap.c(sb)->u.xiafs_sb.s_imap_iznr, \
sb101fs/xiafs/bitmap.c(sb)->u.xiafs_sb.s_imap_cached, 1, \
sb102fs/xiafs/bitmap.c(sb)->u.xiafs_sb.s_imap_zones, _XIAFS_IMAP_SLOTS, \
sb105fs/xiafs/bitmap.c#define get_zmap_zone(sb, bit_nr, not_que) \
sb106fs/xiafs/bitmap.cget__map_zone((sb), (sb)->u.xiafs_sb.s_zmap_buf, \
sb107fs/xiafs/bitmap.c(sb)->u.xiafs_sb.s_zmap_zznr, \
sb108fs/xiafs/bitmap.c(sb)->u.xiafs_sb.s_zmap_cached, \
sb109fs/xiafs/bitmap.c1+(sb)->u.xiafs_sb.s_imap_zones, \
sb110fs/xiafs/bitmap.c(sb)->u.xiafs_sb.s_zmap_zones, _XIAFS_ZMAP_SLOTS, \
sb114fs/xiafs/bitmap.cget__map_zone(struct super_block *sb, struct buffer_head * bmap_buf[],
sb121fs/xiafs/bitmap.cz_nr = bit_nr >> XIAFS_BITS_PER_Z_BITS(sb);
sb128fs/xiafs/bitmap.clock_super(sb);
sb141fs/xiafs/bitmap.ctmp_bh=bread(sb->s_dev, z_nr+first_zone, XIAFS_ZSIZE(sb)); /* cache not hit */
sb144fs/xiafs/bitmap.cunlock_super(sb);
sb157fs/xiafs/bitmap.c#define xiafs_unlock_super(sb, cache)  if (cache) unlock_super(sb);
sb159fs/xiafs/bitmap.c#define get_free_ibit(sb, prev_bit) \
sb160fs/xiafs/bitmap.cget_free__bit(sb, sb->u.xiafs_sb.s_imap_buf, \
sb161fs/xiafs/bitmap.csb->u.xiafs_sb.s_imap_iznr, \
sb162fs/xiafs/bitmap.csb->u.xiafs_sb.s_imap_cached, \
sb163fs/xiafs/bitmap.c1, sb->u.xiafs_sb.s_imap_zones, \
sb166fs/xiafs/bitmap.c#define get_free_zbit(sb, prev_bit) \
sb167fs/xiafs/bitmap.cget_free__bit(sb, sb->u.xiafs_sb.s_zmap_buf, \
sb168fs/xiafs/bitmap.csb->u.xiafs_sb.s_zmap_zznr, \
sb169fs/xiafs/bitmap.csb->u.xiafs_sb.s_zmap_cached, \
sb170fs/xiafs/bitmap.c1 + sb->u.xiafs_sb.s_imap_zones, \
sb171fs/xiafs/bitmap.csb->u.xiafs_sb.s_zmap_zones, \
sb175fs/xiafs/bitmap.cget_free__bit(struct super_block *sb, struct buffer_head * bmap_buf[],
sb184fs/xiafs/bitmap.ctotal_bits=bmap_zones << XIAFS_BITS_PER_Z_BITS(sb); 
sb188fs/xiafs/bitmap.cend_bit=XIAFS_BITS_PER_Z(sb);
sb202fs/xiafs/bitmap.cbh = get__map_zone(sb, bmap_buf, bznr, cache, first_zone, 
sb209fs/xiafs/bitmap.cxiafs_unlock_super(sb, sb->u.xiafs_sb.s_zmap_cached);
sb217fs/xiafs/bitmap.cxiafs_unlock_super(sb, cache);
sb218fs/xiafs/bitmap.creturn (pos & ~(XIAFS_BITS_PER_Z(sb)-1))+tmp;
sb221fs/xiafs/bitmap.cvoid xiafs_free_zone(struct super_block * sb, int d_addr)
sb226fs/xiafs/bitmap.cif (!sb) {
sb230fs/xiafs/bitmap.cif (d_addr < sb->u.xiafs_sb.s_firstdatazone ||
sb231fs/xiafs/bitmap.cd_addr >= sb->u.xiafs_sb.s_nzones) {
sb235fs/xiafs/bitmap.cbh = get_hash_table(sb->s_dev, d_addr, XIAFS_ZSIZE(sb));
sb239fs/xiafs/bitmap.cbit=d_addr - sb->u.xiafs_sb.s_firstdatazone + 1;
sb240fs/xiafs/bitmap.cbh = get_zmap_zone(sb, bit, NULL);
sb243fs/xiafs/bitmap.coffset = bit & (XIAFS_BITS_PER_Z(sb) -1);
sb247fs/xiafs/bitmap.csb->s_dev, bit, bit, WHERE_ERR);
sb249fs/xiafs/bitmap.cxiafs_unlock_super(sb, sb->u.xiafs_sb.s_zmap_cached);
sb252fs/xiafs/bitmap.cint xiafs_new_zone(struct super_block * sb, u_long prev_addr)
sb257fs/xiafs/bitmap.cif (!sb) {
sb261fs/xiafs/bitmap.cif (prev_addr < sb->u.xiafs_sb.s_firstdatazone || 
sb262fs/xiafs/bitmap.cprev_addr >= sb->u.xiafs_sb.s_nzones) {
sb263fs/xiafs/bitmap.cprev_addr=sb->u.xiafs_sb.s_firstdatazone;
sb265fs/xiafs/bitmap.cprev_znr=prev_addr-sb->u.xiafs_sb.s_firstdatazone+1;
sb266fs/xiafs/bitmap.ctmp=get_free_zbit(sb, prev_znr);
sb269fs/xiafs/bitmap.ctmp += sb->u.xiafs_sb.s_firstdatazone -1;
sb270fs/xiafs/bitmap.cif (!(bh = getblk(sb->s_dev, tmp, XIAFS_ZSIZE(sb)))) {
sb288fs/xiafs/bitmap.cstruct super_block * sb;
sb298fs/xiafs/bitmap.csb = inode->i_sb;
sb300fs/xiafs/bitmap.cbh = get_imap_zone(sb, ino, NULL);
sb304fs/xiafs/bitmap.cif (clear_bit(ino & (XIAFS_BITS_PER_Z(sb)-1), bh->b_data))
sb309fs/xiafs/bitmap.cxiafs_unlock_super(sb, sb->u.xiafs_sb.s_imap_cached);
sb314fs/xiafs/bitmap.cstruct super_block * sb;
sb318fs/xiafs/bitmap.csb = dir->i_sb;
sb321fs/xiafs/bitmap.cinode->i_sb = sb;
sb324fs/xiafs/bitmap.ctmp=get_free_ibit(sb, dir->i_ino); 
sb331fs/xiafs/bitmap.cinode->i_dev = sb->s_dev;
sb359fs/xiafs/bitmap.cunsigned long xiafs_count_free_inodes(struct super_block *sb)
sb366fs/xiafs/bitmap.cizones=sb->u.xiafs_sb.s_imap_zones;
sb368fs/xiafs/bitmap.cbh=get_imap_zone(sb, i << XIAFS_BITS_PER_Z_BITS(sb), &not_que);
sb371fs/xiafs/bitmap.cxiafs_unlock_super(sb, sb->u.xiafs_sb.s_imap_cached);
sb374fs/xiafs/bitmap.ci=izones << XIAFS_BITS_PER_Z_BITS(sb);
sb378fs/xiafs/bitmap.cunsigned long xiafs_count_free_zones(struct super_block *sb)
sb385fs/xiafs/bitmap.czzones=sb->u.xiafs_sb.s_zmap_zones;
sb387fs/xiafs/bitmap.cbh=get_zmap_zone(sb, i << XIAFS_BITS_PER_Z_BITS(sb), &not_que);
sb390fs/xiafs/bitmap.cxiafs_unlock_super(sb, sb->u.xiafs_sb.s_zmap_cached);
sb393fs/xiafs/bitmap.ci=zzones << XIAFS_BITS_PER_Z_BITS(sb);
sb35fs/xiafs/inode.cvoid xiafs_put_super(struct super_block *sb)
sb39fs/xiafs/inode.clock_super(sb);
sb40fs/xiafs/inode.csb->s_dev = 0;
sb42fs/xiafs/inode.cbrelse(sb->u.xiafs_sb.s_imap_buf[i]);
sb44fs/xiafs/inode.cbrelse(sb->u.xiafs_sb.s_zmap_buf[i]);
sb45fs/xiafs/inode.cunlock_super(sb);
sb158fs/xiafs/inode.cvoid xiafs_statfs(struct super_block *sb, struct statfs *buf)
sb163fs/xiafs/inode.cput_fs_long(XIAFS_ZSIZE(sb), &buf->f_bsize);
sb164fs/xiafs/inode.cput_fs_long(sb->u.xiafs_sb.s_ndatazones, &buf->f_blocks);
sb165fs/xiafs/inode.ctmp = xiafs_count_free_zones(sb);
sb168fs/xiafs/inode.cput_fs_long(sb->u.xiafs_sb.s_ninodes, &buf->f_files);
sb169fs/xiafs/inode.cput_fs_long(xiafs_count_free_inodes(sb), &buf->f_ffree);
sb79include/linux/ext_fs.hextern unsigned long ext_count_free_inodes(struct super_block *sb);
sb80include/linux/ext_fs.hextern int ext_new_block(struct super_block * sb);
sb81include/linux/ext_fs.hextern void ext_free_block(struct super_block * sb, int block);
sb82include/linux/ext_fs.hextern unsigned long ext_count_free_blocks(struct super_block *sb);
sb370include/linux/fs.hextern struct inode * __iget(struct super_block * sb,int nr,int crsmnt);
sb371include/linux/fs.hextern struct inode * iget(struct super_block * sb,int nr);
sb171include/linux/iso_fs.hextern unsigned long isofs_count_free_inodes(struct super_block *sb);
sb36include/linux/locks.hextern inline void wait_on_super(struct super_block * sb)
sb38include/linux/locks.hif (sb->s_lock)
sb39include/linux/locks.h__wait_on_super(sb);
sb42include/linux/locks.hextern inline void lock_super(struct super_block * sb)
sb44include/linux/locks.hif (sb->s_lock)
sb45include/linux/locks.h__wait_on_super(sb);
sb46include/linux/locks.hsb->s_lock = 1;
sb49include/linux/locks.hextern inline void unlock_super(struct super_block * sb)
sb51include/linux/locks.hsb->s_lock = 0;
sb52include/linux/locks.hwake_up(&sb->s_wait);
sb90include/linux/minix_fs.hextern unsigned long minix_count_free_inodes(struct super_block *sb);
sb91include/linux/minix_fs.hextern int minix_new_block(struct super_block * sb);
sb92include/linux/minix_fs.hextern void minix_free_block(struct super_block * sb, int block);
sb93include/linux/minix_fs.hextern unsigned long minix_count_free_blocks(struct super_block *sb);
sb130include/linux/msdos_fs.hextern void lock_fat(struct super_block *sb);
sb131include/linux/msdos_fs.hextern void unlock_fat(struct super_block *sb);
sb145include/linux/msdos_fs.hextern int fat_access(struct super_block *sb,int nr,int new_value);
sb170include/linux/msdos_fs.hextern void msdos_put_super(struct super_block *sb);
sb173include/linux/msdos_fs.hextern void msdos_statfs(struct super_block *sb,struct statfs *buf);
sb101include/linux/nfs_fs.hextern struct super_block *nfs_read_super(struct super_block *sb, 
sb103include/linux/nfs_fs.hextern struct inode *nfs_fhget(struct super_block *sb, struct nfs_fh *fhandle,
sb83include/linux/xia_fs.hextern unsigned long xiafs_count_free_inodes(struct super_block *sb);
sb84include/linux/xia_fs.hextern int xiafs_new_zone(struct super_block * sb, u_long prev_addr);
sb85include/linux/xia_fs.hextern void xiafs_free_zone(struct super_block * sb, int block);
sb86include/linux/xia_fs.hextern unsigned long xiafs_count_free_zones(struct super_block *sb);
sb92tools/build.cstruct stat sb;
sb98tools/build.cif (stat("/", &sb)) {
sb102tools/build.cmajor_root = major(sb.st_dev);
sb103tools/build.cminor_root = minor(sb.st_dev);
sb105tools/build.cif (stat(argv[4], &sb)) {
sb109tools/build.cmajor_root = major(sb.st_rdev);
sb110tools/build.cminor_root = minor(sb.st_rdev);
sb41zBoot/xtract.cstruct stat sb;