tag | line | file | source code |
s | 56 | fs/ext/inode.c | struct super_block *ext_read_super(struct super_block *s,void *data, |
s | 61 | fs/ext/inode.c | int dev = s->s_dev,block; |
s | 63 | fs/ext/inode.c | lock_super(s); |
s | 65 | fs/ext/inode.c | s->s_dev=0; |
s | 66 | fs/ext/inode.c | unlock_super(s); |
s | 71 | fs/ext/inode.c | s->s_blocksize = 1024; |
s | 72 | fs/ext/inode.c | s->u.ext_sb.s_ninodes = es->s_ninodes; |
s | 73 | fs/ext/inode.c | s->u.ext_sb.s_nzones = es->s_nzones; |
s | 74 | fs/ext/inode.c | s->u.ext_sb.s_firstdatazone = es->s_firstdatazone; |
s | 75 | fs/ext/inode.c | s->u.ext_sb.s_log_zone_size = es->s_log_zone_size; |
s | 76 | fs/ext/inode.c | s->u.ext_sb.s_max_size = es->s_max_size; |
s | 77 | fs/ext/inode.c | s->s_magic = es->s_magic; |
s | 78 | fs/ext/inode.c | s->u.ext_sb.s_firstfreeblocknumber = es->s_firstfreeblock; |
s | 79 | fs/ext/inode.c | s->u.ext_sb.s_freeblockscount = es->s_freeblockscount; |
s | 80 | fs/ext/inode.c | s->u.ext_sb.s_firstfreeinodenumber = es->s_firstfreeinode; |
s | 81 | fs/ext/inode.c | s->u.ext_sb.s_freeinodescount = es->s_freeinodescount; |
s | 83 | fs/ext/inode.c | if (s->s_magic != EXT_SUPER_MAGIC) { |
s | 84 | fs/ext/inode.c | s->s_dev = 0; |
s | 85 | fs/ext/inode.c | unlock_super(s); |
s | 91 | fs/ext/inode.c | if (!s->u.ext_sb.s_firstfreeblocknumber) |
s | 92 | fs/ext/inode.c | s->u.ext_sb.s_firstfreeblock = NULL; |
s | 94 | fs/ext/inode.c | if (!(s->u.ext_sb.s_firstfreeblock = bread(dev, |
s | 95 | fs/ext/inode.c | s->u.ext_sb.s_firstfreeblocknumber, BLOCK_SIZE))) { |
s | 97 | fs/ext/inode.c | s->s_dev = 0; |
s | 98 | fs/ext/inode.c | unlock_super(s); |
s | 101 | fs/ext/inode.c | if (!s->u.ext_sb.s_firstfreeinodenumber) |
s | 102 | fs/ext/inode.c | s->u.ext_sb.s_firstfreeinodeblock = NULL; |
s | 104 | fs/ext/inode.c | block = 2 + (s->u.ext_sb.s_firstfreeinodenumber - 1) / EXT_INODES_PER_BLOCK; |
s | 105 | fs/ext/inode.c | if (!(s->u.ext_sb.s_firstfreeinodeblock = bread(dev, block, BLOCK_SIZE))) { |
s | 107 | fs/ext/inode.c | brelse(s->u.ext_sb.s_firstfreeblock); |
s | 108 | fs/ext/inode.c | s->s_dev = 0; |
s | 109 | fs/ext/inode.c | unlock_super (s); |
s | 113 | fs/ext/inode.c | unlock_super(s); |
s | 115 | fs/ext/inode.c | s->s_dev = dev; |
s | 116 | fs/ext/inode.c | s->s_op = &ext_sops; |
s | 117 | fs/ext/inode.c | if (!(s->s_mounted = iget(s,EXT_ROOT_INO))) { |
s | 118 | fs/ext/inode.c | s->s_dev=0; |
s | 122 | fs/ext/inode.c | return s; |
s | 115 | fs/ext2/inode.c | struct super_block * ext2_read_super (struct super_block * s, void * data, |
s | 120 | fs/ext2/inode.c | int dev = s->s_dev; |
s | 127 | fs/ext2/inode.c | lock_super (s); |
s | 129 | fs/ext2/inode.c | s->s_dev = 0; |
s | 130 | fs/ext2/inode.c | unlock_super (s); |
s | 135 | fs/ext2/inode.c | s->s_magic = es->s_magic; |
s | 136 | fs/ext2/inode.c | s->s_blocksize = EXT2_MIN_BLOCK_SIZE << es->s_log_block_size; |
s | 137 | fs/ext2/inode.c | s->u.ext2_sb.s_inodes_count = es->s_inodes_count; |
s | 138 | fs/ext2/inode.c | s->u.ext2_sb.s_blocks_count = es->s_blocks_count; |
s | 139 | fs/ext2/inode.c | s->u.ext2_sb.s_r_blocks_count = es->s_r_blocks_count; |
s | 140 | fs/ext2/inode.c | s->u.ext2_sb.s_first_data_block = es->s_first_data_block; |
s | 141 | fs/ext2/inode.c | s->u.ext2_sb.s_log_block_size = es->s_log_block_size; |
s | 142 | fs/ext2/inode.c | s->u.ext2_sb.s_log_frag_size = es->s_log_frag_size; |
s | 143 | fs/ext2/inode.c | s->u.ext2_sb.s_frag_size = EXT2_MIN_FRAG_SIZE << |
s | 145 | fs/ext2/inode.c | if (s->u.ext2_sb.s_frag_size) |
s | 146 | fs/ext2/inode.c | s->u.ext2_sb.s_frags_per_block = s->s_blocksize / |
s | 147 | fs/ext2/inode.c | s->u.ext2_sb.s_frag_size; |
s | 149 | fs/ext2/inode.c | s->s_magic = 0; |
s | 150 | fs/ext2/inode.c | s->u.ext2_sb.s_blocks_per_group = es->s_blocks_per_group; |
s | 151 | fs/ext2/inode.c | s->u.ext2_sb.s_frags_per_group = es->s_frags_per_group; |
s | 152 | fs/ext2/inode.c | s->u.ext2_sb.s_inodes_per_group = es->s_inodes_per_group; |
s | 153 | fs/ext2/inode.c | s->u.ext2_sb.s_inodes_per_block = s->s_blocksize / |
s | 155 | fs/ext2/inode.c | s->u.ext2_sb.s_desc_per_block = s->s_blocksize / |
s | 157 | fs/ext2/inode.c | s->u.ext2_sb.s_sbh = bh; |
s | 158 | fs/ext2/inode.c | s->u.ext2_sb.s_was_mounted_valid = es->s_valid; |
s | 159 | fs/ext2/inode.c | s->u.ext2_sb.s_rename_lock = 0; |
s | 160 | fs/ext2/inode.c | s->u.ext2_sb.s_rename_wait = NULL; |
s | 162 | fs/ext2/inode.c | if (s->s_magic == EXT2_OLD_SUPER_MAGIC) { |
s | 165 | fs/ext2/inode.c | s->s_dev = 0; |
s | 166 | fs/ext2/inode.c | unlock_super (s); |
s | 174 | fs/ext2/inode.c | if (s->s_flags & MS_RDONLY == 0) { |
s | 175 | fs/ext2/inode.c | s->s_dev = 0; |
s | 176 | fs/ext2/inode.c | unlock_super (s); |
s | 181 | fs/ext2/inode.c | if (!convert_pre_02b_fs (s, bh)) { |
s | 182 | fs/ext2/inode.c | s->s_dev = 0; |
s | 183 | fs/ext2/inode.c | unlock_super (s); |
s | 192 | fs/ext2/inode.c | if (s->s_magic != EXT2_SUPER_MAGIC) { |
s | 193 | fs/ext2/inode.c | s->s_dev = 0; |
s | 194 | fs/ext2/inode.c | unlock_super (s); |
s | 201 | fs/ext2/inode.c | if (s->s_blocksize != s->u.ext2_sb.s_frag_size) { |
s | 202 | fs/ext2/inode.c | s->s_dev = 0; |
s | 203 | fs/ext2/inode.c | unlock_super (s); |
s | 211 | fs/ext2/inode.c | s->u.ext2_sb.s_groups_count = (s->u.ext2_sb.s_blocks_count - |
s | 212 | fs/ext2/inode.c | s->u.ext2_sb.s_first_data_block + |
s | 213 | fs/ext2/inode.c | EXT2_BLOCKS_PER_GROUP(s) - 1) / |
s | 214 | fs/ext2/inode.c | EXT2_BLOCKS_PER_GROUP(s); |
s | 216 | fs/ext2/inode.c | s->u.ext2_sb.s_group_desc[i] = NULL; |
s | 217 | fs/ext2/inode.c | bh_count = (s->u.ext2_sb.s_groups_count + |
s | 218 | fs/ext2/inode.c | EXT2_DESC_PER_BLOCK(s) - 1) / |
s | 219 | fs/ext2/inode.c | EXT2_DESC_PER_BLOCK(s); |
s | 221 | fs/ext2/inode.c | s->u.ext2_sb.s_group_desc[i] = bread (dev, i + 2, s->s_blocksize); |
s | 222 | fs/ext2/inode.c | if (!s->u.ext2_sb.s_group_desc[i]) { |
s | 223 | fs/ext2/inode.c | s->s_dev = 0; |
s | 224 | fs/ext2/inode.c | unlock_super (s); |
s | 226 | fs/ext2/inode.c | brelse (s->u.ext2_sb.s_group_desc[i]); |
s | 233 | fs/ext2/inode.c | s->u.ext2_sb.s_inode_bitmap_number[i] = 0; |
s | 234 | fs/ext2/inode.c | s->u.ext2_sb.s_inode_bitmap[i] = NULL; |
s | 235 | fs/ext2/inode.c | s->u.ext2_sb.s_block_bitmap_number[i] = 0; |
s | 236 | fs/ext2/inode.c | s->u.ext2_sb.s_block_bitmap[i] = NULL; |
s | 238 | fs/ext2/inode.c | s->u.ext2_sb.s_loaded_inode_bitmaps = 0; |
s | 239 | fs/ext2/inode.c | s->u.ext2_sb.s_loaded_block_bitmaps = 0; |
s | 240 | fs/ext2/inode.c | unlock_super (s); |
s | 242 | fs/ext2/inode.c | s->s_dev = dev; |
s | 243 | fs/ext2/inode.c | s->s_op = &ext2_sops; |
s | 244 | fs/ext2/inode.c | if (!(s->s_mounted = iget(s, EXT2_ROOT_INO))) { |
s | 245 | fs/ext2/inode.c | s->s_dev = 0; |
s | 247 | fs/ext2/inode.c | if (s->u.ext2_sb.s_group_desc[i]) |
s | 248 | fs/ext2/inode.c | brelse (s->u.ext2_sb.s_group_desc[i]); |
s | 253 | fs/ext2/inode.c | if ((s->s_flags & MS_RDONLY) == 0) { |
s | 257 | fs/ext2/inode.c | s->s_dirt = 1; |
s | 262 | fs/ext2/inode.c | s->u.ext2_sb.s_group_desc[i]->b_dirt = 1; |
s | 263 | fs/ext2/inode.c | s->s_dirt = 1; |
s | 267 | fs/ext2/inode.c | EXT2FS_VERSION, s->s_blocksize, s->u.ext2_sb.s_frag_size, |
s | 268 | fs/ext2/inode.c | s->u.ext2_sb.s_groups_count, |
s | 269 | fs/ext2/inode.c | EXT2_BLOCKS_PER_GROUP(s), EXT2_INODES_PER_GROUP(s)); |
s | 270 | 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 | 100 | fs/isofs/inode.c | int dev=s->s_dev; |
s | 112 | fs/isofs/inode.c | s->s_dev = 0; |
s | 116 | fs/isofs/inode.c | lock_super(s); |
s | 118 | fs/isofs/inode.c | s->u.isofs_sb.s_high_sierra = high_sierra = 0; /* default is iso9660 */ |
s | 122 | fs/isofs/inode.c | s->s_dev=0; |
s | 125 | fs/isofs/inode.c | unlock_super(s); |
s | 139 | fs/isofs/inode.c | s->u.isofs_sb.s_high_sierra = 1; |
s | 161 | fs/isofs/inode.c | s->s_dev = 0; |
s | 162 | fs/isofs/inode.c | unlock_super(s); |
s | 173 | fs/isofs/inode.c | s->u.isofs_sb.s_nzones = isonum_733 (h_pri->volume_space_size); |
s | 174 | fs/isofs/inode.c | s->u.isofs_sb.s_log_zone_size = isonum_723 (h_pri->logical_block_size); |
s | 175 | fs/isofs/inode.c | s->u.isofs_sb.s_max_size = isonum_733(h_pri->volume_space_size); |
s | 182 | fs/isofs/inode.c | s->u.isofs_sb.s_nzones = isonum_733 (pri->volume_space_size); |
s | 183 | fs/isofs/inode.c | s->u.isofs_sb.s_log_zone_size = isonum_723 (pri->logical_block_size); |
s | 184 | fs/isofs/inode.c | s->u.isofs_sb.s_max_size = isonum_733(pri->volume_space_size); |
s | 187 | fs/isofs/inode.c | s->u.isofs_sb.s_ninodes = 0; /* No way to figure this out easily */ |
s | 189 | fs/isofs/inode.c | s->u.isofs_sb.s_firstdatazone = isonum_733( rootp->extent) << |
s | 191 | fs/isofs/inode.c | s->s_magic = ISOFS_SUPER_MAGIC; |
s | 198 | fs/isofs/inode.c | s->s_flags = MS_RDONLY /* | MS_NODEV | MS_NOSUID */; |
s | 200 | fs/isofs/inode.c | if(s->u.isofs_sb.s_log_zone_size != (1 << ISOFS_BLOCK_BITS)) { |
s | 207 | fs/isofs/inode.c | printk("Max size:%d Log zone size:%d\n",s->u.isofs_sb.s_max_size, |
s | 208 | fs/isofs/inode.c | s->u.isofs_sb.s_log_zone_size); |
s | 209 | fs/isofs/inode.c | printk("First datazone:%d Root inode number %d\n",s->u.isofs_sb.s_firstdatazone, |
s | 212 | fs/isofs/inode.c | unlock_super(s); |
s | 215 | fs/isofs/inode.c | s->s_dev = dev; |
s | 216 | fs/isofs/inode.c | s->s_op = &isofs_sops; |
s | 217 | fs/isofs/inode.c | s->u.isofs_sb.s_mapping = map; |
s | 218 | fs/isofs/inode.c | s->u.isofs_sb.s_rock = (rock == 'y' ? 1 : 0); |
s | 219 | fs/isofs/inode.c | s->u.isofs_sb.s_conversion = conversion; |
s | 220 | fs/isofs/inode.c | s->u.isofs_sb.s_cruft = cruft; |
s | 221 | fs/isofs/inode.c | s->s_blocksize = ISOFS_BUFFER_SIZE; |
s | 222 | fs/isofs/inode.c | s->s_mounted = iget(s, isonum_733 (rootp->extent) << ISOFS_BLOCK_BITS); |
s | 223 | fs/isofs/inode.c | unlock_super(s); |
s | 225 | fs/isofs/inode.c | if (!(s->s_mounted)) { |
s | 226 | fs/isofs/inode.c | s->s_dev=0; |
s | 230 | fs/isofs/inode.c | if(MAJOR(s->s_dev) == 11) { |
s | 232 | fs/isofs/inode.c | if(check_cdrom_media_change(s->s_dev, 0)) |
s | 235 | fs/isofs/inode.c | return s; |
s | 238 | fs/isofs/inode.c | s->s_dev = 0; |
s | 239 | 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 | 56 | fs/minix/inode.c | int i,dev=s->s_dev,block; |
s | 60 | fs/minix/inode.c | lock_super(s); |
s | 62 | fs/minix/inode.c | s->s_dev=0; |
s | 63 | fs/minix/inode.c | unlock_super(s); |
s | 68 | fs/minix/inode.c | s->s_blocksize = 1024; |
s | 69 | fs/minix/inode.c | s->u.minix_sb.s_ninodes = ms->s_ninodes; |
s | 70 | fs/minix/inode.c | s->u.minix_sb.s_nzones = ms->s_nzones; |
s | 71 | fs/minix/inode.c | s->u.minix_sb.s_imap_blocks = ms->s_imap_blocks; |
s | 72 | fs/minix/inode.c | s->u.minix_sb.s_zmap_blocks = ms->s_zmap_blocks; |
s | 73 | fs/minix/inode.c | s->u.minix_sb.s_firstdatazone = ms->s_firstdatazone; |
s | 74 | fs/minix/inode.c | s->u.minix_sb.s_log_zone_size = ms->s_log_zone_size; |
s | 75 | fs/minix/inode.c | s->u.minix_sb.s_max_size = ms->s_max_size; |
s | 76 | fs/minix/inode.c | s->s_magic = ms->s_magic; |
s | 78 | fs/minix/inode.c | if (s->s_magic == MINIX_SUPER_MAGIC) { |
s | 79 | fs/minix/inode.c | s->u.minix_sb.s_dirsize = 16; |
s | 80 | fs/minix/inode.c | s->u.minix_sb.s_namelen = 14; |
s | 81 | fs/minix/inode.c | } else if (s->s_magic == MINIX_SUPER_MAGIC2) { |
s | 82 | fs/minix/inode.c | s->u.minix_sb.s_dirsize = 32; |
s | 83 | fs/minix/inode.c | s->u.minix_sb.s_namelen = 30; |
s | 85 | fs/minix/inode.c | s->s_dev = 0; |
s | 86 | fs/minix/inode.c | unlock_super(s); |
s | 93 | fs/minix/inode.c | s->u.minix_sb.s_imap[i] = NULL; |
s | 95 | fs/minix/inode.c | s->u.minix_sb.s_zmap[i] = NULL; |
s | 97 | fs/minix/inode.c | for (i=0 ; i < s->u.minix_sb.s_imap_blocks ; i++) |
s | 98 | fs/minix/inode.c | if ((s->u.minix_sb.s_imap[i]=bread(dev,block,BLOCK_SIZE)) != NULL) |
s | 102 | fs/minix/inode.c | for (i=0 ; i < s->u.minix_sb.s_zmap_blocks ; i++) |
s | 103 | fs/minix/inode.c | if ((s->u.minix_sb.s_zmap[i]=bread(dev,block,BLOCK_SIZE)) != NULL) |
s | 107 | fs/minix/inode.c | if (block != 2+s->u.minix_sb.s_imap_blocks+s->u.minix_sb.s_zmap_blocks) { |
s | 109 | fs/minix/inode.c | brelse(s->u.minix_sb.s_imap[i]); |
s | 111 | fs/minix/inode.c | brelse(s->u.minix_sb.s_zmap[i]); |
s | 112 | fs/minix/inode.c | s->s_dev=0; |
s | 113 | fs/minix/inode.c | unlock_super(s); |
s | 117 | fs/minix/inode.c | s->u.minix_sb.s_imap[0]->b_data[0] |= 1; |
s | 118 | fs/minix/inode.c | s->u.minix_sb.s_zmap[0]->b_data[0] |= 1; |
s | 120 | fs/minix/inode.c | s->s_dev = dev; |
s | 121 | fs/minix/inode.c | s->s_op = &minix_sops; |
s | 122 | fs/minix/inode.c | s->s_mounted = iget(s,MINIX_ROOT_INO); |
s | 123 | fs/minix/inode.c | unlock_super(s); |
s | 124 | fs/minix/inode.c | if (!s->s_mounted) { |
s | 125 | fs/minix/inode.c | s->s_dev = 0; |
s | 129 | fs/minix/inode.c | return s; |
s | 143 | fs/msdos/inode.c | struct super_block *msdos_read_super(struct super_block *s,void *data, |
s | 157 | fs/msdos/inode.c | s->s_dev = 0; |
s | 161 | fs/msdos/inode.c | lock_super(s); |
s | 162 | fs/msdos/inode.c | bh = bread(s->s_dev, 0, BLOCK_SIZE); |
s | 163 | fs/msdos/inode.c | unlock_super(s); |
s | 165 | fs/msdos/inode.c | s->s_dev = 0; |
s | 170 | fs/msdos/inode.c | s->s_blocksize = 1024; /* we cannot handle anything else yet */ |
s | 192 | fs/msdos/inode.c | MSDOS_SB(s)->cluster_size = b->cluster_size*sector_mult; |
s | 193 | fs/msdos/inode.c | MSDOS_SB(s)->fats = b->fats; |
s | 194 | fs/msdos/inode.c | MSDOS_SB(s)->fat_start = CF_LE_W(b->reserved)*sector_mult; |
s | 195 | fs/msdos/inode.c | MSDOS_SB(s)->fat_length = CF_LE_W(b->fat_length)*sector_mult; |
s | 196 | fs/msdos/inode.c | MSDOS_SB(s)->dir_start = (CF_LE_W(b->reserved)+b->fats*CF_LE_W( |
s | 198 | fs/msdos/inode.c | MSDOS_SB(s)->dir_entries = CF_LE_W(*((unsigned short *) &b->dir_entries |
s | 200 | fs/msdos/inode.c | MSDOS_SB(s)->data_start = MSDOS_SB(s)->dir_start+ROUND_TO_MULTIPLE(( |
s | 201 | fs/msdos/inode.c | MSDOS_SB(s)->dir_entries << MSDOS_DIR_BITS) >> SECTOR_BITS, |
s | 205 | fs/msdos/inode.c | CF_LE_L(b->total_sect))*sector_mult-MSDOS_SB(s)->data_start; |
s | 208 | fs/msdos/inode.c | MSDOS_SB(s)->clusters = b->cluster_size ? data_sectors/ |
s | 210 | fs/msdos/inode.c | MSDOS_SB(s)->fat_bits = fat ? fat : MSDOS_SB(s)->clusters > |
s | 212 | fs/msdos/inode.c | error = !MSDOS_SB(s)->fats || (MSDOS_SB(s)->dir_entries & |
s | 213 | fs/msdos/inode.c | (MSDOS_DPS-1)) || MSDOS_SB(s)->clusters+2 > MSDOS_SB(s)-> |
s | 214 | fs/msdos/inode.c | fat_length*SECTOR_SIZE*8/MSDOS_SB(s)->fat_bits || |
s | 221 | fs/msdos/inode.c | "uid=%d,gid=%d,umask=%03o%s]\n",MSDOS_SB(s)->fat_bits,check, |
s | 222 | fs/msdos/inode.c | conversion,uid,gid,umask,MSDOS_CAN_BMAP(MSDOS_SB(s)) ? |
s | 225 | fs/msdos/inode.c | "se=%d,ts=%d,ls=%d]\n",b->media,MSDOS_SB(s)->cluster_size, |
s | 226 | fs/msdos/inode.c | MSDOS_SB(s)->fats,MSDOS_SB(s)->fat_start,MSDOS_SB(s)-> |
s | 227 | fs/msdos/inode.c | fat_length,MSDOS_SB(s)->dir_start,MSDOS_SB(s)->dir_entries, |
s | 228 | fs/msdos/inode.c | MSDOS_SB(s)->data_start,CF_LE_W(*(unsigned short *) &b-> |
s | 234 | fs/msdos/inode.c | s->s_dev); |
s | 235 | fs/msdos/inode.c | s->s_dev = 0; |
s | 238 | fs/msdos/inode.c | s->s_magic = MSDOS_SUPER_MAGIC; |
s | 239 | fs/msdos/inode.c | MSDOS_SB(s)->name_check = check; |
s | 240 | fs/msdos/inode.c | MSDOS_SB(s)->conversion = conversion; |
s | 242 | fs/msdos/inode.c | s->s_op = &msdos_sops; |
s | 243 | fs/msdos/inode.c | MSDOS_SB(s)->fs_uid = uid; |
s | 244 | fs/msdos/inode.c | MSDOS_SB(s)->fs_gid = gid; |
s | 245 | fs/msdos/inode.c | MSDOS_SB(s)->fs_umask = umask; |
s | 246 | fs/msdos/inode.c | MSDOS_SB(s)->quiet = quiet; |
s | 247 | fs/msdos/inode.c | MSDOS_SB(s)->free_clusters = -1; /* don't know yet */ |
s | 248 | fs/msdos/inode.c | MSDOS_SB(s)->fat_wait = NULL; |
s | 249 | fs/msdos/inode.c | MSDOS_SB(s)->fat_lock = 0; |
s | 250 | fs/msdos/inode.c | MSDOS_SB(s)->prev_free = 0; |
s | 251 | fs/msdos/inode.c | if (!(s->s_mounted = iget(s,MSDOS_ROOT_INO))) { |
s | 252 | fs/msdos/inode.c | s->s_dev = 0; |
s | 256 | fs/msdos/inode.c | return s; |
s | 30 | fs/msdos/misc.c | void fs_panic(struct super_block *s,char *msg) |
s | 34 | fs/msdos/misc.c | not_ro = !(s->s_flags & MS_RDONLY); |
s | 35 | fs/msdos/misc.c | if (not_ro) s->s_flags |= MS_RDONLY; |
s | 37 | fs/msdos/misc.c | s->s_dev,s->s_covered->i_dev,s->s_covered->i_ino,msg); |
s | 43 | fs/proc/inode.c | struct super_block *proc_read_super(struct super_block *s,void *data, |
s | 46 | fs/proc/inode.c | lock_super(s); |
s | 47 | fs/proc/inode.c | s->s_blocksize = 1024; |
s | 48 | fs/proc/inode.c | s->s_magic = PROC_SUPER_MAGIC; |
s | 49 | fs/proc/inode.c | s->s_op = &proc_sops; |
s | 50 | fs/proc/inode.c | unlock_super(s); |
s | 51 | fs/proc/inode.c | if (!(s->s_mounted = iget(s,PROC_ROOT_INO))) { |
s | 52 | fs/proc/inode.c | s->s_dev = 0; |
s | 56 | fs/proc/inode.c | return s; |
s | 88 | fs/super.c | struct super_block * s; |
s | 92 | fs/super.c | s = 0+super_block; |
s | 93 | fs/super.c | while (s < NR_SUPER+super_block) |
s | 94 | fs/super.c | if (s->s_dev == dev) { |
s | 95 | fs/super.c | wait_on_super(s); |
s | 96 | fs/super.c | if (s->s_dev == dev) |
s | 97 | fs/super.c | return s; |
s | 98 | fs/super.c | s = 0+super_block; |
s | 100 | fs/super.c | s++; |
s | 127 | fs/super.c | struct super_block * s; |
s | 133 | fs/super.c | s = get_super(dev); |
s | 134 | fs/super.c | if (s) |
s | 135 | fs/super.c | return s; |
s | 141 | fs/super.c | for (s = 0+super_block ;; s++) { |
s | 142 | fs/super.c | if (s >= NR_SUPER+super_block) |
s | 144 | fs/super.c | if (!s->s_dev) |
s | 147 | fs/super.c | s->s_dev = dev; |
s | 148 | fs/super.c | s->s_flags = flags; |
s | 149 | fs/super.c | if (!type->read_super(s,data, silent)) { |
s | 150 | fs/super.c | s->s_dev = 0; |
s | 153 | fs/super.c | s->s_dev = dev; |
s | 154 | fs/super.c | s->s_covered = NULL; |
s | 155 | fs/super.c | s->s_rd_only = 0; |
s | 156 | fs/super.c | s->s_dirt = 0; |
s | 157 | fs/super.c | return s; |
s | 58 | fs/xiafs/inode.c | struct super_block *xiafs_read_super(struct super_block *s, void *data, |
s | 65 | fs/xiafs/inode.c | dev=s->s_dev; |
s | 66 | fs/xiafs/inode.c | lock_super(s); |
s | 68 | fs/xiafs/inode.c | s->s_dev=0; |
s | 69 | fs/xiafs/inode.c | unlock_super(s); |
s | 74 | fs/xiafs/inode.c | s->s_magic = sp->s_magic; |
s | 75 | fs/xiafs/inode.c | if (s->s_magic != _XIAFS_SUPER_MAGIC) { |
s | 76 | fs/xiafs/inode.c | s->s_dev = 0; |
s | 77 | fs/xiafs/inode.c | unlock_super(s); |
s | 84 | fs/xiafs/inode.c | s->s_blocksize = sp->s_zone_size; |
s | 85 | fs/xiafs/inode.c | s->u.xiafs_sb.s_nzones = sp->s_nzones; |
s | 86 | fs/xiafs/inode.c | s->u.xiafs_sb.s_ninodes = sp->s_ninodes; |
s | 87 | fs/xiafs/inode.c | s->u.xiafs_sb.s_ndatazones = sp->s_ndatazones; |
s | 88 | fs/xiafs/inode.c | s->u.xiafs_sb.s_imap_zones = sp->s_imap_zones; |
s | 89 | fs/xiafs/inode.c | s->u.xiafs_sb.s_zmap_zones = sp->s_zmap_zones; |
s | 90 | fs/xiafs/inode.c | s->u.xiafs_sb.s_firstdatazone = sp->s_firstdatazone; |
s | 91 | fs/xiafs/inode.c | s->u.xiafs_sb.s_zone_shift = sp->s_zone_shift; |
s | 92 | fs/xiafs/inode.c | s->u.xiafs_sb.s_max_size = sp->s_max_size; |
s | 95 | fs/xiafs/inode.c | s->u.xiafs_sb.s_imap_buf[i] = NULL; |
s | 96 | fs/xiafs/inode.c | s->u.xiafs_sb.s_imap_iznr[i] = -1; |
s | 99 | fs/xiafs/inode.c | s->u.xiafs_sb.s_zmap_buf[i] = NULL; |
s | 100 | fs/xiafs/inode.c | s->u.xiafs_sb.s_zmap_zznr[i] = -1; |
s | 103 | fs/xiafs/inode.c | if ( s->u.xiafs_sb.s_imap_zones > _XIAFS_IMAP_SLOTS ) |
s | 104 | fs/xiafs/inode.c | s->u.xiafs_sb.s_imap_cached=1; |
s | 106 | fs/xiafs/inode.c | s->u.xiafs_sb.s_imap_cached=0; |
s | 107 | fs/xiafs/inode.c | for (i=0 ; i < s->u.xiafs_sb.s_imap_zones ; i++) { |
s | 108 | fs/xiafs/inode.c | if (!(s->u.xiafs_sb.s_imap_buf[i]=bread(dev, z++, XIAFS_ZSIZE(s)))) |
s | 110 | fs/xiafs/inode.c | s->u.xiafs_sb.s_imap_iznr[i]=i; |
s | 113 | fs/xiafs/inode.c | if ( s->u.xiafs_sb.s_zmap_zones > _XIAFS_ZMAP_SLOTS ) |
s | 114 | fs/xiafs/inode.c | s->u.xiafs_sb.s_zmap_cached=1; |
s | 116 | fs/xiafs/inode.c | s->u.xiafs_sb.s_zmap_cached=0; |
s | 117 | fs/xiafs/inode.c | for (i=0 ; i < s->u.xiafs_sb.s_zmap_zones ; i++) { |
s | 118 | fs/xiafs/inode.c | if (!(s->u.xiafs_sb.s_zmap_buf[i]=bread(dev, z++, XIAFS_ZSIZE(s)))) |
s | 120 | fs/xiafs/inode.c | s->u.xiafs_sb.s_zmap_zznr[i]=i; |
s | 124 | fs/xiafs/inode.c | s->s_dev = dev; |
s | 125 | fs/xiafs/inode.c | s->s_op = &xiafs_sops; |
s | 126 | fs/xiafs/inode.c | s->s_mounted = iget(s, _XIAFS_ROOT_INO); |
s | 127 | fs/xiafs/inode.c | if (!s->s_mounted) |
s | 129 | fs/xiafs/inode.c | unlock_super(s); |
s | 131 | fs/xiafs/inode.c | return s; |
s | 135 | fs/xiafs/inode.c | brelse(s->u.xiafs_sb.s_imap_buf[i]); |
s | 137 | fs/xiafs/inode.c | brelse(s->u.xiafs_sb.s_zmap_buf[i]); |
s | 138 | fs/xiafs/inode.c | s->s_dev=0; |
s | 139 | fs/xiafs/inode.c | unlock_super(s); |
s | 59 | include/linux/ext2_fs.h | # define EXT2_BLOCK_SIZE(s) ((s)->s_blocksize) |
s | 61 | include/linux/ext2_fs.h | # define EXT2_BLOCK_SIZE(s) (EXT2_MIN_BLOCK_SIZE << (s)->s_log_block_size) |
s | 63 | include/linux/ext2_fs.h | #define EXT2_ACLE_PER_BLOCK(s) (EXT2_BLOCK_SIZE(s) / sizeof (struct ext2_acl_entry)) |
s | 64 | include/linux/ext2_fs.h | #define EXT2_ADDR_PER_BLOCK(s) (EXT2_BLOCK_SIZE(s) / sizeof (unsigned long)) |
s | 66 | include/linux/ext2_fs.h | # define EXT2_BLOCK_SIZE_BITS(s) ((s)->u.ext2_sb.s_log_block_size + 10) |
s | 68 | include/linux/ext2_fs.h | # define EXT2_BLOCK_SIZE_BITS(s) ((s)->s_log_block_size + 10) |
s | 70 | include/linux/ext2_fs.h | #define EXT2_INODES_PER_BLOCK(s) (EXT2_BLOCK_SIZE(s) / sizeof (struct ext2_inode)) |
s | 79 | include/linux/ext2_fs.h | # define EXT2_FRAG_SIZE(s) ((s)->u.ext2_sb.s_frag_size) |
s | 80 | include/linux/ext2_fs.h | # define EXT2_FRAGS_PER_BLOCK(s) ((s)->u.ext2_sb.s_frags_per_block) |
s | 82 | include/linux/ext2_fs.h | # define EXT2_FRAG_SIZE(s) (EXT2_MIN_FRAG_SIZE << (s)->s_log_frag_size) |
s | 83 | include/linux/ext2_fs.h | # define EXT2_FRAGS_PER_BLOCK(s) (EXT2_BLOCK_SIZE(s) / EXT2_FRAG_SIZE(s)) |
s | 137 | include/linux/ext2_fs.h | # define EXT2_BLOCKS_PER_GROUP(s) ((s)->u.ext2_sb.s_blocks_per_group) |
s | 138 | include/linux/ext2_fs.h | # define EXT2_DESC_PER_BLOCK(s) ((s)->u.ext2_sb.s_desc_per_block) |
s | 139 | include/linux/ext2_fs.h | # define EXT2_INODES_PER_GROUP(s) ((s)->u.ext2_sb.s_inodes_per_group) |
s | 141 | include/linux/ext2_fs.h | # define EXT2_BLOCKS_PER_GROUP(s) ((s)->s_blocks_per_group) |
s | 142 | include/linux/ext2_fs.h | # define EXT2_DESC_PER_BLOCK(s) (EXT2_BLOCK_SIZE(s) / sizeof (struct ext2_group_desc)) |
s | 143 | include/linux/ext2_fs.h | # define EXT2_INODES_PER_GROUP(s) ((s)->s_inodes_per_group) |
s | 43 | include/linux/msdos_fs.h | #define MSDOS_SB(s) (&((s)->u.msdos_sb)) |
s | 126 | include/linux/msdos_fs.h | extern void fs_panic(struct super_block *s,char *msg); |
s | 171 | include/linux/msdos_fs.h | extern struct super_block *msdos_read_super(struct super_block *s, |
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 | 48 | kernel/FPU-emu/reg_ld_str.c | long double *s = (long double *)FPU_data_address; |
s | 54 | kernel/FPU-emu/reg_ld_str.c | sigl = get_fs_long((unsigned long *) s); |
s | 55 | kernel/FPU-emu/reg_ld_str.c | sigh = get_fs_long(1 + (unsigned long *) s); |
s | 56 | kernel/FPU-emu/reg_ld_str.c | exp = get_fs_word(4 + (unsigned short *) s); |
s | 249 | kernel/FPU-emu/reg_ld_str.c | long long s; |
s | 252 | kernel/FPU-emu/reg_ld_str.c | ((unsigned long *)&s)[0] = get_fs_long((unsigned long *) _s); |
s | 253 | kernel/FPU-emu/reg_ld_str.c | ((unsigned long *)&s)[1] = get_fs_long(1 + (unsigned long *) _s); |
s | 256 | kernel/FPU-emu/reg_ld_str.c | if (s == 0) |
s | 259 | kernel/FPU-emu/reg_ld_str.c | if (s > 0) |
s | 263 | kernel/FPU-emu/reg_ld_str.c | s = -s; |
s | 268 | kernel/FPU-emu/reg_ld_str.c | *((long long *)&FPU_loaded_data.sigl) = s; |
s | 279 | kernel/FPU-emu/reg_ld_str.c | long s; |
s | 283 | kernel/FPU-emu/reg_ld_str.c | s = (long)get_fs_long((unsigned long *) _s); |
s | 286 | kernel/FPU-emu/reg_ld_str.c | if (s == 0) |
s | 289 | kernel/FPU-emu/reg_ld_str.c | if (s > 0) |
s | 293 | kernel/FPU-emu/reg_ld_str.c | s = -s; |
s | 298 | kernel/FPU-emu/reg_ld_str.c | FPU_loaded_data.sigh = s; |
s | 310 | kernel/FPU-emu/reg_ld_str.c | int s, e; |
s | 313 | kernel/FPU-emu/reg_ld_str.c | s = (int)get_fs_word((unsigned short *) _s); |
s | 316 | kernel/FPU-emu/reg_ld_str.c | if (s == 0) |
s | 319 | kernel/FPU-emu/reg_ld_str.c | if (s > 0) |
s | 323 | kernel/FPU-emu/reg_ld_str.c | s = -s; |
s | 328 | kernel/FPU-emu/reg_ld_str.c | FPU_loaded_data.sigh = s << 16; |
s | 340 | kernel/FPU-emu/reg_ld_str.c | char *s = (char *)FPU_data_address; |
s | 349 | kernel/FPU-emu/reg_ld_str.c | bcd = (unsigned char)get_fs_byte((unsigned char *) s+pos); |
s | 360 | kernel/FPU-emu/reg_ld_str.c | ((unsigned char)get_fs_byte((unsigned char *) s+9)) & 0x80 ? |
s | 1135 | kernel/FPU-emu/reg_ld_str.c | char *s = (char *)FPU_data_address; |
s | 1141 | kernel/FPU-emu/reg_ld_str.c | control_word = get_fs_word((unsigned short *) s); |
s | 1142 | kernel/FPU-emu/reg_ld_str.c | status_word = get_fs_word((unsigned short *) (s+4)); |
s | 1143 | kernel/FPU-emu/reg_ld_str.c | tag_word = get_fs_word((unsigned short *) (s+8)); |
s | 1144 | kernel/FPU-emu/reg_ld_str.c | ip_offset = get_fs_long((unsigned long *) (s+0x0c)); |
s | 1145 | kernel/FPU-emu/reg_ld_str.c | cs_selector = get_fs_long((unsigned long *) (s+0x10)); |
s | 1146 | kernel/FPU-emu/reg_ld_str.c | data_operand_offset = get_fs_long((unsigned long *) (s+0x14)); |
s | 1147 | kernel/FPU-emu/reg_ld_str.c | operand_selector = get_fs_long((unsigned long *) (s+0x18)); |
s | 1176 | kernel/FPU-emu/reg_ld_str.c | return s + 0x1c; |
s | 1184 | kernel/FPU-emu/reg_ld_str.c | FPU_REG *s = (FPU_REG *)fldenv(); |
s | 1189 | 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 | 496 | kernel/blk_drv/scsi/ultrastor.c | unsigned int s = config.heads * config.sectors; |
s | 500 | kernel/blk_drv/scsi/ultrastor.c | info[2] = (size + (s - 1)) / s; |
s | 1221 | kernel/chr_drv/console.c | void * memsetw(void * s,unsigned short c,int count) |
s | 1226 | kernel/chr_drv/console.c | ::"a" (c),"D" (s),"c" (count) |
s | 1228 | 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 | 99 | zBoot/inflate.c | int huft_build(b, n, s, d, e, t, m) |
s | 102 | zBoot/inflate.c | unsigned s; /* number of simple-valued codes (0..s-1) */ |
s | 274 | zBoot/inflate.c | else if (*p < s) |
s | 281 | zBoot/inflate.c | r.e = (uch)e[*p - s]; /* non-simple--look up in lists */ |
s | 282 | zBoot/inflate.c | r.v.n = d[*p++ - s]; |
s | 100 | zBoot/misc.c | int printk(char *s) |
s | 103 | zBoot/misc.c | n = strlen(s); |
s | 107 | zBoot/misc.c | if (s[i] == '\n') |
s | 111 | zBoot/misc.c | vidmem[vidp] = s[i]; |
s | 118 | zBoot/misc.c | __ptr_t memset(__ptr_t s, int c, size_t n) |
s | 121 | zBoot/misc.c | char *ss = (char*)s; |
s | 130 | zBoot/misc.c | char *d = (char *)__dest, *s = (char *)__src; |
s | 132 | zBoot/misc.c | for (i=0;i<__n;i++) d[i] = s[i]; |
s | 142 | zBoot/misc.c | ulg updcrc(s, n) |
s | 143 | zBoot/misc.c | uch *s; /* pointer to bytes to pump through */ |
s | 150 | zBoot/misc.c | if (s == NULL) { |
s | 155 | zBoot/misc.c | c = crc_32_tab[((int)c ^ (*s++)) & 0xff] ^ (c >> 8); |