taglinefilesource code
sb79fs/buffer.cstruct super_block * sb;
sb81fs/buffer.cif (sb = get_super (dev))
sb82fs/buffer.cif (sb->s_op && sb->s_op->write_super && sb->s_dirt)
sb83fs/buffer.csb->s_op->write_super (sb);
sb87fs/ext/bitmap.cstruct super_block * sb;
sb91fs/ext/bitmap.cif (!(sb = get_super(dev)))
sb93fs/ext/bitmap.cif (block < sb->s_firstdatazone || block >= sb->s_nzones)
sb106fs/ext/bitmap.czone = block - sb->s_firstdatazone + 1;
sb109fs/ext/bitmap.cbh = sb->s_zmap[zone];
sb119fs/ext/bitmap.cstruct super_block * sb;
sb122fs/ext/bitmap.cif (!(sb = get_super(dev)))
sb126fs/ext/bitmap.cif (bh=sb->s_zmap[i])
sb134fs/ext/bitmap.cj += i*8192 + sb->s_firstdatazone-1;
sb135fs/ext/bitmap.cif (j >= sb->s_nzones)
sb151fs/ext/bitmap.cunsigned long ext_count_free_blocks(struct super_block *sb)
sb153fs/ext/bitmap.creturn (sb->s_nzones - count_used(sb->s_zmap,sb->s_zmap_blocks,sb->s_nzones))
sb154fs/ext/bitmap.c<< sb->s_log_zone_size;
sb237fs/ext/bitmap.cunsigned long ext_count_free_inodes(struct super_block *sb)
sb239fs/ext/bitmap.creturn sb->s_ninodes - count_used(sb->s_imap,sb->s_imap_blocks,sb->s_ninodes);
sb51fs/ext/freelists.cstruct super_block * sb;
sb55fs/ext/freelists.cif (!(sb = get_super(dev)))
sb57fs/ext/freelists.clock_super (sb);
sb58fs/ext/freelists.cif (block < sb->u.ext_sb.s_firstdatazone || block >= sb->u.ext_sb.s_nzones)
sb60fs/ext/freelists.cbh = get_hash_table(dev, block, sb->s_blocksize);
sb64fs/ext/freelists.cfree_super (sb);
sb72fs/ext/freelists.cif (sb->u.ext_sb.s_zmap[1])
sb73fs/ext/freelists.cefb = (struct ext_free_block *) sb->u.ext_sb.s_zmap[1]->b_data;
sb74fs/ext/freelists.cif (!sb->u.ext_sb.s_zmap[1] || efb->count == 254) {
sb78fs/ext/freelists.cif (sb->u.ext_sb.s_zmap[1])
sb79fs/ext/freelists.cbrelse (sb->u.ext_sb.s_zmap[1]);
sb80fs/ext/freelists.cif (!(sb->u.ext_sb.s_zmap[1] = bread (dev, block, sb->s_blocksize)))
sb82fs/ext/freelists.cefb = (struct ext_free_block *) sb->u.ext_sb.s_zmap[1]->b_data;
sb83fs/ext/freelists.cefb->next = (unsigned long) sb->u.ext_sb.s_zmap[0];
sb85fs/ext/freelists.csb->u.ext_sb.s_zmap[0] = (struct buffer_head *) block;
sb89fs/ext/freelists.csb->u.ext_sb.s_zmap[2] = (struct buffer_head *) (((unsigned long) sb->u.ext_sb.s_zmap[2]) + 1);
sb90fs/ext/freelists.csb->s_dirt = 1;
sb91fs/ext/freelists.csb->u.ext_sb.s_zmap[1]->b_dirt = 1;
sb92fs/ext/freelists.cfree_super (sb);
sb99fs/ext/freelists.cstruct super_block * sb;
sb103fs/ext/freelists.cif (!(sb = get_super(dev)))
sb105fs/ext/freelists.cif (!sb->u.ext_sb.s_zmap[1])
sb107fs/ext/freelists.clock_super (sb);
sb108fs/ext/freelists.cefb = (struct ext_free_block *) sb->u.ext_sb.s_zmap[1]->b_data;
sb111fs/ext/freelists.csb->u.ext_sb.s_zmap[1]->b_dirt = 1;
sb116fs/ext/freelists.cj = (unsigned long) sb->u.ext_sb.s_zmap[0];
sb117fs/ext/freelists.csb->u.ext_sb.s_zmap[0] = (struct buffer_head *) efb->next;
sb118fs/ext/freelists.cbrelse (sb->u.ext_sb.s_zmap[1]);
sb119fs/ext/freelists.cif (!sb->u.ext_sb.s_zmap[0]) {
sb120fs/ext/freelists.csb->u.ext_sb.s_zmap[1] = NULL;
sb122fs/ext/freelists.cif (!(sb->u.ext_sb.s_zmap[1] = bread (dev, (unsigned long) sb->u.ext_sb.s_zmap[0], sb->s_blocksize)))
sb126fs/ext/freelists.cif (j < sb->u.ext_sb.s_firstdatazone || j > sb->u.ext_sb.s_nzones) {
sb130fs/ext/freelists.csb->u.ext_sb.s_zmap[2] = (struct buffer_head *) (((unsigned long) sb->u.ext_sb.s_zmap[2]) - 1);
sb131fs/ext/freelists.csb->s_dirt = 1;
sb133fs/ext/freelists.cif (!(bh=getblk(dev, j, sb->s_blocksize)))
sb144fs/ext/freelists.cfree_super (sb);
sb148fs/ext/freelists.cunsigned long ext_count_free_blocks(struct super_block *sb)
sb155fs/ext/freelists.clock_super (sb);
sb156fs/ext/freelists.cif (!sb->u.ext_sb.s_zmap[1])
sb159fs/ext/freelists.cefb = (struct ext_free_block *) sb->u.ext_sb.s_zmap[1]->b_data;
sb163fs/ext/freelists.cif (!(bh = bread (sb->s_dev, block, sb->s_blocksize))) {
sb175fs/ext/freelists.c(unsigned long) sb->u.ext_sb.s_zmap[2], count);
sb176fs/ext/freelists.cfree_super (sb);
sb179fs/ext/freelists.creturn (unsigned long) sb->u.ext_sb.s_zmap[2];
sb301fs/ext/freelists.cunsigned long ext_count_free_inodes(struct super_block *sb)
sb308fs/ext/freelists.clock_super (sb);
sb309fs/ext/freelists.cif (!sb->u.ext_sb.s_imap[1])
sb312fs/ext/freelists.cefi = ((struct ext_free_inode *) sb->u.ext_sb.s_imap[1]->b_data) +
sb313fs/ext/freelists.c((((unsigned long) sb->u.ext_sb.s_imap[0])-1)%EXT_INODES_PER_BLOCK);
sb317fs/ext/freelists.cif (ino < 1 || ino > sb->u.ext_sb.s_ninodes) {
sb319fs/ext/freelists.c(int) sb->u.ext_sb.s_imap[0],ino);
sb323fs/ext/freelists.cif (!(bh = bread (sb->s_dev, block, sb->s_blocksize))) {
sb336fs/ext/freelists.c(unsigned long) sb->u.ext_sb.s_imap[2], count);
sb337fs/ext/freelists.cfree_super (sb);
sb340fs/ext/freelists.creturn (unsigned long) sb->u.ext_sb.s_imap[2];
sb32fs/ext/inode.cvoid ext_put_super(struct super_block *sb)
sb38fs/ext/inode.clock_super(sb);
sb39fs/ext/inode.csb->s_dev = 0;
sb42fs/ext/inode.cbrelse(sb->u.ext_sb.s_imap[i]);
sb44fs/ext/inode.cbrelse(sb->u.ext_sb.s_zmap[i]);
sb47fs/ext/inode.cif (sb->u.ext_sb.s_imap[1])
sb48fs/ext/inode.cbrelse (sb->u.ext_sb.s_imap[1]);
sb49fs/ext/inode.cif (sb->u.ext_sb.s_zmap[1])
sb50fs/ext/inode.cbrelse (sb->u.ext_sb.s_zmap[1]);
sb52fs/ext/inode.cfree_super(sb);
sb173fs/ext/inode.cvoid ext_write_super (struct super_block *sb)
sb182fs/ext/inode.cif (!(bh = bread(sb->s_dev, 1, BLOCK_SIZE))) {
sb187fs/ext/inode.ces->s_firstfreeblock = (unsigned long) sb->u.ext_sb.s_zmap[0];
sb188fs/ext/inode.ces->s_freeblockscount = (unsigned long) sb->u.ext_sb.s_zmap[2];
sb189fs/ext/inode.ces->s_firstfreeinode = (unsigned long) sb->u.ext_sb.s_imap[0];
sb190fs/ext/inode.ces->s_freeinodescount = (unsigned long) sb->u.ext_sb.s_imap[2];
sb193fs/ext/inode.csb->s_dirt = 0;
sb197fs/ext/inode.cvoid ext_statfs (struct super_block *sb, struct statfs *buf)
sb203fs/ext/inode.cput_fs_long(sb->u.ext_sb.s_nzones << sb->u.ext_sb.s_log_zone_size, &buf->f_blocks);
sb204fs/ext/inode.ctmp = ext_count_free_blocks(sb);
sb207fs/ext/inode.cput_fs_long(sb->u.ext_sb.s_ninodes, &buf->f_files);
sb208fs/ext/inode.cput_fs_long(ext_count_free_inodes(sb), &buf->f_ffree);
sb78fs/minix/bitmap.cstruct super_block * sb;
sb82fs/minix/bitmap.cif (!(sb = get_super(dev)))
sb84fs/minix/bitmap.cif (block < sb->u.minix_sb.s_firstdatazone || block >= sb->u.minix_sb.s_nzones)
sb97fs/minix/bitmap.czone = block - sb->u.minix_sb.s_firstdatazone + 1;
sb100fs/minix/bitmap.cbh = sb->u.minix_sb.s_zmap[zone];
sb110fs/minix/bitmap.cstruct super_block * sb;
sb113fs/minix/bitmap.cif (!(sb = get_super(dev)))
sb117fs/minix/bitmap.cif (bh=sb->u.minix_sb.s_zmap[i])
sb125fs/minix/bitmap.cj += i*8192 + sb->u.minix_sb.s_firstdatazone-1;
sb126fs/minix/bitmap.cif (j >= sb->u.minix_sb.s_nzones)
sb139fs/minix/bitmap.cunsigned long minix_count_free_blocks(struct super_block *sb)
sb141fs/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))
sb142fs/minix/bitmap.c<< sb->u.minix_sb.s_log_zone_size;
sb222fs/minix/bitmap.cunsigned long minix_count_free_inodes(struct super_block *sb)
sb224fs/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);
sb26fs/minix/inode.cvoid minix_put_super(struct super_block *sb)
sb30fs/minix/inode.clock_super(sb);
sb31fs/minix/inode.csb->s_dev = 0;
sb33fs/minix/inode.cbrelse(sb->u.minix_sb.s_imap[i]);
sb35fs/minix/inode.cbrelse(sb->u.minix_sb.s_zmap[i]);
sb36fs/minix/inode.cfree_super(sb);
sb118fs/minix/inode.cvoid minix_statfs (struct super_block *sb, struct statfs *buf)
sb124fs/minix/inode.cput_fs_long(sb->u.minix_sb.s_nzones << sb->u.minix_sb.s_log_zone_size, &buf->f_blocks);
sb125fs/minix/inode.ctmp = minix_count_free_blocks(sb);
sb128fs/minix/inode.cput_fs_long(sb->u.minix_sb.s_ninodes, &buf->f_files);
sb129fs/minix/inode.cput_fs_long(minix_count_free_inodes(sb), &buf->f_ffree);
sb17fs/msdos/fat.cint fat_access(struct super_block *sb,int this,int new_value)
sb24fs/msdos/fat.cif (MSDOS_SB(sb)->fat_bits == 16) first = last = this*2;
sb29fs/msdos/fat.cif (!(bh = msdos_sread(sb->s_dev,MSDOS_SB(sb)->fat_start+(first >>
sb39fs/msdos/fat.cif (!(bh2 = msdos_sread(sb->s_dev,MSDOS_SB(sb)->fat_start+(last
sb46fs/msdos/fat.cif (MSDOS_SB(sb)->fat_bits == 16) {
sb60fs/msdos/fat.cif (MSDOS_SB(sb)->fat_bits == 16)
sb75fs/msdos/fat.cfor (copy = 1; copy < MSDOS_SB(sb)->fats; copy++) {
sb76fs/msdos/fat.cif (!(c_bh = msdos_sread(sb->s_dev,MSDOS_SB(sb)->
sb77fs/msdos/fat.cfat_start+(first >> SECTOR_BITS)+MSDOS_SB(sb)->
sb82fs/msdos/fat.cif (!(c_bh2 = msdos_sread(sb->s_dev,
sb83fs/msdos/fat.cMSDOS_SB(sb)->fat_start+(first >>
sb84fs/msdos/fat.cSECTOR_BITS)+MSDOS_SB(sb)->fat_length*copy
sb229fs/msdos/fat.cstruct msdos_sb_info *sb;
sb232fs/msdos/fat.csb = MSDOS_SB(inode->i_sb);
sb235fs/msdos/fat.cif (sector >= sb->dir_entries >> MSDOS_DPS_BITS) return 0;
sb236fs/msdos/fat.creturn sector+sb->dir_start;
sb238fs/msdos/fat.ccluster = sector/sb->cluster_size;
sb239fs/msdos/fat.coffset = sector % sb->cluster_size;
sb241fs/msdos/fat.creturn (cluster-2)*sb->cluster_size+sb->data_start+offset;
sb37fs/msdos/inode.cvoid msdos_put_super(struct super_block *sb)
sb39fs/msdos/inode.ccache_inval_dev(sb->s_dev);
sb40fs/msdos/inode.clock_super(sb);
sb41fs/msdos/inode.csb->s_dev = 0;
sb42fs/msdos/inode.cfree_super(sb);
sb157fs/msdos/inode.cvoid msdos_statfs(struct super_block *sb,struct statfs *buf)
sb161fs/msdos/inode.ccluster_size = MSDOS_SB(sb)->cluster_size;
sb162fs/msdos/inode.cput_fs_long(sb->s_magic,&buf->f_type);
sb164fs/msdos/inode.cput_fs_long(MSDOS_SB(sb)->clusters*cluster_size,&buf->f_blocks);
sb166fs/msdos/inode.cfor (this = 2; this < MSDOS_SB(sb)->clusters+2; this++)
sb167fs/msdos/inode.cif (!fat_access(sb,this,-1)) free++;
sb178fs/msdos/inode.cstruct msdos_sb_info *sb;
sb181fs/msdos/inode.csb = MSDOS_SB(inode->i_sb);
sb182fs/msdos/inode.cif ((sb->cluster_size & 1) || (sb->data_start & 1)) return 0;
sb184fs/msdos/inode.cif (sb->dir_start & 1) return 0;
sb185fs/msdos/inode.creturn (sb->dir_start >> 1)+block;
sb187fs/msdos/inode.ccluster = (block*2)/sb->cluster_size;
sb188fs/msdos/inode.coffset = (block*2) % sb->cluster_size;
sb190fs/msdos/inode.creturn ((cluster-2)*sb->cluster_size+sb->data_start+offset) >> 1;
sb280fs/msdos/misc.cstatic int raw_found(struct super_block *sb,int sector,char *name,int number,
sb287fs/msdos/misc.cif (!(bh = msdos_sread(sb->s_dev,sector,(void **) &data))) return -EIO;
sb302fs/msdos/misc.cstatic int raw_scan_root(struct super_block *sb,char *name,int number,int *ino)
sb306fs/msdos/misc.cfor (count = 0; count < MSDOS_SB(sb)->dir_entries/MSDOS_DPS; count++) {
sb307fs/msdos/misc.cif ((cluster = raw_found(sb,MSDOS_SB(sb)->dir_start+count,name,
sb314fs/msdos/misc.cstatic int raw_scan_nonroot(struct super_block *sb,int start,char *name,
sb320fs/msdos/misc.cfor (count = 0; count < MSDOS_SB(sb)->cluster_size; count++) {
sb321fs/msdos/misc.cif ((cluster = raw_found(sb,(start-2)*MSDOS_SB(sb)->
sb322fs/msdos/misc.ccluster_size+MSDOS_SB(sb)->data_start+count,name,
sb325fs/msdos/misc.cif (!(start = fat_access(sb,start,-1))) panic("FAT error");
sb332fs/msdos/misc.cstatic int raw_scan(struct super_block *sb,int start,char *name,int number,
sb335fs/msdos/misc.cif (start) return raw_scan_nonroot(sb,start,name,number,ino);
sb336fs/msdos/misc.celse return raw_scan_root(sb,name,number,ino);
sb64fs/namei.cstruct super_block * sb;
sb70fs/namei.celse if ((sb = dir->i_sb) && (dir == sb->s_mounted)) {
sb71fs/namei.csb = dir->i_sb;
sb73fs/namei.cif (dir = sb->s_covered)
sb56fs/super.cvoid lock_super(struct super_block * sb)
sb59fs/super.cwhile (sb->s_lock)
sb60fs/super.csleep_on(&(sb->s_wait));
sb61fs/super.csb->s_lock = 1;
sb65fs/super.cvoid free_super(struct super_block * sb)
sb67fs/super.csb->s_lock = 0;
sb68fs/super.cwake_up(&(sb->s_wait));
sb71fs/super.cvoid wait_on_super(struct super_block * sb)
sb74fs/super.cwhile (sb->s_lock)
sb75fs/super.csleep_on(&(sb->s_wait));
sb99fs/super.cstruct super_block * sb;
sb105fs/super.cif (!(sb = get_super(dev)))
sb107fs/super.cif (sb->s_covered) {
sb111fs/super.cif (sb->s_op && sb->s_op->put_super)
sb112fs/super.csb->s_op->put_super(sb);
sb148fs/super.cstruct super_block * sb;
sb153fs/super.cif (!(sb=get_super(dev)) || !(sb->s_covered))
sb155fs/super.cif (!sb->s_covered->i_mount)
sb159fs/super.cif (inode == sb->s_mounted && inode->i_count == 1)
sb163fs/super.csb->s_covered->i_mount=0;
sb164fs/super.ciput(sb->s_covered);
sb165fs/super.csb->s_covered = NULL;
sb166fs/super.ciput(sb->s_mounted);
sb167fs/super.csb->s_mounted = NULL;
sb168fs/super.cif (sb->s_op && sb->s_op->write_super && sb->s_dirt)
sb169fs/super.csb->s_op->write_super (sb);
sb210fs/super.cstruct super_block * sb;
sb231fs/super.csb = read_super(dev,type,flags,data);
sb232fs/super.cif (!sb || sb->s_covered) {
sb236fs/super.csb->s_flags = flags;
sb237fs/super.csb->s_covered = dir_i;
sb97include/linux/ext_fs.hextern unsigned long ext_count_free_inodes(struct super_block *sb);
sb100include/linux/ext_fs.hextern unsigned long ext_count_free_blocks(struct super_block *sb);
sb208include/linux/fs.hvoid (*put_super)(struct super_block *sb);
sb209include/linux/fs.hvoid (*write_super) (struct super_block *sb);
sb210include/linux/fs.hvoid (*statfs) (struct super_block *sb, struct statfs *buf);
sb214include/linux/fs.hstruct super_block *(*read_super)(struct super_block *sb,void *mode);
sb270include/linux/fs.hextern void lock_super(struct super_block * sb);
sb271include/linux/fs.hextern void free_super(struct super_block * sb);
sb64include/linux/minix_fs.hextern unsigned long minix_count_free_inodes(struct super_block *sb);
sb67include/linux/minix_fs.hextern unsigned long minix_count_free_blocks(struct super_block *sb);
sb127include/linux/msdos_fs.hextern int fat_access(struct super_block *sb,int this,int new_value);
sb152include/linux/msdos_fs.hextern void msdos_put_super(struct super_block *sb);
sb154include/linux/msdos_fs.hextern void msdos_statfs(struct super_block *sb,struct statfs *buf);
sb62tools/build.cstruct stat sb;
sb68tools/build.cif (stat(argv[4], &sb)) {
sb72tools/build.cmajor_root = major(sb.st_rdev);
sb73tools/build.cminor_root = minor(sb.st_rdev);