taglinefilesource code
sb46fs/ext/freelists.cvoid ext_free_block(struct super_block * sb, int block)
sb51fs/ext/freelists.cif (!sb) {
sb55fs/ext/freelists.clock_super (sb);
sb56fs/ext/freelists.cif (block < sb->u.ext_sb.s_firstdatazone ||
sb57fs/ext/freelists.cblock >= sb->u.ext_sb.s_nzones) {
sb61fs/ext/freelists.cbh = get_hash_table(sb->s_dev, block, sb->s_blocksize);
sb65fs/ext/freelists.cif (sb->u.ext_sb.s_firstfreeblock)
sb66fs/ext/freelists.cefb = (struct ext_free_block *) sb->u.ext_sb.s_firstfreeblock->b_data;
sb67fs/ext/freelists.cif (!sb->u.ext_sb.s_firstfreeblock || efb->count == 254) {
sb71fs/ext/freelists.cif (sb->u.ext_sb.s_firstfreeblock)
sb72fs/ext/freelists.cbrelse (sb->u.ext_sb.s_firstfreeblock);
sb73fs/ext/freelists.cif (!(sb->u.ext_sb.s_firstfreeblock = bread (sb->s_dev,
sb74fs/ext/freelists.cblock, sb->s_blocksize)))
sb76fs/ext/freelists.cefb = (struct ext_free_block *) sb->u.ext_sb.s_firstfreeblock->b_data;
sb77fs/ext/freelists.cefb->next = sb->u.ext_sb.s_firstfreeblocknumber;
sb79fs/ext/freelists.csb->u.ext_sb.s_firstfreeblocknumber = block;
sb83fs/ext/freelists.csb->u.ext_sb.s_freeblockscount ++;
sb84fs/ext/freelists.csb->s_dirt = 1;
sb85fs/ext/freelists.csb->u.ext_sb.s_firstfreeblock->b_dirt = 1;
sb86fs/ext/freelists.cunlock_super (sb);
sb90fs/ext/freelists.cint ext_new_block(struct super_block * sb)
sb96fs/ext/freelists.cif (!sb) {
sb100fs/ext/freelists.cif (!sb->u.ext_sb.s_firstfreeblock)
sb102fs/ext/freelists.clock_super (sb);
sb103fs/ext/freelists.cefb = (struct ext_free_block *) sb->u.ext_sb.s_firstfreeblock->b_data;
sb106fs/ext/freelists.csb->u.ext_sb.s_firstfreeblock->b_dirt = 1;
sb111fs/ext/freelists.cj = sb->u.ext_sb.s_firstfreeblocknumber;
sb112fs/ext/freelists.csb->u.ext_sb.s_firstfreeblocknumber = efb->next;
sb113fs/ext/freelists.cbrelse (sb->u.ext_sb.s_firstfreeblock);
sb114fs/ext/freelists.cif (!sb->u.ext_sb.s_firstfreeblocknumber) {
sb115fs/ext/freelists.csb->u.ext_sb.s_firstfreeblock = NULL;
sb117fs/ext/freelists.cif (!(sb->u.ext_sb.s_firstfreeblock = bread (sb->s_dev,
sb118fs/ext/freelists.csb->u.ext_sb.s_firstfreeblocknumber,
sb119fs/ext/freelists.csb->s_blocksize)))
sb123fs/ext/freelists.cif (j < sb->u.ext_sb.s_firstdatazone || j > sb->u.ext_sb.s_nzones) {
sb128fs/ext/freelists.csb->u.ext_sb.s_freeblockscount --;
sb129fs/ext/freelists.csb->s_dirt = 1;
sb131fs/ext/freelists.cif (!(bh=getblk(sb->s_dev, j, sb->s_blocksize))) {
sb142fs/ext/freelists.cunlock_super (sb);
sb146fs/ext/freelists.cunsigned long ext_count_free_blocks(struct super_block *sb)
sb153fs/ext/freelists.clock_super (sb);
sb154fs/ext/freelists.cif (!sb->u.ext_sb.s_firstfreeblock)
sb157fs/ext/freelists.cefb = (struct ext_free_block *) sb->u.ext_sb.s_firstfreeblock->b_data;
sb161fs/ext/freelists.cif (!(bh = bread (sb->s_dev, block, sb->s_blocksize))) {
sb173fs/ext/freelists.csb->u.ext_sb.s_freeblockscount, count);
sb174fs/ext/freelists.cunlock_super (sb);
sb177fs/ext/freelists.creturn sb->u.ext_sb.s_freeblockscount;
sb241fs/ext/freelists.cstruct super_block * sb;
sb249fs/ext/freelists.csb = dir->i_sb;
sb250fs/ext/freelists.cinode->i_sb = sb;
sb251fs/ext/freelists.cinode->i_flags = sb->s_flags;
sb252fs/ext/freelists.cif (!sb->u.ext_sb.s_firstfreeinodeblock)
sb254fs/ext/freelists.clock_super (sb);
sb255fs/ext/freelists.cefi = ((struct ext_free_inode *) sb->u.ext_sb.s_firstfreeinodeblock->b_data) +
sb256fs/ext/freelists.c(sb->u.ext_sb.s_firstfreeinodenumber-1)%EXT_INODES_PER_BLOCK;
sb259fs/ext/freelists.csb->u.ext_sb.s_firstfreeinodeblock->b_dirt = 1;
sb264fs/ext/freelists.cj = sb->u.ext_sb.s_firstfreeinodenumber;
sb265fs/ext/freelists.cif (efi->next > sb->u.ext_sb.s_ninodes) {
sb269fs/ext/freelists.csb->u.ext_sb.s_firstfreeinodenumber = efi->next;
sb271fs/ext/freelists.cbrelse (sb->u.ext_sb.s_firstfreeinodeblock);
sb272fs/ext/freelists.cif (!sb->u.ext_sb.s_firstfreeinodenumber) {
sb273fs/ext/freelists.csb->u.ext_sb.s_firstfreeinodeblock = NULL;
sb275fs/ext/freelists.cif (!(sb->u.ext_sb.s_firstfreeinodeblock =
sb276fs/ext/freelists.cbread(sb->s_dev, block, sb->s_blocksize)))
sb280fs/ext/freelists.csb->u.ext_sb.s_freeinodescount --;
sb281fs/ext/freelists.csb->s_dirt = 1;
sb284fs/ext/freelists.cinode->i_dev = sb->s_dev;
sb295fs/ext/freelists.cunlock_super (sb);
sb299fs/ext/freelists.cunsigned long ext_count_free_inodes(struct super_block *sb)
sb306fs/ext/freelists.clock_super (sb);
sb307fs/ext/freelists.cif (!sb->u.ext_sb.s_firstfreeinodeblock)
sb310fs/ext/freelists.cefi = ((struct ext_free_inode *) sb->u.ext_sb.s_firstfreeinodeblock->b_data) +
sb311fs/ext/freelists.c((sb->u.ext_sb.s_firstfreeinodenumber-1)%EXT_INODES_PER_BLOCK);
sb315fs/ext/freelists.cif (ino < 1 || ino > sb->u.ext_sb.s_ninodes) {
sb317fs/ext/freelists.c(int) sb->u.ext_sb.s_firstfreeinodenumber,ino);
sb321fs/ext/freelists.cif (!(bh = bread (sb->s_dev, block, sb->s_blocksize))) {
sb334fs/ext/freelists.csb->u.ext_sb.s_freeinodescount, count);
sb335fs/ext/freelists.cunlock_super (sb);
sb338fs/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);
sb122fs/ext/inode.cvoid ext_write_super (struct super_block *sb)
sb127fs/ext/inode.cif (!(bh = bread(sb->s_dev, 1, BLOCK_SIZE))) {
sb132fs/ext/inode.ces->s_firstfreeblock = sb->u.ext_sb.s_firstfreeblocknumber;
sb133fs/ext/inode.ces->s_freeblockscount = sb->u.ext_sb.s_freeblockscount;
sb134fs/ext/inode.ces->s_firstfreeinode = sb->u.ext_sb.s_firstfreeinodenumber;
sb135fs/ext/inode.ces->s_freeinodescount = sb->u.ext_sb.s_freeinodescount;
sb138fs/ext/inode.csb->s_dirt = 0;
sb141fs/ext/inode.cvoid ext_statfs (struct super_block *sb, struct statfs *buf)
sb147fs/ext/inode.cput_fs_long(sb->u.ext_sb.s_nzones << sb->u.ext_sb.s_log_zone_size,
sb149fs/ext/inode.ctmp = ext_count_free_blocks(sb);
sb152fs/ext/inode.cput_fs_long(sb->u.ext_sb.s_ninodes, &buf->f_files);
sb153fs/ext/inode.cput_fs_long(ext_count_free_inodes(sb), &buf->f_ffree);
sb77fs/ext2/balloc.cstatic void read_block_bitmap (struct super_block * sb,
sb86fs/ext2/balloc.cgroup_desc = block_group / EXT2_DESC_PER_BLOCK(sb);
sb87fs/ext2/balloc.cdesc = block_group % EXT2_DESC_PER_BLOCK(sb);
sb88fs/ext2/balloc.cif (!sb->u.ext2_sb.s_group_desc[group_desc]) {
sb93fs/ext2/balloc.cgdp = (struct ext2_group_desc *) sb->u.ext2_sb.s_group_desc[group_desc]->b_data;
sb94fs/ext2/balloc.cbh = bread (sb->s_dev, gdp[desc].bg_block_bitmap, sb->s_blocksize);
sb100fs/ext2/balloc.csb->u.ext2_sb.s_block_bitmap_number[bitmap_nr] = block_group;
sb101fs/ext2/balloc.csb->u.ext2_sb.s_block_bitmap[bitmap_nr] = bh;
sb115fs/ext2/balloc.cstatic int load_block_bitmap (struct super_block * sb,
sb122fs/ext2/balloc.cif (block_group >= sb->u.ext2_sb.s_groups_count) {
sb124fs/ext2/balloc.cblock_group, sb->u.ext2_sb.s_groups_count);
sb127fs/ext2/balloc.cif (sb->u.ext2_sb.s_loaded_block_bitmaps > 0 &&
sb128fs/ext2/balloc.csb->u.ext2_sb.s_block_bitmap_number[0] == block_group)
sb131fs/ext2/balloc.cif (sb->u.ext2_sb.s_groups_count <= EXT2_MAX_GROUP_LOADED) {
sb132fs/ext2/balloc.cif (sb->u.ext2_sb.s_block_bitmap[block_group]) {
sb133fs/ext2/balloc.cif (sb->u.ext2_sb.s_block_bitmap_number[block_group] != block_group)
sb138fs/ext2/balloc.cread_block_bitmap (sb, block_group, block_group);
sb143fs/ext2/balloc.cfor (i = 0; i < sb->u.ext2_sb.s_loaded_block_bitmaps &&
sb144fs/ext2/balloc.csb->u.ext2_sb.s_block_bitmap_number[i] != block_group; i++)
sb146fs/ext2/balloc.cif (i < sb->u.ext2_sb.s_loaded_block_bitmaps &&
sb147fs/ext2/balloc.csb->u.ext2_sb.s_block_bitmap_number[i] == block_group) {
sb148fs/ext2/balloc.cblock_bitmap_number = sb->u.ext2_sb.s_block_bitmap_number[i];
sb149fs/ext2/balloc.cblock_bitmap = sb->u.ext2_sb.s_block_bitmap[i];
sb151fs/ext2/balloc.csb->u.ext2_sb.s_block_bitmap_number[j] =
sb152fs/ext2/balloc.csb->u.ext2_sb.s_block_bitmap_number[j - 1];
sb153fs/ext2/balloc.csb->u.ext2_sb.s_block_bitmap[j] =
sb154fs/ext2/balloc.csb->u.ext2_sb.s_block_bitmap[j - 1];
sb156fs/ext2/balloc.csb->u.ext2_sb.s_block_bitmap_number[0] = block_bitmap_number;
sb157fs/ext2/balloc.csb->u.ext2_sb.s_block_bitmap[0] = block_bitmap;
sb159fs/ext2/balloc.cif (sb->u.ext2_sb.s_loaded_block_bitmaps < EXT2_MAX_GROUP_LOADED)
sb160fs/ext2/balloc.csb->u.ext2_sb.s_loaded_block_bitmaps++;
sb162fs/ext2/balloc.cbrelse (sb->u.ext2_sb.s_block_bitmap[EXT2_MAX_GROUP_LOADED - 1]);
sb163fs/ext2/balloc.cfor (j = sb->u.ext2_sb.s_loaded_block_bitmaps - 1; j > 0;  j--) {
sb164fs/ext2/balloc.csb->u.ext2_sb.s_block_bitmap_number[j] =
sb165fs/ext2/balloc.csb->u.ext2_sb.s_block_bitmap_number[j - 1];
sb166fs/ext2/balloc.csb->u.ext2_sb.s_block_bitmap[j] =
sb167fs/ext2/balloc.csb->u.ext2_sb.s_block_bitmap[j - 1];
sb169fs/ext2/balloc.cread_block_bitmap (sb, block_group, 0);
sb174fs/ext2/balloc.cvoid ext2_free_block (struct super_block * sb, unsigned long block)
sb186fs/ext2/balloc.cif (!sb) {
sb190fs/ext2/balloc.clock_super (sb);
sb191fs/ext2/balloc.cif (block < sb->u.ext2_sb.s_first_data_block ||
sb192fs/ext2/balloc.cblock >= sb->u.ext2_sb.s_blocks_count) {
sb194fs/ext2/balloc.cunlock_super (sb);
sb197fs/ext2/balloc.ces = (struct ext2_super_block *) sb->u.ext2_sb.s_sbh->b_data;
sb201fs/ext2/balloc.cbh = get_hash_table (sb->s_dev, block, sb->s_blocksize);
sb205fs/ext2/balloc.cblock_group = (block - sb->u.ext2_sb.s_first_data_block) /
sb206fs/ext2/balloc.cEXT2_BLOCKS_PER_GROUP(sb);
sb207fs/ext2/balloc.cbit = (block - sb->u.ext2_sb.s_first_data_block) %
sb208fs/ext2/balloc.cEXT2_BLOCKS_PER_GROUP(sb);
sb209fs/ext2/balloc.cbitmap_nr = load_block_bitmap (sb, block_group);
sb210fs/ext2/balloc.cbh = sb->u.ext2_sb.s_block_bitmap[bitmap_nr];
sb217fs/ext2/balloc.csb->s_dev, block);
sb219fs/ext2/balloc.cgroup_desc = block_group / EXT2_DESC_PER_BLOCK(sb);
sb220fs/ext2/balloc.cdesc = block_group % EXT2_DESC_PER_BLOCK(sb);
sb221fs/ext2/balloc.cbh2 = sb->u.ext2_sb.s_group_desc[group_desc];
sb232fs/ext2/balloc.csb->u.ext2_sb.s_sbh->b_dirt = 1;
sb233fs/ext2/balloc.csb->s_dirt = 1;
sb234fs/ext2/balloc.cunlock_super (sb);
sb243fs/ext2/balloc.cint ext2_new_block (struct super_block * sb, unsigned long block_group)
sb253fs/ext2/balloc.cif (!sb) {
sb257fs/ext2/balloc.clock_super (sb);
sb258fs/ext2/balloc.ces = (struct ext2_super_block *) sb->u.ext2_sb.s_sbh->b_data;
sb260fs/ext2/balloc.cunlock_super (sb);
sb268fs/ext2/balloc.cfor (i = 0; i < sb->u.ext2_sb.s_groups_count; i++) {
sb270fs/ext2/balloc.cif (!sb->u.ext2_sb.s_group_desc[group_desc])
sb272fs/ext2/balloc.cgdp = (struct ext2_group_desc *) sb->u.ext2_sb.s_group_desc[group_desc]->b_data;
sb277fs/ext2/balloc.cif (desc == EXT2_DESC_PER_BLOCK(sb)) {
sb283fs/ext2/balloc.cif (i >= sb->u.ext2_sb.s_groups_count) {
sb284fs/ext2/balloc.cunlock_super (sb);
sb291fs/ext2/balloc.cbitmap_nr = load_block_bitmap (sb, i);
sb292fs/ext2/balloc.cbh = sb->u.ext2_sb.s_block_bitmap[bitmap_nr];
sb297fs/ext2/balloc.cif ((j = find_first_zero (bh->b_data, EXT2_BLOCKS_PER_GROUP(sb))) <
sb298fs/ext2/balloc.cEXT2_BLOCKS_PER_GROUP(sb)) {
sb309fs/ext2/balloc.cj += i * EXT2_BLOCKS_PER_GROUP(sb) +
sb310fs/ext2/balloc.csb->u.ext2_sb.s_first_data_block;
sb311fs/ext2/balloc.cif (j >= sb->u.ext2_sb.s_blocks_count) {
sb316fs/ext2/balloc.cif (!(bh = getblk (sb->s_dev, j, sb->s_blocksize))) {
sb318fs/ext2/balloc.cunlock_super (sb);
sb321fs/ext2/balloc.cclear_block (bh->b_data, sb->s_blocksize);
sb329fs/ext2/balloc.csb->u.ext2_sb.s_group_desc[group_desc]->b_dirt = 1;
sb331fs/ext2/balloc.csb->u.ext2_sb.s_sbh->b_dirt = 1;
sb332fs/ext2/balloc.csb->s_dirt = 1;
sb333fs/ext2/balloc.cunlock_super (sb);
sb337fs/ext2/balloc.cunsigned long ext2_count_free_blocks (struct super_block *sb)
sb348fs/ext2/balloc.clock_super (sb);
sb349fs/ext2/balloc.ces = (struct ext2_super_block *) sb->u.ext2_sb.s_sbh->b_data;
sb355fs/ext2/balloc.cfor (i = 0; i < sb->u.ext2_sb.s_groups_count; i++) {
sb357fs/ext2/balloc.cif (!sb->u.ext2_sb.s_group_desc[group_desc]) {
sb361fs/ext2/balloc.cgdp = (struct ext2_group_desc *) sb->u.ext2_sb.s_group_desc[group_desc]->b_data;
sb364fs/ext2/balloc.cbitmap_nr = load_block_bitmap (sb, i);
sb365fs/ext2/balloc.cif (sb->u.ext2_sb.s_block_bitmap[bitmap_nr])
sb366fs/ext2/balloc.cx = ext2_count_free (sb->u.ext2_sb.s_block_bitmap[bitmap_nr],
sb367fs/ext2/balloc.csb->s_blocksize);
sb376fs/ext2/balloc.cif (desc == EXT2_DESC_PER_BLOCK(sb)) {
sb384fs/ext2/balloc.cunlock_super (sb);
sb387fs/ext2/balloc.ces = (struct ext2_super_block *) sb->u.ext2_sb.s_sbh->b_data;
sb74fs/ext2/dir.cstruct super_block * sb;
sb78fs/ext2/dir.csb = inode->i_sb;
sb80fs/ext2/dir.coffset = filp->f_pos & (sb->s_blocksize - 1);
sb81fs/ext2/dir.cbh = ext2_bread (inode, (filp->f_pos) >> EXT2_BLOCK_SIZE_BITS(sb), 0);
sb83fs/ext2/dir.cfilp->f_pos += sb->s_blocksize - offset;
sb87fs/ext2/dir.cwhile (offset < sb->s_blocksize && filp->f_pos < inode->i_size) {
sb81fs/ext2/file.cstruct super_block * sb;
sb88fs/ext2/file.csb = inode->i_sb;
sb104fs/ext2/file.cblock = offset >> EXT2_BLOCK_SIZE_BITS(sb);
sb105fs/ext2/file.coffset &= (sb->s_blocksize - 1);
sb106fs/ext2/file.csize = (size + sb->s_blocksize - 1) >> EXT2_BLOCK_SIZE_BITS(sb);
sb107fs/ext2/file.cblocks = (left + offset + sb->s_blocksize - 1) >> EXT2_BLOCK_SIZE_BITS(sb);
sb160fs/ext2/file.cif (left < sb->s_blocksize - offset)
sb163fs/ext2/file.cchars = sb->s_blocksize - offset;
sb205fs/ext2/file.cstruct super_block * sb;
sb211fs/ext2/file.csb = inode->i_sb;
sb226fs/ext2/file.cbh = ext2_getblk (inode, pos / sb->s_blocksize, 1);
sb235fs/ext2/file.cc = sb->s_blocksize - (pos % sb->s_blocksize);
sb238fs/ext2/file.cif (c != sb->s_blocksize && !bh->b_uptodate) {
sb248fs/ext2/file.cp = (pos % sb->s_blocksize) + bh->b_data;
sb70fs/ext2/ialloc.cstatic void read_inode_bitmap (struct super_block * sb,
sb79fs/ext2/ialloc.cgroup_desc = block_group / EXT2_DESC_PER_BLOCK(sb);
sb80fs/ext2/ialloc.cdesc = block_group % EXT2_DESC_PER_BLOCK(sb);
sb81fs/ext2/ialloc.cif (!sb->u.ext2_sb.s_group_desc[group_desc]) {
sb86fs/ext2/ialloc.cgdp = (struct ext2_group_desc *) sb->u.ext2_sb.s_group_desc[group_desc]->b_data;
sb87fs/ext2/ialloc.cbh = bread (sb->s_dev, gdp[desc].bg_inode_bitmap, sb->s_blocksize);
sb93fs/ext2/ialloc.csb->u.ext2_sb.s_inode_bitmap_number[bitmap_nr] = block_group;
sb94fs/ext2/ialloc.csb->u.ext2_sb.s_inode_bitmap[bitmap_nr] = bh;
sb108fs/ext2/ialloc.cstatic int load_inode_bitmap (struct super_block * sb,
sb115fs/ext2/ialloc.cif (block_group >= sb->u.ext2_sb.s_groups_count) {
sb117fs/ext2/ialloc.cblock_group, sb->u.ext2_sb.s_groups_count);
sb120fs/ext2/ialloc.cif (sb->u.ext2_sb.s_loaded_inode_bitmaps > 0 &&
sb121fs/ext2/ialloc.csb->u.ext2_sb.s_inode_bitmap_number[0] == block_group)
sb123fs/ext2/ialloc.cif (sb->u.ext2_sb.s_groups_count <= EXT2_MAX_GROUP_LOADED) {
sb124fs/ext2/ialloc.cif (sb->u.ext2_sb.s_inode_bitmap[block_group]) {
sb125fs/ext2/ialloc.cif (sb->u.ext2_sb.s_inode_bitmap_number[block_group] != block_group)
sb130fs/ext2/ialloc.cread_inode_bitmap (sb, block_group, block_group);
sb135fs/ext2/ialloc.cfor (i = 0; i < sb->u.ext2_sb.s_loaded_inode_bitmaps &&
sb136fs/ext2/ialloc.csb->u.ext2_sb.s_inode_bitmap_number[i] != block_group;
sb139fs/ext2/ialloc.cif (i < sb->u.ext2_sb.s_loaded_inode_bitmaps &&
sb140fs/ext2/ialloc.csb->u.ext2_sb.s_inode_bitmap_number[i] == block_group) {
sb141fs/ext2/ialloc.cinode_bitmap_number = sb->u.ext2_sb.s_inode_bitmap_number[i];
sb142fs/ext2/ialloc.cinode_bitmap = sb->u.ext2_sb.s_inode_bitmap[i];
sb144fs/ext2/ialloc.csb->u.ext2_sb.s_inode_bitmap_number[j] =
sb145fs/ext2/ialloc.csb->u.ext2_sb.s_inode_bitmap_number[j - 1];
sb146fs/ext2/ialloc.csb->u.ext2_sb.s_inode_bitmap[j] =
sb147fs/ext2/ialloc.csb->u.ext2_sb.s_inode_bitmap[j - 1];
sb149fs/ext2/ialloc.csb->u.ext2_sb.s_inode_bitmap_number[0] = inode_bitmap_number;
sb150fs/ext2/ialloc.csb->u.ext2_sb.s_inode_bitmap[0] = inode_bitmap;
sb152fs/ext2/ialloc.cif (sb->u.ext2_sb.s_loaded_inode_bitmaps < EXT2_MAX_GROUP_LOADED)
sb153fs/ext2/ialloc.csb->u.ext2_sb.s_loaded_inode_bitmaps++;
sb155fs/ext2/ialloc.cbrelse (sb->u.ext2_sb.s_inode_bitmap[EXT2_MAX_GROUP_LOADED - 1]);
sb156fs/ext2/ialloc.cfor (j = sb->u.ext2_sb.s_loaded_inode_bitmaps - 1; j > 0; j--) {
sb157fs/ext2/ialloc.csb->u.ext2_sb.s_inode_bitmap_number[j] =
sb158fs/ext2/ialloc.csb->u.ext2_sb.s_inode_bitmap_number[j - 1];
sb159fs/ext2/ialloc.csb->u.ext2_sb.s_inode_bitmap[j] =
sb160fs/ext2/ialloc.csb->u.ext2_sb.s_inode_bitmap[j - 1];
sb162fs/ext2/ialloc.cread_inode_bitmap (sb, block_group, 0);
sb198fs/ext2/ialloc.cstruct super_block * sb;
sb232fs/ext2/ialloc.csb = inode->i_sb;
sb233fs/ext2/ialloc.clock_super (sb);
sb234fs/ext2/ialloc.cif (inode->i_ino < 1 || inode->i_ino > sb->u.ext2_sb.s_inodes_count) {
sb236fs/ext2/ialloc.cunlock_super (sb);
sb239fs/ext2/ialloc.ces = (struct ext2_super_block *) sb->u.ext2_sb.s_sbh->b_data;
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];
sb250fs/ext2/ialloc.csb->s_dev, inode->i_ino);
sb252fs/ext2/ialloc.cgroup_desc = block_group / EXT2_DESC_PER_BLOCK(sb);
sb253fs/ext2/ialloc.cdesc = block_group % EXT2_DESC_PER_BLOCK(sb);
sb254fs/ext2/ialloc.cbh2 = sb->u.ext2_sb.s_group_desc[group_desc];
sb268fs/ext2/ialloc.csb->u.ext2_sb.s_sbh->b_dirt = 1;
sb269fs/ext2/ialloc.csb->s_dirt = 1;
sb270fs/ext2/ialloc.cunlock_super (sb);
sb315fs/ext2/ialloc.cstruct super_block * sb;
sb327fs/ext2/ialloc.csb = dir->i_sb;
sb328fs/ext2/ialloc.cinode->i_sb = sb;
sb329fs/ext2/ialloc.cinode->i_flags = sb->s_flags;
sb330fs/ext2/ialloc.clock_super (sb);
sb331fs/ext2/ialloc.ces = (struct ext2_super_block *) sb->u.ext2_sb.s_sbh->b_data;
sb336fs/ext2/ialloc.cfor (i = 0; i < sb->u.ext2_sb.s_groups_count; i++) {
sb338fs/ext2/ialloc.cif (!sb->u.ext2_sb.s_group_desc[group_desc])
sb340fs/ext2/ialloc.cgdp = (struct ext2_group_desc *) sb->u.ext2_sb.s_group_desc[group_desc]->b_data;
sb345fs/ext2/ialloc.cif (desc == EXT2_DESC_PER_BLOCK(sb)) {
sb351fs/ext2/ialloc.cif (i >= sb->u.ext2_sb.s_groups_count) {
sb352fs/ext2/ialloc.cunlock_super (sb);
sb355fs/ext2/ialloc.cbitmap_nr = load_inode_bitmap (sb, i);
sb356fs/ext2/ialloc.cbh = sb->u.ext2_sb.s_inode_bitmap[bitmap_nr];
sb361fs/ext2/ialloc.cif ((j = find_first_zero (bh->b_data, EXT2_INODES_PER_GROUP(sb))) <
sb362fs/ext2/ialloc.cEXT2_INODES_PER_GROUP(sb)) {
sb370fs/ext2/ialloc.cj += i * EXT2_INODES_PER_GROUP(sb) + 1;
sb371fs/ext2/ialloc.cif (j > sb->u.ext2_sb.s_inodes_count) {
sb379fs/ext2/ialloc.csb->u.ext2_sb.s_group_desc[group_desc]->b_dirt = 1;
sb381fs/ext2/ialloc.csb->u.ext2_sb.s_sbh->b_dirt = 1;
sb382fs/ext2/ialloc.csb->s_dirt = 1;
sb383fs/ext2/ialloc.cinode->i_sb = sb;
sb386fs/ext2/ialloc.cinode->i_dev = sb->s_dev;
sb391fs/ext2/ialloc.cinode->i_blksize = sb->s_blocksize;
sb407fs/ext2/ialloc.cunlock_super (sb);
sb411fs/ext2/ialloc.cunsigned long ext2_count_free_inodes (struct super_block *sb)
sb422fs/ext2/ialloc.clock_super (sb);
sb423fs/ext2/ialloc.ces = (struct ext2_super_block *) sb->u.ext2_sb.s_sbh->b_data;
sb429fs/ext2/ialloc.cfor (i = 0; i < sb->u.ext2_sb.s_groups_count; i++) {
sb431fs/ext2/ialloc.cif (!sb->u.ext2_sb.s_group_desc[group_desc]) {
sb435fs/ext2/ialloc.cgdp = (struct ext2_group_desc *) sb->u.ext2_sb.s_group_desc[group_desc]->b_data;
sb438fs/ext2/ialloc.cbitmap_nr = load_inode_bitmap (sb, i);
sb439fs/ext2/ialloc.cif (sb->u.ext2_sb.s_inode_bitmap[bitmap_nr])
sb440fs/ext2/ialloc.cx = ext2_count_free (sb->u.ext2_sb.s_inode_bitmap[bitmap_nr],
sb441fs/ext2/ialloc.cEXT2_INODES_PER_GROUP(sb) / 8);
sb451fs/ext2/ialloc.cif (desc == EXT2_DESC_PER_BLOCK(sb)) {
sb459fs/ext2/ialloc.cunlock_super (sb);
sb462fs/ext2/ialloc.ces = (struct ext2_super_block *) sb->u.ext2_sb.s_sbh->b_data;
sb34fs/ext2/inode.cvoid ext2_put_super (struct super_block * sb)
sb39fs/ext2/inode.clock_super (sb);
sb40fs/ext2/inode.ces = (struct ext2_super_block *) sb->u.ext2_sb.s_sbh->b_data;
sb42fs/ext2/inode.csb->u.ext2_sb.s_sbh->b_dirt = 1;
sb44fs/ext2/inode.cext2_dcache_invalidate (sb->s_dev);
sb46fs/ext2/inode.csb->s_dev = 0;
sb48fs/ext2/inode.cif (sb->u.ext2_sb.s_group_desc[i])
sb49fs/ext2/inode.cbrelse (sb->u.ext2_sb.s_group_desc[i]);
sb51fs/ext2/inode.cif (sb->u.ext2_sb.s_inode_bitmap[i])
sb52fs/ext2/inode.cbrelse (sb->u.ext2_sb.s_inode_bitmap[i]);
sb54fs/ext2/inode.cif (sb->u.ext2_sb.s_block_bitmap[i])
sb55fs/ext2/inode.cbrelse (sb->u.ext2_sb.s_block_bitmap[i]);
sb56fs/ext2/inode.cunlock_super (sb);
sb70fs/ext2/inode.cstatic int convert_pre_02b_fs (struct super_block * sb,
sb81fs/ext2/inode.cbh2 = bread (sb->s_dev, 2, BLOCK_SIZE);
sb87fs/ext2/inode.cgroups_count = (sb->u.ext2_sb.s_blocks_count - 
sb88fs/ext2/inode.csb->u.ext2_sb.s_first_data_block +
sb89fs/ext2/inode.c(EXT2_BLOCK_SIZE(sb) * 8) - 1) /
sb90fs/ext2/inode.c(EXT2_BLOCK_SIZE(sb) * 8);
sb104fs/ext2/inode.csb->s_magic = EXT2_SUPER_MAGIC;
sb265fs/ext2/inode.cvoid ext2_write_super (struct super_block * sb)
sb273fs/ext2/inode.cif ((sb->s_flags & MS_RDONLY) == 0) {
sb274fs/ext2/inode.ces = (struct ext2_super_block *) sb->u.ext2_sb.s_sbh->b_data;
sb280fs/ext2/inode.csb->u.ext2_sb.s_sbh->b_dirt = 1;
sb281fs/ext2/inode.cbh_count = (sb->u.ext2_sb.s_groups_count +
sb282fs/ext2/inode.cEXT2_DESC_PER_BLOCK(sb) - 1) /
sb283fs/ext2/inode.cEXT2_DESC_PER_BLOCK(sb);
sb284fs/ext2/inode.cfor (i = 0; i < sb->u.ext2_sb.s_groups_count; i++) {
sb285fs/ext2/inode.cblock = sb->u.ext2_sb.s_first_data_block +
sb286fs/ext2/inode.ci * sb->u.ext2_sb.s_blocks_per_group;
sb287fs/ext2/inode.cif (!(bh = bread (sb->s_dev, block, BLOCK_SIZE)))
sb302fs/ext2/inode.cif (!(bh = bread (sb->s_dev, block, sb->s_blocksize)))
sb305fs/ext2/inode.cmemcpy (bh->b_data, sb->u.ext2_sb.s_group_desc[j]->b_data, sb->s_blocksize);
sb312fs/ext2/inode.csb->s_dirt = 0;
sb315fs/ext2/inode.cvoid ext2_statfs (struct super_block * sb, struct statfs * buf)
sb320fs/ext2/inode.cput_fs_long (sb->s_blocksize, &buf->f_bsize);
sb321fs/ext2/inode.cput_fs_long (sb->u.ext2_sb.s_blocks_count << sb->u.ext2_sb.s_log_block_size,
sb323fs/ext2/inode.ctmp = ext2_count_free_blocks (sb);
sb325fs/ext2/inode.cput_fs_long (tmp - sb->u.ext2_sb.s_r_blocks_count, &buf->f_bavail);
sb326fs/ext2/inode.cput_fs_long (sb->u.ext2_sb.s_inodes_count, &buf->f_files);
sb327fs/ext2/inode.cput_fs_long (ext2_count_free_inodes(sb), &buf->f_ffree);
sb77fs/ext2/namei.cstruct super_block * sb;
sb82fs/ext2/namei.csb = dir->i_sb;
sb98fs/ext2/namei.cif ((char *)de >= sb->s_blocksize + bh->b_data) {
sb101fs/ext2/namei.cbh = ext2_bread (dir, offset >> EXT2_BLOCK_SIZE_BITS(sb), 0);
sb188fs/ext2/namei.cstruct super_block * sb;
sb193fs/ext2/namei.csb = dir->i_sb;
sb210fs/ext2/namei.cif ((char *)de >= sb->s_blocksize + bh->b_data) {
sb213fs/ext2/namei.cbh = ext2_bread (dir, offset >> EXT2_BLOCK_SIZE_BITS(sb), 0);
sb218fs/ext2/namei.cbh = ext2_bread (dir, offset >> EXT2_BLOCK_SIZE_BITS(sb), 1);
sb223fs/ext2/namei.cde->rec_len = sb->s_blocksize;
sb224fs/ext2/namei.cdir->i_size += sb->s_blocksize;
sb451fs/ext2/namei.cstruct super_block * sb;
sb453fs/ext2/namei.csb = inode->i_sb;
sb471fs/ext2/namei.cif ((void *) de >= (void *) (bh->b_data + sb->s_blocksize)) {
sb473fs/ext2/namei.cbh = ext2_bread (inode, offset >> EXT2_BLOCK_SIZE_BITS(sb), 1);
sb475fs/ext2/namei.coffset += sb->s_blocksize;
sb290fs/inode.cstruct inode * iget(struct super_block * sb,int nr)
sb294fs/inode.cif (!sb)
sb299fs/inode.cif (inode->i_dev != sb->s_dev || inode->i_ino != nr) {
sb304fs/inode.cif (inode->i_dev != sb->s_dev || inode->i_ino != nr) {
sb349fs/inode.cinode->i_sb = sb;
sb350fs/inode.cinode->i_dev = sb->s_dev;
sb352fs/inode.cinode->i_flags = sb->s_flags;
sb28fs/isofs/inode.cvoid isofs_put_super(struct super_block *sb)
sb30fs/isofs/inode.clock_super(sb);
sb36fs/isofs/inode.csb->s_dev = 0;
sb37fs/isofs/inode.cunlock_super(sb);
sb241fs/isofs/inode.cvoid isofs_statfs (struct super_block *sb, struct statfs *buf)
sb245fs/isofs/inode.cput_fs_long(sb->u.isofs_sb.s_nzones, &buf->f_blocks);
sb248fs/isofs/inode.cput_fs_long(sb->u.isofs_sb.s_ninodes, &buf->f_files);
sb67fs/minix/bitmap.cvoid minix_free_block(struct super_block * sb, int block)
sb72fs/minix/bitmap.cif (!sb) {
sb76fs/minix/bitmap.cif (block < sb->u.minix_sb.s_firstdatazone ||
sb77fs/minix/bitmap.cblock >= sb->u.minix_sb.s_nzones) {
sb81fs/minix/bitmap.cbh = get_hash_table(sb->s_dev,block,BLOCK_SIZE);
sb85fs/minix/bitmap.czone = block - sb->u.minix_sb.s_firstdatazone + 1;
sb88fs/minix/bitmap.cbh = sb->u.minix_sb.s_zmap[zone];
sb94fs/minix/bitmap.cprintk("free_block (%04x:%d): bit already cleared\n",sb->s_dev,block);
sb99fs/minix/bitmap.cint minix_new_block(struct super_block * sb)
sb104fs/minix/bitmap.cif (!sb) {
sb111fs/minix/bitmap.cif ((bh=sb->u.minix_sb.s_zmap[i]) != NULL)
sb121fs/minix/bitmap.cj += i*8192 + sb->u.minix_sb.s_firstdatazone-1;
sb122fs/minix/bitmap.cif (j < sb->u.minix_sb.s_firstdatazone ||
sb123fs/minix/bitmap.cj >= sb->u.minix_sb.s_nzones)
sb125fs/minix/bitmap.cif (!(bh = getblk(sb->s_dev,j,BLOCK_SIZE))) {
sb136fs/minix/bitmap.cunsigned long minix_count_free_blocks(struct super_block *sb)
sb138fs/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))
sb139fs/minix/bitmap.c<< sb->u.minix_sb.s_log_zone_size;
sb180fs/minix/bitmap.cstruct super_block * sb;
sb187fs/minix/bitmap.csb = dir->i_sb;
sb188fs/minix/bitmap.cinode->i_sb = sb;
sb212fs/minix/bitmap.cinode->i_dev = sb->s_dev;
sb223fs/minix/bitmap.cunsigned long minix_count_free_inodes(struct super_block *sb)
sb225fs/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);
sb27fs/minix/inode.cvoid minix_put_super(struct super_block *sb)
sb31fs/minix/inode.clock_super(sb);
sb32fs/minix/inode.csb->s_dev = 0;
sb34fs/minix/inode.cbrelse(sb->u.minix_sb.s_imap[i]);
sb36fs/minix/inode.cbrelse(sb->u.minix_sb.s_zmap[i]);
sb37fs/minix/inode.cunlock_super(sb);
sb129fs/minix/inode.cvoid minix_statfs(struct super_block *sb, struct statfs *buf)
sb135fs/minix/inode.cput_fs_long(sb->u.minix_sb.s_nzones << sb->u.minix_sb.s_log_zone_size, &buf->f_blocks);
sb136fs/minix/inode.ctmp = minix_count_free_blocks(sb);
sb139fs/minix/inode.cput_fs_long(sb->u.minix_sb.s_ninodes, &buf->f_files);
sb140fs/minix/inode.cput_fs_long(minix_count_free_inodes(sb), &buf->f_ffree);
sb18fs/msdos/fat.cint fat_access(struct super_block *sb,int this,int new_value)
sb25fs/msdos/fat.cif (MSDOS_SB(sb)->fat_bits == 16) first = last = this*2;
sb30fs/msdos/fat.cif (!(bh = msdos_sread(sb->s_dev,MSDOS_SB(sb)->fat_start+(first >>
sb40fs/msdos/fat.cif (!(bh2 = msdos_sread(sb->s_dev,MSDOS_SB(sb)->fat_start+(last
sb47fs/msdos/fat.cif (MSDOS_SB(sb)->fat_bits == 16) {
sb62fs/msdos/fat.cif (MSDOS_SB(sb)->fat_bits == 16)
sb77fs/msdos/fat.cfor (copy = 1; copy < MSDOS_SB(sb)->fats; copy++) {
sb78fs/msdos/fat.cif (!(c_bh = msdos_sread(sb->s_dev,MSDOS_SB(sb)->
sb79fs/msdos/fat.cfat_start+(first >> SECTOR_BITS)+MSDOS_SB(sb)->
sb84fs/msdos/fat.cif (!(c_bh2 = msdos_sread(sb->s_dev,
sb85fs/msdos/fat.cMSDOS_SB(sb)->fat_start+(first >>
sb86fs/msdos/fat.cSECTOR_BITS)+MSDOS_SB(sb)->fat_length*copy
sb239fs/msdos/fat.cstruct msdos_sb_info *sb;
sb242fs/msdos/fat.csb = MSDOS_SB(inode->i_sb);
sb245fs/msdos/fat.cif (sector >= sb->dir_entries >> MSDOS_DPS_BITS) return 0;
sb246fs/msdos/fat.creturn sector+sb->dir_start;
sb248fs/msdos/fat.ccluster = sector/sb->cluster_size;
sb249fs/msdos/fat.coffset = sector % sb->cluster_size;
sb251fs/msdos/fat.creturn (cluster-2)*sb->cluster_size+sb->data_start+offset;
sb41fs/msdos/inode.cvoid msdos_put_super(struct super_block *sb)
sb43fs/msdos/inode.ccache_inval_dev(sb->s_dev);
sb44fs/msdos/inode.clock_super(sb);
sb45fs/msdos/inode.csb->s_dev = 0;
sb46fs/msdos/inode.cunlock_super(sb);
sb192fs/msdos/inode.cvoid msdos_statfs(struct super_block *sb,struct statfs *buf)
sb196fs/msdos/inode.cput_fs_long(sb->s_magic,&buf->f_type);
sb197fs/msdos/inode.cput_fs_long(MSDOS_SB(sb)->cluster_size*SECTOR_SIZE,&buf->f_bsize);
sb198fs/msdos/inode.cput_fs_long(MSDOS_SB(sb)->clusters,&buf->f_blocks);
sb199fs/msdos/inode.clock_fat(sb);
sb200fs/msdos/inode.cif (MSDOS_SB(sb)->free_clusters != -1)
sb201fs/msdos/inode.cfree = MSDOS_SB(sb)->free_clusters;
sb204fs/msdos/inode.cfor (this = 2; this < MSDOS_SB(sb)->clusters+2; this++)
sb205fs/msdos/inode.cif (!fat_access(sb,this,-1)) free++;
sb206fs/msdos/inode.cMSDOS_SB(sb)->free_clusters = free;
sb208fs/msdos/inode.cunlock_fat(sb);
sb218fs/msdos/inode.cstruct msdos_sb_info *sb;
sb221fs/msdos/inode.csb = MSDOS_SB(inode->i_sb);
sb222fs/msdos/inode.cif ((sb->cluster_size & 1) || (sb->data_start & 1)) return 0;
sb224fs/msdos/inode.cif (sb->dir_start & 1) return 0;
sb225fs/msdos/inode.creturn (sb->dir_start >> 1)+block;
sb227fs/msdos/inode.ccluster = (block*2)/sb->cluster_size;
sb228fs/msdos/inode.coffset = (block*2) % sb->cluster_size;
sb230fs/msdos/inode.creturn ((cluster-2)*sb->cluster_size+sb->data_start+offset) >> 1;
sb65fs/msdos/misc.cvoid lock_fat(struct super_block *sb)
sb67fs/msdos/misc.cwhile (MSDOS_SB(sb)->fat_lock) sleep_on(&MSDOS_SB(sb)->fat_wait);
sb68fs/msdos/misc.cMSDOS_SB(sb)->fat_lock = 1;
sb72fs/msdos/misc.cvoid unlock_fat(struct super_block *sb)
sb74fs/msdos/misc.cMSDOS_SB(sb)->fat_lock = 0;
sb75fs/msdos/misc.cwake_up(&MSDOS_SB(sb)->fat_wait);
sb312fs/msdos/misc.cstatic int raw_found(struct super_block *sb,int sector,char *name,int *number,
sb319fs/msdos/misc.cif (!(bh = msdos_sread(sb->s_dev,sector,(void **) &data))) return -EIO;
sb346fs/msdos/misc.cstatic int raw_scan_root(struct super_block *sb,char *name,int *number,int *ino)
sb350fs/msdos/misc.cfor (count = 0; count < MSDOS_SB(sb)->dir_entries/MSDOS_DPS; count++) {
sb351fs/msdos/misc.cif ((cluster = raw_found(sb,MSDOS_SB(sb)->dir_start+count,name,
sb358fs/msdos/misc.cstatic int raw_scan_nonroot(struct super_block *sb,int start,char *name,
sb367fs/msdos/misc.cfor (count = 0; count < MSDOS_SB(sb)->cluster_size; count++) {
sb368fs/msdos/misc.cif ((cluster = raw_found(sb,(start-2)*MSDOS_SB(sb)->
sb369fs/msdos/misc.ccluster_size+MSDOS_SB(sb)->data_start+count,name,
sb372fs/msdos/misc.cif (!(start = fat_access(sb,start,-1))) panic("FAT error");
sb382fs/msdos/misc.cstatic int raw_scan(struct super_block *sb,int start,char *name,int number,
sb385fs/msdos/misc.cif (start) return raw_scan_nonroot(sb,start,name,&number,ino);
sb386fs/msdos/misc.celse return raw_scan_root(sb,name,&number,ino);
sb224fs/msdos/namei.cstatic void dump_fat(struct super_block *sb,int start)
sb229fs/msdos/namei.cstart = fat_access(sb,start,-1);
sb107fs/namei.cstruct super_block * sb;
sb114fs/namei.c} else if ((sb = dir->i_sb) && (dir == sb->s_mounted)) {
sb115fs/namei.csb = dir->i_sb;
sb117fs/namei.cdir = sb->s_covered;
sb37fs/nfs/inode.cvoid nfs_put_super(struct super_block *sb)
sb39fs/nfs/inode.cclose_fp(sb->u.nfs_sb.s_server.file);
sb40fs/nfs/inode.clock_super(sb);
sb41fs/nfs/inode.csb->s_dev = 0;
sb42fs/nfs/inode.cunlock_super(sb);
sb53fs/nfs/inode.cstruct super_block *nfs_read_super(struct super_block *sb, void *raw_data)
sb59fs/nfs/inode.cdev_t dev = sb->s_dev;
sb63fs/nfs/inode.csb->s_dev = 0;
sb73fs/nfs/inode.csb->s_dev = 0;
sb78fs/nfs/inode.csb->s_dev = 0;
sb82fs/nfs/inode.clock_super(sb);
sb83fs/nfs/inode.csb->s_blocksize = 1024; /* XXX */
sb84fs/nfs/inode.csb->s_magic = NFS_SUPER_MAGIC;
sb85fs/nfs/inode.csb->s_dev = dev;
sb86fs/nfs/inode.csb->s_op = &nfs_sops;
sb87fs/nfs/inode.cserver = &sb->u.nfs_sb.s_server;
sb109fs/nfs/inode.csb->u.nfs_sb.s_root = data->root;
sb110fs/nfs/inode.cunlock_super(sb);
sb111fs/nfs/inode.cif (!(sb->s_mounted = nfs_fhget(sb, &data->root, NULL))) {
sb112fs/nfs/inode.csb->s_dev = 0;
sb116fs/nfs/inode.creturn sb;
sb119fs/nfs/inode.cvoid nfs_statfs(struct super_block *sb, struct statfs *buf)
sb125fs/nfs/inode.cerror = nfs_proc_statfs(&sb->u.nfs_sb.s_server, &sb->u.nfs_sb.s_root,
sb148fs/nfs/inode.cstruct inode *nfs_fhget(struct super_block *sb, struct nfs_fh *fhandle,
sb155fs/nfs/inode.cif (!sb) {
sb160fs/nfs/inode.cerror = nfs_proc_getattr(&sb->u.nfs_sb.s_server, fhandle,
sb168fs/nfs/inode.cif (!(inode = iget(sb, fattr->fileid))) {
sb172fs/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))) {
sb116fs/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);
sb58fs/proc/inode.cvoid proc_statfs(struct super_block *sb, struct statfs *buf)
sb49fs/super.cvoid __wait_on_super(struct super_block * sb)
sb53fs/super.cadd_wait_queue(&sb->s_wait, &wait);
sb56fs/super.cif (sb->s_lock) {
sb60fs/super.cremove_wait_queue(&sb->s_wait, &wait);
sb66fs/super.cstruct super_block * sb;
sb68fs/super.cfor (sb = super_block + 0 ; sb < super_block + NR_SUPER ; sb++) {
sb69fs/super.cif (!sb->s_dev)
sb71fs/super.cif (dev && sb->s_dev != dev)
sb73fs/super.cwait_on_super(sb);
sb74fs/super.cif (!sb->s_dev || !sb->s_dirt)
sb76fs/super.cif (dev && (dev != sb->s_dev))
sb78fs/super.cif (sb->s_op && sb->s_op->write_super)
sb79fs/super.csb->s_op->write_super(sb);
sb103fs/super.cstruct super_block * sb;
sb110fs/super.cif (!(sb = get_super(dev)))
sb112fs/super.cif (sb->s_covered) {
sb117fs/super.cif (sb->s_op && sb->s_op->put_super)
sb118fs/super.csb->s_op->put_super(sb);
sb196fs/super.cstruct super_block * sb;
sb200fs/super.cif (!(sb=get_super(dev)) || !(sb->s_covered))
sb202fs/super.cif (!sb->s_covered->i_mount)
sb205fs/super.cif (!fs_may_umount(dev, sb->s_mounted))
sb207fs/super.csb->s_covered->i_mount=0;
sb208fs/super.ciput(sb->s_covered);
sb209fs/super.csb->s_covered = NULL;
sb210fs/super.ciput(sb->s_mounted);
sb211fs/super.csb->s_mounted = NULL;
sb212fs/super.cif (sb->s_op && sb->s_op->write_super && sb->s_dirt)
sb213fs/super.csb->s_op->write_super(sb);
sb293fs/super.cstruct super_block * sb;
sb311fs/super.csb = read_super(dev,type,flags,data);
sb312fs/super.cif (!sb || sb->s_covered) {
sb316fs/super.csb->s_covered = dir_i;
sb442fs/super.cstruct super_block * sb;
sb455fs/super.csb = read_super(ROOT_DEV,fs_type->name,0,NULL);
sb456fs/super.cif (sb) {
sb457fs/super.cinode = sb->s_mounted;
sb459fs/super.csb->s_covered = inode;
sb460fs/super.csb->s_flags = 0;
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.cxiafs_unlock_super(sb, sb->u.xiafs_sb.s_zmap_cached);
sb250fs/xiafs/bitmap.cint xiafs_new_zone(struct super_block * sb, u_long prev_addr)
sb255fs/xiafs/bitmap.cif (!sb) {
sb259fs/xiafs/bitmap.cif (prev_addr < sb->u.xiafs_sb.s_firstdatazone || 
sb260fs/xiafs/bitmap.cprev_addr >= sb->u.xiafs_sb.s_nzones) {
sb261fs/xiafs/bitmap.cprev_addr=sb->u.xiafs_sb.s_firstdatazone;
sb263fs/xiafs/bitmap.cprev_znr=prev_addr-sb->u.xiafs_sb.s_firstdatazone+1;
sb264fs/xiafs/bitmap.ctmp=get_free_zbit(sb, prev_znr);
sb267fs/xiafs/bitmap.ctmp += sb->u.xiafs_sb.s_firstdatazone -1;
sb268fs/xiafs/bitmap.cif (!(bh = getblk(sb->s_dev, tmp, XIAFS_ZSIZE(sb)))) {
sb309fs/xiafs/bitmap.cstruct super_block * sb;
sb313fs/xiafs/bitmap.csb = dir->i_sb;
sb316fs/xiafs/bitmap.cinode->i_sb = sb;
sb319fs/xiafs/bitmap.ctmp=get_free_ibit(sb, dir->i_ino); 
sb326fs/xiafs/bitmap.cinode->i_dev = sb->s_dev;
sb352fs/xiafs/bitmap.cunsigned long xiafs_count_free_inodes(struct super_block *sb)
sb359fs/xiafs/bitmap.cizones=sb->u.xiafs_sb.s_imap_zones;
sb361fs/xiafs/bitmap.cbh=get_imap_zone(sb, i << XIAFS_BITS_PER_Z_BITS(sb), &not_que);
sb364fs/xiafs/bitmap.cxiafs_unlock_super(sb, sb->u.xiafs_sb.s_imap_cached);
sb367fs/xiafs/bitmap.ci=izones << XIAFS_BITS_PER_Z_BITS(sb);
sb371fs/xiafs/bitmap.cunsigned long xiafs_count_free_zones(struct super_block *sb)
sb378fs/xiafs/bitmap.czzones=sb->u.xiafs_sb.s_zmap_zones;
sb380fs/xiafs/bitmap.cbh=get_zmap_zone(sb, i << XIAFS_BITS_PER_Z_BITS(sb), &not_que);
sb383fs/xiafs/bitmap.cxiafs_unlock_super(sb, sb->u.xiafs_sb.s_zmap_cached);
sb386fs/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);
sb141fs/xiafs/inode.cvoid xiafs_statfs(struct super_block *sb, struct statfs *buf)
sb146fs/xiafs/inode.cput_fs_long(XIAFS_ZSIZE(sb), &buf->f_bsize);
sb147fs/xiafs/inode.cput_fs_long(sb->u.xiafs_sb.s_ndatazones, &buf->f_blocks);
sb148fs/xiafs/inode.ctmp = xiafs_count_free_zones(sb);
sb151fs/xiafs/inode.cput_fs_long(sb->u.xiafs_sb.s_ninodes, &buf->f_files);
sb152fs/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);
sb357include/linux/fs.hextern struct inode * iget(struct super_block * sb,int nr);
sb160include/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);
sb106include/linux/msdos_fs.hextern void lock_fat(struct super_block *sb);
sb107include/linux/msdos_fs.hextern void unlock_fat(struct super_block *sb);
sb121include/linux/msdos_fs.hextern int fat_access(struct super_block *sb,int this,int new_value);
sb146include/linux/msdos_fs.hextern void msdos_put_super(struct super_block *sb);
sb148include/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, void *data);
sb102include/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(argv[4], &sb)) {
sb102tools/build.cmajor_root = major(sb.st_rdev);
sb103tools/build.cminor_root = minor(sb.st_rdev);
sb54zBoot/xtract.cstruct stat sb;