tag | line | file | source code |
s | 56 | fs/ext/inode.c | struct super_block *ext_read_super(struct super_block *s,void *data) |
s | 60 | fs/ext/inode.c | int dev = s->s_dev,block; |
s | 62 | fs/ext/inode.c | lock_super(s); |
s | 64 | fs/ext/inode.c | s->s_dev=0; |
s | 65 | fs/ext/inode.c | unlock_super(s); |
s | 70 | fs/ext/inode.c | s->s_blocksize = 1024; |
s | 71 | fs/ext/inode.c | s->u.ext_sb.s_ninodes = es->s_ninodes; |
s | 72 | fs/ext/inode.c | s->u.ext_sb.s_nzones = es->s_nzones; |
s | 73 | fs/ext/inode.c | s->u.ext_sb.s_firstdatazone = es->s_firstdatazone; |
s | 74 | fs/ext/inode.c | s->u.ext_sb.s_log_zone_size = es->s_log_zone_size; |
s | 75 | fs/ext/inode.c | s->u.ext_sb.s_max_size = es->s_max_size; |
s | 76 | fs/ext/inode.c | s->s_magic = es->s_magic; |
s | 77 | fs/ext/inode.c | s->u.ext_sb.s_firstfreeblocknumber = es->s_firstfreeblock; |
s | 78 | fs/ext/inode.c | s->u.ext_sb.s_freeblockscount = es->s_freeblockscount; |
s | 79 | fs/ext/inode.c | s->u.ext_sb.s_firstfreeinodenumber = es->s_firstfreeinode; |
s | 80 | fs/ext/inode.c | s->u.ext_sb.s_freeinodescount = es->s_freeinodescount; |
s | 82 | fs/ext/inode.c | if (s->s_magic != EXT_SUPER_MAGIC) { |
s | 83 | fs/ext/inode.c | s->s_dev = 0; |
s | 84 | fs/ext/inode.c | unlock_super(s); |
s | 88 | fs/ext/inode.c | if (!s->u.ext_sb.s_firstfreeblocknumber) |
s | 89 | fs/ext/inode.c | s->u.ext_sb.s_firstfreeblock = NULL; |
s | 91 | fs/ext/inode.c | if (!(s->u.ext_sb.s_firstfreeblock = bread(dev, |
s | 92 | fs/ext/inode.c | s->u.ext_sb.s_firstfreeblocknumber, BLOCK_SIZE))) { |
s | 94 | fs/ext/inode.c | s->s_dev = 0; |
s | 95 | fs/ext/inode.c | unlock_super(s); |
s | 98 | fs/ext/inode.c | if (!s->u.ext_sb.s_firstfreeinodenumber) |
s | 99 | fs/ext/inode.c | s->u.ext_sb.s_firstfreeinodeblock = NULL; |
s | 101 | fs/ext/inode.c | block = 2 + (s->u.ext_sb.s_firstfreeinodenumber - 1) / EXT_INODES_PER_BLOCK; |
s | 102 | fs/ext/inode.c | if (!(s->u.ext_sb.s_firstfreeinodeblock = bread(dev, block, BLOCK_SIZE))) { |
s | 104 | fs/ext/inode.c | brelse(s->u.ext_sb.s_firstfreeblock); |
s | 105 | fs/ext/inode.c | s->s_dev = 0; |
s | 106 | fs/ext/inode.c | unlock_super (s); |
s | 110 | fs/ext/inode.c | unlock_super(s); |
s | 112 | fs/ext/inode.c | s->s_dev = dev; |
s | 113 | fs/ext/inode.c | s->s_op = &ext_sops; |
s | 114 | fs/ext/inode.c | if (!(s->s_mounted = iget(s,EXT_ROOT_INO))) { |
s | 115 | fs/ext/inode.c | s->s_dev=0; |
s | 119 | fs/ext/inode.c | return s; |
s | 108 | fs/ext2/inode.c | struct super_block * ext2_read_super (struct super_block * s, void * data) |
s | 112 | fs/ext2/inode.c | int dev = s->s_dev; |
s | 117 | fs/ext2/inode.c | lock_super (s); |
s | 119 | fs/ext2/inode.c | s->s_dev = 0; |
s | 120 | fs/ext2/inode.c | unlock_super (s); |
s | 125 | fs/ext2/inode.c | s->s_blocksize = EXT2_MIN_BLOCK_SIZE << es->s_log_block_size; |
s | 126 | fs/ext2/inode.c | s->u.ext2_sb.s_inodes_count = es->s_inodes_count; |
s | 127 | fs/ext2/inode.c | s->u.ext2_sb.s_blocks_count = es->s_blocks_count; |
s | 128 | fs/ext2/inode.c | s->u.ext2_sb.s_r_blocks_count = es->s_r_blocks_count; |
s | 129 | fs/ext2/inode.c | s->u.ext2_sb.s_first_data_block = es->s_first_data_block; |
s | 130 | fs/ext2/inode.c | s->u.ext2_sb.s_log_block_size = es->s_log_block_size; |
s | 131 | fs/ext2/inode.c | s->u.ext2_sb.s_log_frag_size = es->s_log_frag_size; |
s | 132 | fs/ext2/inode.c | s->u.ext2_sb.s_frag_size = EXT2_MIN_FRAG_SIZE << |
s | 134 | fs/ext2/inode.c | s->u.ext2_sb.s_frags_per_block = s->s_blocksize / |
s | 135 | fs/ext2/inode.c | s->u.ext2_sb.s_frag_size; |
s | 136 | fs/ext2/inode.c | s->u.ext2_sb.s_blocks_per_group = es->s_blocks_per_group; |
s | 137 | fs/ext2/inode.c | s->u.ext2_sb.s_frags_per_group = es->s_frags_per_group; |
s | 138 | fs/ext2/inode.c | s->u.ext2_sb.s_inodes_per_group = es->s_inodes_per_group; |
s | 139 | fs/ext2/inode.c | s->u.ext2_sb.s_inodes_per_block = s->s_blocksize / |
s | 141 | fs/ext2/inode.c | s->u.ext2_sb.s_desc_per_block = s->s_blocksize / |
s | 143 | fs/ext2/inode.c | s->s_magic = es->s_magic; |
s | 144 | fs/ext2/inode.c | s->u.ext2_sb.s_sbh = bh; |
s | 145 | fs/ext2/inode.c | s->u.ext2_sb.s_rename_lock = 0; |
s | 146 | fs/ext2/inode.c | s->u.ext2_sb.s_rename_wait = NULL; |
s | 147 | fs/ext2/inode.c | if (s->s_magic == EXT2_OLD_SUPER_MAGIC) { |
s | 150 | fs/ext2/inode.c | s->s_dev = 0; |
s | 151 | fs/ext2/inode.c | unlock_super (s); |
s | 159 | fs/ext2/inode.c | if (s->s_flags & MS_RDONLY == 0) { |
s | 160 | fs/ext2/inode.c | s->s_dev = 0; |
s | 161 | fs/ext2/inode.c | unlock_super (s); |
s | 166 | fs/ext2/inode.c | if (!convert_pre_02b_fs (s, bh)) { |
s | 167 | fs/ext2/inode.c | s->s_dev = 0; |
s | 168 | fs/ext2/inode.c | unlock_super (s); |
s | 176 | fs/ext2/inode.c | if (s->s_magic != EXT2_SUPER_MAGIC) { |
s | 177 | fs/ext2/inode.c | s->s_dev = 0; |
s | 178 | fs/ext2/inode.c | unlock_super (s); |
s | 183 | fs/ext2/inode.c | if (s->s_blocksize != s->u.ext2_sb.s_frag_size) { |
s | 184 | fs/ext2/inode.c | s->s_dev = 0; |
s | 185 | fs/ext2/inode.c | unlock_super (s); |
s | 192 | fs/ext2/inode.c | s->u.ext2_sb.s_groups_count = (s->u.ext2_sb.s_blocks_count - |
s | 193 | fs/ext2/inode.c | s->u.ext2_sb.s_first_data_block + |
s | 194 | fs/ext2/inode.c | (EXT2_BLOCK_SIZE(s) * 8) - 1) / |
s | 195 | fs/ext2/inode.c | (EXT2_BLOCK_SIZE(s) * 8); |
s | 197 | fs/ext2/inode.c | s->u.ext2_sb.s_group_desc[i] = NULL; |
s | 198 | fs/ext2/inode.c | bh_count = (s->u.ext2_sb.s_groups_count + |
s | 199 | fs/ext2/inode.c | EXT2_DESC_PER_BLOCK(s) - 1) / |
s | 200 | fs/ext2/inode.c | EXT2_DESC_PER_BLOCK(s); |
s | 202 | fs/ext2/inode.c | s->u.ext2_sb.s_group_desc[i] = bread (dev, i + 2, s->s_blocksize); |
s | 203 | fs/ext2/inode.c | if (!s->u.ext2_sb.s_group_desc[i]) { |
s | 204 | fs/ext2/inode.c | s->s_dev = 0; |
s | 205 | fs/ext2/inode.c | unlock_super (s); |
s | 207 | fs/ext2/inode.c | brelse (s->u.ext2_sb.s_group_desc[i]); |
s | 214 | fs/ext2/inode.c | s->u.ext2_sb.s_inode_bitmap_number[i] = 0; |
s | 215 | fs/ext2/inode.c | s->u.ext2_sb.s_inode_bitmap[i] = NULL; |
s | 216 | fs/ext2/inode.c | s->u.ext2_sb.s_block_bitmap_number[i] = 0; |
s | 217 | fs/ext2/inode.c | s->u.ext2_sb.s_block_bitmap[i] = NULL; |
s | 219 | fs/ext2/inode.c | s->u.ext2_sb.s_loaded_inode_bitmaps = 0; |
s | 220 | fs/ext2/inode.c | s->u.ext2_sb.s_loaded_block_bitmaps = 0; |
s | 221 | fs/ext2/inode.c | unlock_super (s); |
s | 223 | fs/ext2/inode.c | s->s_dev = dev; |
s | 224 | fs/ext2/inode.c | s->s_op = &ext2_sops; |
s | 225 | fs/ext2/inode.c | if (!(s->s_mounted = iget(s, EXT2_ROOT_INO))) { |
s | 226 | fs/ext2/inode.c | s->s_dev = 0; |
s | 228 | fs/ext2/inode.c | if (s->u.ext2_sb.s_group_desc[i]) |
s | 229 | fs/ext2/inode.c | brelse (s->u.ext2_sb.s_group_desc[i]); |
s | 234 | fs/ext2/inode.c | if ((s->s_flags & MS_RDONLY) == 0) { |
s | 238 | fs/ext2/inode.c | s->s_dirt = 1; |
s | 242 | fs/ext2/inode.c | s->u.ext2_sb.s_group_desc[i]->b_dirt = 1; |
s | 243 | fs/ext2/inode.c | s->s_dirt = 1; |
s | 246 | fs/ext2/inode.c | EXT2FS_VERSION, s->s_blocksize, s->u.ext2_sb.s_frag_size, |
s | 247 | fs/ext2/inode.c | s->u.ext2_sb.s_groups_count, |
s | 248 | fs/ext2/inode.c | EXT2_BLOCKS_PER_GROUP(s), EXT2_INODES_PER_GROUP(s)); |
s | 249 | fs/ext2/inode.c | return s; |
s | 94 | fs/isofs/inode.c | struct super_block *isofs_read_super(struct super_block *s,void *data) |
s | 99 | fs/isofs/inode.c | int dev=s->s_dev; |
s | 111 | fs/isofs/inode.c | s->s_dev = 0; |
s | 115 | fs/isofs/inode.c | lock_super(s); |
s | 117 | fs/isofs/inode.c | s->u.isofs_sb.s_high_sierra = high_sierra = 0; /* default is iso9660 */ |
s | 121 | fs/isofs/inode.c | s->s_dev=0; |
s | 124 | fs/isofs/inode.c | unlock_super(s); |
s | 138 | fs/isofs/inode.c | s->u.isofs_sb.s_high_sierra = 1; |
s | 159 | fs/isofs/inode.c | s->s_dev = 0; |
s | 160 | fs/isofs/inode.c | unlock_super(s); |
s | 171 | fs/isofs/inode.c | s->u.isofs_sb.s_nzones = isonum_733 (h_pri->volume_space_size); |
s | 172 | fs/isofs/inode.c | s->u.isofs_sb.s_log_zone_size = isonum_723 (h_pri->logical_block_size); |
s | 173 | fs/isofs/inode.c | s->u.isofs_sb.s_max_size = isonum_733(h_pri->volume_space_size); |
s | 180 | fs/isofs/inode.c | s->u.isofs_sb.s_nzones = isonum_733 (pri->volume_space_size); |
s | 181 | fs/isofs/inode.c | s->u.isofs_sb.s_log_zone_size = isonum_723 (pri->logical_block_size); |
s | 182 | fs/isofs/inode.c | s->u.isofs_sb.s_max_size = isonum_733(pri->volume_space_size); |
s | 185 | fs/isofs/inode.c | s->u.isofs_sb.s_ninodes = 0; /* No way to figure this out easily */ |
s | 187 | fs/isofs/inode.c | s->u.isofs_sb.s_firstdatazone = isonum_733( rootp->extent) << |
s | 189 | fs/isofs/inode.c | s->s_magic = ISOFS_SUPER_MAGIC; |
s | 196 | fs/isofs/inode.c | s->s_flags = MS_RDONLY /* | MS_NODEV | MS_NOSUID */; |
s | 198 | fs/isofs/inode.c | if(s->u.isofs_sb.s_log_zone_size != (1 << ISOFS_BLOCK_BITS)) { |
s | 205 | fs/isofs/inode.c | printk("Max size:%d Log zone size:%d\n",s->u.isofs_sb.s_max_size, |
s | 206 | fs/isofs/inode.c | s->u.isofs_sb.s_log_zone_size); |
s | 207 | fs/isofs/inode.c | printk("First datazone:%d Root inode number %d\n",s->u.isofs_sb.s_firstdatazone, |
s | 210 | fs/isofs/inode.c | unlock_super(s); |
s | 213 | fs/isofs/inode.c | s->s_dev = dev; |
s | 214 | fs/isofs/inode.c | s->s_op = &isofs_sops; |
s | 215 | fs/isofs/inode.c | s->u.isofs_sb.s_mapping = map; |
s | 216 | fs/isofs/inode.c | s->u.isofs_sb.s_rock = (rock == 'y' ? 1 : 0); |
s | 217 | fs/isofs/inode.c | s->u.isofs_sb.s_conversion = conversion; |
s | 218 | fs/isofs/inode.c | s->u.isofs_sb.s_cruft = cruft; |
s | 219 | fs/isofs/inode.c | s->s_blocksize = ISOFS_BUFFER_SIZE; |
s | 220 | fs/isofs/inode.c | s->s_mounted = iget(s, isonum_733 (rootp->extent) << ISOFS_BLOCK_BITS); |
s | 221 | fs/isofs/inode.c | unlock_super(s); |
s | 223 | fs/isofs/inode.c | if (!(s->s_mounted)) { |
s | 224 | fs/isofs/inode.c | s->s_dev=0; |
s | 228 | fs/isofs/inode.c | if(MAJOR(s->s_dev) == 11) { |
s | 230 | fs/isofs/inode.c | if(check_cdrom_media_change(s->s_dev, 0)) |
s | 233 | fs/isofs/inode.c | return s; |
s | 236 | fs/isofs/inode.c | s->s_dev = 0; |
s | 237 | fs/isofs/inode.c | unlock_super(s); |
s | 51 | fs/minix/inode.c | struct super_block *minix_read_super(struct super_block *s,void *data) |
s | 55 | fs/minix/inode.c | int i,dev=s->s_dev,block; |
s | 59 | fs/minix/inode.c | lock_super(s); |
s | 61 | fs/minix/inode.c | s->s_dev=0; |
s | 62 | fs/minix/inode.c | unlock_super(s); |
s | 67 | fs/minix/inode.c | s->s_blocksize = 1024; |
s | 68 | fs/minix/inode.c | s->u.minix_sb.s_ninodes = ms->s_ninodes; |
s | 69 | fs/minix/inode.c | s->u.minix_sb.s_nzones = ms->s_nzones; |
s | 70 | fs/minix/inode.c | s->u.minix_sb.s_imap_blocks = ms->s_imap_blocks; |
s | 71 | fs/minix/inode.c | s->u.minix_sb.s_zmap_blocks = ms->s_zmap_blocks; |
s | 72 | fs/minix/inode.c | s->u.minix_sb.s_firstdatazone = ms->s_firstdatazone; |
s | 73 | fs/minix/inode.c | s->u.minix_sb.s_log_zone_size = ms->s_log_zone_size; |
s | 74 | fs/minix/inode.c | s->u.minix_sb.s_max_size = ms->s_max_size; |
s | 75 | fs/minix/inode.c | s->s_magic = ms->s_magic; |
s | 77 | fs/minix/inode.c | if (s->s_magic == MINIX_SUPER_MAGIC) { |
s | 78 | fs/minix/inode.c | s->u.minix_sb.s_dirsize = 16; |
s | 79 | fs/minix/inode.c | s->u.minix_sb.s_namelen = 14; |
s | 80 | fs/minix/inode.c | } else if (s->s_magic == MINIX_SUPER_MAGIC2) { |
s | 81 | fs/minix/inode.c | s->u.minix_sb.s_dirsize = 32; |
s | 82 | fs/minix/inode.c | s->u.minix_sb.s_namelen = 30; |
s | 84 | fs/minix/inode.c | s->s_dev = 0; |
s | 85 | fs/minix/inode.c | unlock_super(s); |
s | 90 | fs/minix/inode.c | s->u.minix_sb.s_imap[i] = NULL; |
s | 92 | fs/minix/inode.c | s->u.minix_sb.s_zmap[i] = NULL; |
s | 94 | fs/minix/inode.c | for (i=0 ; i < s->u.minix_sb.s_imap_blocks ; i++) |
s | 95 | fs/minix/inode.c | if ((s->u.minix_sb.s_imap[i]=bread(dev,block,BLOCK_SIZE)) != NULL) |
s | 99 | fs/minix/inode.c | for (i=0 ; i < s->u.minix_sb.s_zmap_blocks ; i++) |
s | 100 | fs/minix/inode.c | if ((s->u.minix_sb.s_zmap[i]=bread(dev,block,BLOCK_SIZE)) != NULL) |
s | 104 | fs/minix/inode.c | if (block != 2+s->u.minix_sb.s_imap_blocks+s->u.minix_sb.s_zmap_blocks) { |
s | 106 | fs/minix/inode.c | brelse(s->u.minix_sb.s_imap[i]); |
s | 108 | fs/minix/inode.c | brelse(s->u.minix_sb.s_zmap[i]); |
s | 109 | fs/minix/inode.c | s->s_dev=0; |
s | 110 | fs/minix/inode.c | unlock_super(s); |
s | 114 | fs/minix/inode.c | s->u.minix_sb.s_imap[0]->b_data[0] |= 1; |
s | 115 | fs/minix/inode.c | s->u.minix_sb.s_zmap[0]->b_data[0] |= 1; |
s | 117 | fs/minix/inode.c | s->s_dev = dev; |
s | 118 | fs/minix/inode.c | s->s_op = &minix_sops; |
s | 119 | fs/minix/inode.c | s->s_mounted = iget(s,MINIX_ROOT_INO); |
s | 120 | fs/minix/inode.c | unlock_super(s); |
s | 121 | fs/minix/inode.c | if (!s->s_mounted) { |
s | 122 | fs/minix/inode.c | s->s_dev = 0; |
s | 126 | fs/minix/inode.c | return s; |
s | 120 | fs/msdos/inode.c | struct super_block *msdos_read_super(struct super_block *s,void *data) |
s | 131 | fs/msdos/inode.c | s->s_dev = 0; |
s | 135 | fs/msdos/inode.c | lock_super(s); |
s | 136 | fs/msdos/inode.c | bh = bread(s->s_dev, 0, BLOCK_SIZE); |
s | 137 | fs/msdos/inode.c | unlock_super(s); |
s | 139 | fs/msdos/inode.c | s->s_dev = 0; |
s | 144 | fs/msdos/inode.c | s->s_blocksize = 1024; /* we cannot handle anything else yet */ |
s | 145 | fs/msdos/inode.c | MSDOS_SB(s)->cluster_size = b->cluster_size; |
s | 146 | fs/msdos/inode.c | MSDOS_SB(s)->fats = b->fats; |
s | 147 | fs/msdos/inode.c | MSDOS_SB(s)->fat_start = b->reserved; |
s | 148 | fs/msdos/inode.c | MSDOS_SB(s)->fat_length = b->fat_length; |
s | 149 | fs/msdos/inode.c | MSDOS_SB(s)->dir_start = b->reserved+b->fats*b->fat_length; |
s | 150 | fs/msdos/inode.c | MSDOS_SB(s)->dir_entries = *((unsigned short *) &b->dir_entries); |
s | 151 | fs/msdos/inode.c | MSDOS_SB(s)->data_start = MSDOS_SB(s)->dir_start+((MSDOS_SB(s)-> |
s | 154 | fs/msdos/inode.c | &b->sectors) : b->total_sect)-MSDOS_SB(s)->data_start; |
s | 155 | fs/msdos/inode.c | MSDOS_SB(s)->clusters = b->cluster_size ? data_sectors/b->cluster_size : |
s | 157 | fs/msdos/inode.c | MSDOS_SB(s)->fat_bits = MSDOS_SB(s)->clusters > MSDOS_FAT12 ? 16 : 12; |
s | 160 | fs/msdos/inode.c | MSDOS_SB(s)->fat_bits,check,conversion,uid,gid,umask); |
s | 162 | fs/msdos/inode.c | b->media,MSDOS_SB(s)->cluster_size,MSDOS_SB(s)->fats,MSDOS_SB(s)->fat_start, |
s | 163 | fs/msdos/inode.c | MSDOS_SB(s)->fat_length,MSDOS_SB(s)->dir_start,MSDOS_SB(s)->dir_entries, |
s | 164 | fs/msdos/inode.c | MSDOS_SB(s)->data_start,*(unsigned short *) &b->sectors,b->total_sect); |
s | 165 | fs/msdos/inode.c | if (!MSDOS_SB(s)->fats || (MSDOS_SB(s)->dir_entries & (MSDOS_DPS-1)) |
s | 166 | fs/msdos/inode.c | || !b->cluster_size || MSDOS_SB(s)->clusters+2 > MSDOS_SB(s)-> |
s | 167 | fs/msdos/inode.c | fat_length*SECTOR_SIZE*8/MSDOS_SB(s)->fat_bits) { |
s | 168 | fs/msdos/inode.c | s->s_dev = 0; |
s | 172 | fs/msdos/inode.c | s->s_magic = MSDOS_SUPER_MAGIC; |
s | 173 | fs/msdos/inode.c | MSDOS_SB(s)->name_check = check; |
s | 174 | fs/msdos/inode.c | MSDOS_SB(s)->conversion = conversion; |
s | 176 | fs/msdos/inode.c | s->s_op = &msdos_sops; |
s | 177 | fs/msdos/inode.c | MSDOS_SB(s)->fs_uid = uid; |
s | 178 | fs/msdos/inode.c | MSDOS_SB(s)->fs_gid = gid; |
s | 179 | fs/msdos/inode.c | MSDOS_SB(s)->fs_umask = umask; |
s | 180 | fs/msdos/inode.c | MSDOS_SB(s)->free_clusters = -1; /* don't know yet */ |
s | 181 | fs/msdos/inode.c | MSDOS_SB(s)->fat_wait = NULL; |
s | 182 | fs/msdos/inode.c | MSDOS_SB(s)->fat_lock = 0; |
s | 183 | fs/msdos/inode.c | if (!(s->s_mounted = iget(s,MSDOS_ROOT_INO))) { |
s | 184 | fs/msdos/inode.c | s->s_dev = 0; |
s | 188 | fs/msdos/inode.c | return s; |
s | 43 | fs/proc/inode.c | struct super_block *proc_read_super(struct super_block *s,void *data) |
s | 45 | fs/proc/inode.c | lock_super(s); |
s | 46 | fs/proc/inode.c | s->s_blocksize = 1024; |
s | 47 | fs/proc/inode.c | s->s_magic = PROC_SUPER_MAGIC; |
s | 48 | fs/proc/inode.c | s->s_op = &proc_sops; |
s | 49 | fs/proc/inode.c | unlock_super(s); |
s | 50 | fs/proc/inode.c | if (!(s->s_mounted = iget(s,PROC_ROOT_INO))) { |
s | 51 | fs/proc/inode.c | s->s_dev = 0; |
s | 55 | fs/proc/inode.c | return s; |
s | 85 | fs/super.c | struct super_block * s; |
s | 89 | fs/super.c | s = 0+super_block; |
s | 90 | fs/super.c | while (s < NR_SUPER+super_block) |
s | 91 | fs/super.c | if (s->s_dev == dev) { |
s | 92 | fs/super.c | wait_on_super(s); |
s | 93 | fs/super.c | if (s->s_dev == dev) |
s | 94 | fs/super.c | return s; |
s | 95 | fs/super.c | s = 0+super_block; |
s | 97 | fs/super.c | s++; |
s | 123 | fs/super.c | struct super_block * s; |
s | 129 | fs/super.c | s = get_super(dev); |
s | 130 | fs/super.c | if (s) |
s | 131 | fs/super.c | return s; |
s | 137 | fs/super.c | for (s = 0+super_block ;; s++) { |
s | 138 | fs/super.c | if (s >= NR_SUPER+super_block) |
s | 140 | fs/super.c | if (!s->s_dev) |
s | 143 | fs/super.c | s->s_dev = dev; |
s | 144 | fs/super.c | s->s_flags = flags; |
s | 145 | fs/super.c | if (!type->read_super(s,data)) { |
s | 146 | fs/super.c | s->s_dev = 0; |
s | 149 | fs/super.c | s->s_dev = dev; |
s | 150 | fs/super.c | s->s_covered = NULL; |
s | 151 | fs/super.c | s->s_rd_only = 0; |
s | 152 | fs/super.c | s->s_dirt = 0; |
s | 153 | fs/super.c | return s; |
s | 58 | fs/xiafs/inode.c | struct super_block *xiafs_read_super(struct super_block *s, void *data) |
s | 64 | fs/xiafs/inode.c | dev=s->s_dev; |
s | 65 | fs/xiafs/inode.c | lock_super(s); |
s | 67 | fs/xiafs/inode.c | s->s_dev=0; |
s | 68 | fs/xiafs/inode.c | unlock_super(s); |
s | 73 | fs/xiafs/inode.c | s->s_magic = sp->s_magic; |
s | 74 | fs/xiafs/inode.c | if (s->s_magic != _XIAFS_SUPER_MAGIC) { |
s | 75 | fs/xiafs/inode.c | s->s_dev = 0; |
s | 76 | fs/xiafs/inode.c | unlock_super(s); |
s | 81 | fs/xiafs/inode.c | s->s_blocksize = sp->s_zone_size; |
s | 82 | fs/xiafs/inode.c | s->u.xiafs_sb.s_nzones = sp->s_nzones; |
s | 83 | fs/xiafs/inode.c | s->u.xiafs_sb.s_ninodes = sp->s_ninodes; |
s | 84 | fs/xiafs/inode.c | s->u.xiafs_sb.s_ndatazones = sp->s_ndatazones; |
s | 85 | fs/xiafs/inode.c | s->u.xiafs_sb.s_imap_zones = sp->s_imap_zones; |
s | 86 | fs/xiafs/inode.c | s->u.xiafs_sb.s_zmap_zones = sp->s_zmap_zones; |
s | 87 | fs/xiafs/inode.c | s->u.xiafs_sb.s_firstdatazone = sp->s_firstdatazone; |
s | 88 | fs/xiafs/inode.c | s->u.xiafs_sb.s_zone_shift = sp->s_zone_shift; |
s | 89 | fs/xiafs/inode.c | s->u.xiafs_sb.s_max_size = sp->s_max_size; |
s | 92 | fs/xiafs/inode.c | s->u.xiafs_sb.s_imap_buf[i] = NULL; |
s | 93 | fs/xiafs/inode.c | s->u.xiafs_sb.s_imap_iznr[i] = -1; |
s | 96 | fs/xiafs/inode.c | s->u.xiafs_sb.s_zmap_buf[i] = NULL; |
s | 97 | fs/xiafs/inode.c | s->u.xiafs_sb.s_zmap_zznr[i] = -1; |
s | 100 | fs/xiafs/inode.c | if ( s->u.xiafs_sb.s_imap_zones > _XIAFS_IMAP_SLOTS ) |
s | 101 | fs/xiafs/inode.c | s->u.xiafs_sb.s_imap_cached=1; |
s | 103 | fs/xiafs/inode.c | s->u.xiafs_sb.s_imap_cached=0; |
s | 104 | fs/xiafs/inode.c | for (i=0 ; i < s->u.xiafs_sb.s_imap_zones ; i++) { |
s | 105 | fs/xiafs/inode.c | if (!(s->u.xiafs_sb.s_imap_buf[i]=bread(dev, z++, XIAFS_ZSIZE(s)))) |
s | 107 | fs/xiafs/inode.c | s->u.xiafs_sb.s_imap_iznr[i]=i; |
s | 110 | fs/xiafs/inode.c | if ( s->u.xiafs_sb.s_zmap_zones > _XIAFS_ZMAP_SLOTS ) |
s | 111 | fs/xiafs/inode.c | s->u.xiafs_sb.s_zmap_cached=1; |
s | 113 | fs/xiafs/inode.c | s->u.xiafs_sb.s_zmap_cached=0; |
s | 114 | fs/xiafs/inode.c | for (i=0 ; i < s->u.xiafs_sb.s_zmap_zones ; i++) { |
s | 115 | fs/xiafs/inode.c | if (!(s->u.xiafs_sb.s_zmap_buf[i]=bread(dev, z++, XIAFS_ZSIZE(s)))) |
s | 117 | fs/xiafs/inode.c | s->u.xiafs_sb.s_zmap_zznr[i]=i; |
s | 121 | fs/xiafs/inode.c | s->s_dev = dev; |
s | 122 | fs/xiafs/inode.c | s->s_op = &xiafs_sops; |
s | 123 | fs/xiafs/inode.c | s->s_mounted = iget(s, _XIAFS_ROOT_INO); |
s | 124 | fs/xiafs/inode.c | if (!s->s_mounted) |
s | 126 | fs/xiafs/inode.c | unlock_super(s); |
s | 128 | fs/xiafs/inode.c | return s; |
s | 132 | fs/xiafs/inode.c | brelse(s->u.xiafs_sb.s_imap_buf[i]); |
s | 134 | fs/xiafs/inode.c | brelse(s->u.xiafs_sb.s_zmap_buf[i]); |
s | 135 | fs/xiafs/inode.c | s->s_dev=0; |
s | 136 | fs/xiafs/inode.c | unlock_super(s); |
s | 49 | include/linux/ext2_fs.h | # define EXT2_BLOCK_SIZE(s) ((s)->s_blocksize) |
s | 51 | include/linux/ext2_fs.h | # define EXT2_BLOCK_SIZE(s) (EXT2_MIN_BLOCK_SIZE << (s)->s_log_block_size) |
s | 53 | include/linux/ext2_fs.h | #define EXT2_ADDR_PER_BLOCK(s) (EXT2_BLOCK_SIZE(s) / sizeof (unsigned long)) |
s | 55 | include/linux/ext2_fs.h | # define EXT2_BLOCK_SIZE_BITS(s) ((s)->u.ext2_sb.s_log_block_size + 10) |
s | 57 | include/linux/ext2_fs.h | # define EXT2_BLOCK_SIZE_BITS(s) ((s)->s_log_block_size + 10) |
s | 59 | include/linux/ext2_fs.h | #define EXT2_INODES_PER_BLOCK(s) (EXT2_BLOCK_SIZE(s) / sizeof (struct ext2_inode)) |
s | 68 | include/linux/ext2_fs.h | # define EXT2_FRAG_SIZE(s) ((s)->u.ext2_sb.s_frag_size) |
s | 69 | include/linux/ext2_fs.h | # define EXT2_FRAGS_PER_BLOCK(s) ((s)->u.ext2_sb.s_frags_per_block) |
s | 71 | include/linux/ext2_fs.h | # define EXT2_FRAG_SIZE(s) (EXT2_MIN_FRAG_SIZE << (s)->s_log_frag_size) |
s | 72 | include/linux/ext2_fs.h | # define EXT2_FRAGS_PER_BLOCK(s) (EXT2_BLOCK_SIZE(s) / EXT2_FRAG_SIZE(s)) |
s | 103 | include/linux/ext2_fs.h | # define EXT2_BLOCKS_PER_GROUP(s) ((s)->u.ext2_sb.s_blocks_per_group) |
s | 104 | include/linux/ext2_fs.h | # define EXT2_DESC_PER_BLOCK(s) ((s)->u.ext2_sb.s_desc_per_block) |
s | 105 | include/linux/ext2_fs.h | # define EXT2_INODES_PER_GROUP(s) ((s)->u.ext2_sb.s_inodes_per_group) |
s | 107 | include/linux/ext2_fs.h | # define EXT2_BLOCKS_PER_GROUP(s) ((s)->s_blocks_per_group) |
s | 108 | include/linux/ext2_fs.h | # define EXT2_DESC_PER_BLOCK(s) (EXT2_BLOCK_SIZE(s) / sizeof (struct ext2_group_desc)) |
s | 109 | include/linux/ext2_fs.h | # define EXT2_INODES_PER_GROUP(s) ((s)->s_inodes_per_group) |
s | 36 | include/linux/msdos_fs.h | #define MSDOS_SB(s) (&((s)->u.msdos_sb)) |
s | 147 | include/linux/msdos_fs.h | extern struct super_block *msdos_read_super(struct super_block *s,void *data); |
s | 123 | include/linux/string.h | extern inline char * strchr(const char * s,char c) |
s | 136 | include/linux/string.h | :"=a" (__res):"S" (s),"0" (c):"si"); |
s | 140 | include/linux/string.h | extern inline char * strrchr(const char * s,char c) |
s | 152 | include/linux/string.h | :"=d" (__res):"0" (0),"S" (s),"a" (c):"ax","si"); |
s | 258 | include/linux/string.h | extern inline size_t strlen(const char * s) |
s | 266 | include/linux/string.h | :"=c" (__res):"D" (s),"a" (0),"0" (0xffffffff):"di"); |
s | 272 | include/linux/string.h | extern inline char * strtok(char * s,const char * ct) |
s | 326 | include/linux/string.h | :"0" (___strtok),"1" (s),"g" (ct) |
s | 399 | include/linux/string.h | extern inline void * memset(void * s,char c,size_t count) |
s | 404 | include/linux/string.h | ::"a" (c),"D" (s),"c" (count) |
s | 406 | include/linux/string.h | return s; |
s | 47 | kernel/FPU-emu/reg_ld_str.c | long double *s = (long double *)FPU_data_address; |
s | 53 | kernel/FPU-emu/reg_ld_str.c | sigl = get_fs_long((unsigned long *) s); |
s | 54 | kernel/FPU-emu/reg_ld_str.c | sigh = get_fs_long(1 + (unsigned long *) s); |
s | 55 | kernel/FPU-emu/reg_ld_str.c | exp = get_fs_word(4 + (unsigned short *) s); |
s | 248 | kernel/FPU-emu/reg_ld_str.c | long long s; |
s | 251 | kernel/FPU-emu/reg_ld_str.c | ((unsigned long *)&s)[0] = get_fs_long((unsigned long *) _s); |
s | 252 | kernel/FPU-emu/reg_ld_str.c | ((unsigned long *)&s)[1] = get_fs_long(1 + (unsigned long *) _s); |
s | 255 | kernel/FPU-emu/reg_ld_str.c | if (s == 0) |
s | 258 | kernel/FPU-emu/reg_ld_str.c | if (s > 0) |
s | 262 | kernel/FPU-emu/reg_ld_str.c | s = -s; |
s | 267 | kernel/FPU-emu/reg_ld_str.c | *((long long *)&FPU_loaded_data.sigl) = s; |
s | 278 | kernel/FPU-emu/reg_ld_str.c | long s; |
s | 282 | kernel/FPU-emu/reg_ld_str.c | s = (long)get_fs_long((unsigned long *) _s); |
s | 285 | kernel/FPU-emu/reg_ld_str.c | if (s == 0) |
s | 288 | kernel/FPU-emu/reg_ld_str.c | if (s > 0) |
s | 292 | kernel/FPU-emu/reg_ld_str.c | s = -s; |
s | 297 | kernel/FPU-emu/reg_ld_str.c | FPU_loaded_data.sigh = s; |
s | 309 | kernel/FPU-emu/reg_ld_str.c | int s, e; |
s | 312 | kernel/FPU-emu/reg_ld_str.c | s = (int)get_fs_word((unsigned short *) _s); |
s | 315 | kernel/FPU-emu/reg_ld_str.c | if (s == 0) |
s | 318 | kernel/FPU-emu/reg_ld_str.c | if (s > 0) |
s | 322 | kernel/FPU-emu/reg_ld_str.c | s = -s; |
s | 327 | kernel/FPU-emu/reg_ld_str.c | FPU_loaded_data.sigh = s << 16; |
s | 339 | kernel/FPU-emu/reg_ld_str.c | char *s = (char *)FPU_data_address; |
s | 348 | kernel/FPU-emu/reg_ld_str.c | bcd = (unsigned char)get_fs_byte((unsigned char *) s+pos); |
s | 359 | kernel/FPU-emu/reg_ld_str.c | ((unsigned char)get_fs_byte((unsigned char *) s+9)) & 0x80 ? |
s | 1073 | kernel/FPU-emu/reg_ld_str.c | char *s = (char *)FPU_data_address; |
s | 1079 | kernel/FPU-emu/reg_ld_str.c | control_word = get_fs_word((unsigned short *) s); |
s | 1080 | kernel/FPU-emu/reg_ld_str.c | status_word = get_fs_word((unsigned short *) (s+4)); |
s | 1081 | kernel/FPU-emu/reg_ld_str.c | tag_word = get_fs_word((unsigned short *) (s+8)); |
s | 1082 | kernel/FPU-emu/reg_ld_str.c | ip_offset = get_fs_long((unsigned long *) (s+0x0c)); |
s | 1083 | kernel/FPU-emu/reg_ld_str.c | cs_selector = get_fs_long((unsigned long *) (s+0x10)); |
s | 1084 | kernel/FPU-emu/reg_ld_str.c | data_operand_offset = get_fs_long((unsigned long *) (s+0x14)); |
s | 1085 | kernel/FPU-emu/reg_ld_str.c | operand_selector = get_fs_long((unsigned long *) (s+0x18)); |
s | 1114 | kernel/FPU-emu/reg_ld_str.c | return s + 0x1c; |
s | 1122 | kernel/FPU-emu/reg_ld_str.c | FPU_REG *s = (FPU_REG *)fldenv(); |
s | 1127 | kernel/FPU-emu/reg_ld_str.c | FPU_data_address = (void *)&(s[i]); |
s | 91 | kernel/blk_drv/ramdisk.c | struct minix_super_block s; |
s | 108 | kernel/blk_drv/ramdisk.c | *((struct minix_super_block *) &s) = *((struct minix_super_block *) bh->b_data); |
s | 110 | kernel/blk_drv/ramdisk.c | if (s.s_magic != MINIX_SUPER_MAGIC) |
s | 113 | kernel/blk_drv/ramdisk.c | nblocks = s.s_nzones << s.s_log_zone_size; |
s | 494 | kernel/blk_drv/scsi/ultrastor.c | unsigned int s = config.heads * config.sectors; |
s | 498 | kernel/blk_drv/scsi/ultrastor.c | info[2] = (size + (s - 1)) / s; |
s | 1220 | kernel/chr_drv/console.c | void * memsetw(void * s,unsigned short c,int count) |
s | 1225 | kernel/chr_drv/console.c | ::"a" (c),"D" (s),"c" (count) |
s | 1227 | kernel/chr_drv/console.c | return s; |
s | 16 | kernel/panic.c | volatile void panic(const char * s) |
s | 18 | kernel/panic.c | printk("Kernel panic: %s\n",s); |
s | 45 | kernel/vsprintf.c | static int skip_atoi(const char **s) |
s | 49 | kernel/vsprintf.c | while (is_digit(**s)) |
s | 50 | kernel/vsprintf.c | i = i*10 + *((*s)++) - '0'; |
s | 124 | kernel/vsprintf.c | char *s; |
s | 197 | kernel/vsprintf.c | s = va_arg(args, char *); |
s | 198 | kernel/vsprintf.c | len = strlen(s); |
s | 208 | kernel/vsprintf.c | *str++ = *s++; |
s | 1803 | net/tcp/sock.c | volatile struct sock *s; |
s | 1814 | net/tcp/sock.c | for (s=prot->sock_array[num&(SOCK_ARRAY_SIZE-1)]; s != NULL; s=s->next) |
s | 1816 | net/tcp/sock.c | if (s->num == num) |
s | 1819 | net/tcp/sock.c | if (!ip_addr_match (s->daddr, raddr)) |
s | 1821 | net/tcp/sock.c | if (s->dummy_th.dest != rnum && s->dummy_th.dest != 0) |
s | 1823 | net/tcp/sock.c | if (!ip_addr_match (s->saddr, laddr)) |
s | 1825 | net/tcp/sock.c | return (s); |
s | 50 | tools/build.c | short s[2]; |
s | 71 | tools/build.c | return t.s[0]; |
s | 22 | zBoot/gzip.h | # define memzero(s, n) memset ((s), 0, (n)) |
s | 27 | zBoot/gzip.h | # define memcpy(d, s, n) bcopy((s), (d), (n)) |
s | 29 | zBoot/gzip.h | # define memzero(s, n) bzero((s), (n)) |
s | 268 | zBoot/gzip.h | extern ulg updcrc OF((uch *s, unsigned n)); |
s | 273 | zBoot/gzip.h | extern char *strlwr OF((char *s)); |
s | 271 | zBoot/inflate.c | int huft_build(b, n, s, d, e, t, m) |
s | 274 | zBoot/inflate.c | unsigned s; /* number of simple-valued codes (0..s-1) */ |
s | 448 | zBoot/inflate.c | else if (*p < s) |
s | 455 | zBoot/inflate.c | r.e = (uch)e[*p - s]; /* non-simple--look up in lists */ |
s | 456 | zBoot/inflate.c | r.v.n = d[*p++ - s]; |
s | 90 | zBoot/misc.c | int printk(char *s) |
s | 93 | zBoot/misc.c | n = strlen(s); |
s | 97 | zBoot/misc.c | if (s[i] == '\n') |
s | 101 | zBoot/misc.c | vidmem[vidp] = s[i]; |
s | 108 | zBoot/misc.c | __ptr_t memset(__ptr_t s, int c, size_t n) |
s | 111 | zBoot/misc.c | char *ss = (char*)s; |
s | 120 | zBoot/misc.c | char *d = (char *)__dest, *s = (char *)__src; |
s | 122 | zBoot/misc.c | for (i=0;i<__n;i++) d[i] = s[i]; |
s | 132 | zBoot/misc.c | ulg updcrc(s, n) |
s | 133 | zBoot/misc.c | uch *s; /* pointer to bytes to pump through */ |
s | 140 | zBoot/misc.c | if (s == NULL) { |
s | 145 | zBoot/misc.c | c = crc_32_tab[((int)c ^ (*s++)) & 0xff] ^ (c >> 8); |