tag | line | file | source code |
block | 2079 | drivers/block/floppy.c | int block; |
block | 2091 | drivers/block/floppy.c | block = current_count_sectors + CURRENT->sector; |
block | 2092 | drivers/block/floppy.c | INFBOUND(DRS->maxblock, block); |
block | 2093 | drivers/block/floppy.c | if (block > floppy->sect) |
block | 3374 | drivers/block/floppy.c | int block; |
block | 3385 | drivers/block/floppy.c | block = (filp->f_pos + count) >> 9; |
block | 3386 | drivers/block/floppy.c | INFBOUND(UDRS->maxblock, block); |
block | 696 | drivers/block/hd.c | unsigned int dev, block, nsect, sec, track, head, cyl; |
block | 711 | drivers/block/hd.c | block = CURRENT->sector; |
block | 713 | drivers/block/hd.c | if (dev >= (NR_HD<<6) || block >= hd[dev].nr_sects || ((block+nsect) > hd[dev].nr_sects)) { |
block | 720 | drivers/block/hd.c | (MINOR(CURRENT->rq_dev)>>6)+'a', block, nsect); |
block | 725 | drivers/block/hd.c | block += hd[dev].start_sect; |
block | 732 | drivers/block/hd.c | sec = block % hd_info[dev].sect + 1; |
block | 733 | drivers/block/hd.c | track = block / hd_info[dev].sect; |
block | 1184 | drivers/block/ide-cd.c | static void cdrom_start_read (ide_drive_t *drive, unsigned int block) |
block | 1192 | drivers/block/ide-cd.c | rq->sector = block; |
block | 1488 | drivers/block/ide-cd.c | void ide_do_rw_cdrom (ide_drive_t *drive, unsigned long block) |
block | 1511 | drivers/block/ide-cd.c | cdrom_start_read (drive, block); |
block | 850 | drivers/block/ide-tape.c | void idetape_create_locate_cmd (idetape_packet_command_t *pc,unsigned long block,byte partition); |
block | 929 | drivers/block/ide-tape.c | int idetape_position_tape (ide_drive_t *drive,unsigned long block); |
block | 2471 | drivers/block/ide-tape.c | void idetape_create_locate_cmd (idetape_packet_command_t *pc,unsigned long block,byte partition) |
block | 2491 | drivers/block/ide-tape.c | *ptr=idetape_swap_long (block); |
block | 2888 | drivers/block/ide-tape.c | void idetape_do_request (ide_drive_t *drive, struct request *rq, unsigned long block) |
block | 4196 | drivers/block/ide-tape.c | int idetape_position_tape (ide_drive_t *drive,unsigned long block) |
block | 4202 | drivers/block/ide-tape.c | idetape_create_locate_cmd (&pc,block,0); |
block | 1207 | drivers/block/ide.c | static inline void do_rw_disk (ide_drive_t *drive, struct request *rq, unsigned long block) |
block | 1217 | drivers/block/ide.c | block, rq->nr_sectors, (unsigned long) rq->buffer); |
block | 1219 | drivers/block/ide.c | OUT_BYTE(block,io_base+IDE_SECTOR_OFFSET); |
block | 1220 | drivers/block/ide.c | OUT_BYTE(block>>=8,io_base+IDE_LCYL_OFFSET); |
block | 1221 | drivers/block/ide.c | OUT_BYTE(block>>=8,io_base+IDE_HCYL_OFFSET); |
block | 1222 | drivers/block/ide.c | OUT_BYTE(((block>>8)&0x0f)|drive->select.all,io_base+IDE_SELECT_OFFSET); |
block | 1225 | drivers/block/ide.c | track = block / drive->sect; |
block | 1226 | drivers/block/ide.c | sect = block % drive->sect + 1; |
block | 1303 | drivers/block/ide.c | unsigned long block, blockend; |
block | 1324 | drivers/block/ide.c | block = rq->sector; |
block | 1325 | drivers/block/ide.c | blockend = block + rq->nr_sectors; |
block | 1326 | drivers/block/ide.c | if ((blockend < block) || (blockend > drive->part[minor&PARTN_MASK].nr_sects)) { |
block | 1328 | drivers/block/ide.c | (minor&PARTN_MASK)?'0'+(minor&PARTN_MASK):' ', block, rq->nr_sectors); |
block | 1331 | drivers/block/ide.c | block += drive->part[minor&PARTN_MASK].start_sect + drive->sect0; |
block | 1333 | drivers/block/ide.c | if (block == 0 && drive->remap_0_to_1) |
block | 1334 | drivers/block/ide.c | block = 1; /* redirect MBR access to EZ-Drive partn table */ |
block | 1359 | drivers/block/ide.c | do_rw_disk (drive, rq, block); |
block | 1363 | drivers/block/ide.c | ide_do_rw_cdrom (drive, block); |
block | 1374 | drivers/block/ide.c | idetape_do_request (drive, rq, block); |
block | 1384 | drivers/block/ide.c | do_rw_disk (drive, rq, block); /* simpler and faster */ |
block | 626 | drivers/block/ide.h | void idetape_do_request (ide_drive_t *drive, struct request *rq, unsigned long block); |
block | 428 | drivers/block/ll_rw_blk.c | int block = page; |
block | 451 | drivers/block/ll_rw_blk.c | brw_page(rw, (unsigned long) buffer, dev, &block, PAGE_SIZE, 0); |
block | 212 | drivers/block/xd.c | u_int block,count,retry; |
block | 222 | drivers/block/xd.c | block = CURRENT->sector + xd[MINOR(CURRENT->rq_dev)].start_sect; |
block | 229 | drivers/block/xd.c | code = xd_readwrite(CURRENT->cmd,CURRENT_DEV,CURRENT->buffer,block,count); |
block | 334 | drivers/block/xd.c | static int xd_readwrite (u_char operation,u_char drive,char *buffer,u_int block,u_int count) |
block | 341 | drivers/block/xd.c | printk("xd_readwrite: operation = %s, drive = %d, buffer = 0x%X, block = %d, count = %d\n",operation == READ ? "read" : "write",drive,buffer,block,count); |
block | 348 | drivers/block/xd.c | track = block / xd_info[drive].sectors; |
block | 351 | drivers/block/xd.c | sector = block % xd_info[drive].sectors; |
block | 378 | drivers/block/xd.c | count -= temp, buffer += temp * 0x200, block += temp; |
block | 1268 | drivers/cdrom/cdu31a.c | unsigned int block, |
block | 1287 | drivers/cdrom/cdu31a.c | if (((block % 4) * 512) != ((2048 - readahead_dataleft) % 2048)) |
block | 1289 | drivers/cdrom/cdu31a.c | sony_next_block += block % 4; |
block | 1290 | drivers/cdrom/cdu31a.c | sony_blocks_left -= block % 4; |
block | 1291 | drivers/cdrom/cdu31a.c | skip = (block % 4) * 512; |
block | 1475 | drivers/cdrom/cdu31a.c | int block; |
block | 1559 | drivers/cdrom/cdu31a.c | block = CURRENT->sector; |
block | 1573 | drivers/cdrom/cdu31a.c | if (block < 80) |
block | 1576 | drivers/cdrom/cdu31a.c | block += (sony_toc.start_track_lba * 4); |
block | 1587 | drivers/cdrom/cdu31a.c | if ((block / 4) < sony_toc.start_track_lba) |
block | 1594 | drivers/cdrom/cdu31a.c | if ((block / 4) >= sony_toc.lead_out_start_lba) |
block | 1600 | drivers/cdrom/cdu31a.c | if (((block + nblock) / 4) >= sony_toc.lead_out_start_lba) |
block | 1624 | drivers/cdrom/cdu31a.c | if (start_request(block / 4, CDU31A_READAHEAD / 4, 0)) |
block | 1633 | drivers/cdrom/cdu31a.c | else if (block != sony_next_block) |
block | 1637 | drivers/cdrom/cdu31a.c | block, |
block | 1647 | drivers/cdrom/cdu31a.c | if (start_request(block / 4, CDU31A_READAHEAD / 4, 0)) |
block | 1655 | drivers/cdrom/cdu31a.c | read_data_block(CURRENT->buffer, block, nblock, res_reg, &res_size); |
block | 261 | drivers/cdrom/gscd.c | unsigned int block,dev; |
block | 268 | drivers/cdrom/gscd.c | block = CURRENT->sector; |
block | 299 | drivers/cdrom/gscd.c | printk ("GSCD: dev %d, block %d, nsect %d\n", dev, block, nsect ); |
block | 315 | drivers/cdrom/gscd.c | long block; |
block | 337 | drivers/cdrom/gscd.c | block = CURRENT -> sector / 4; |
block | 338 | drivers/cdrom/gscd.c | gscd_hsg2msf(block, &gscdcmd.start); /* cvt to msf format */ |
block | 2752 | drivers/cdrom/sbpcd.c | int block, checksum; |
block | 2764 | drivers/cdrom/sbpcd.c | for (block=CD_MSF_OFFSET+1;block<CD_MSF_OFFSET+200;block++) |
block | 2772 | drivers/cdrom/sbpcd.c | drvcmd[1]=(block>>16)&0xFF; |
block | 2773 | drivers/cdrom/sbpcd.c | drvcmd[2]=(block>>8)&0xFF; |
block | 2774 | drivers/cdrom/sbpcd.c | drvcmd[3]=block&0xFF; |
block | 2783 | drivers/cdrom/sbpcd.c | drvcmd[2]=(block>>16)&0xFF; |
block | 2784 | drivers/cdrom/sbpcd.c | drvcmd[3]=(block>>8)&0xFF; |
block | 2785 | drivers/cdrom/sbpcd.c | drvcmd[4]=block&0xFF; |
block | 4146 | drivers/cdrom/sbpcd.c | int i=0, j=0, frame, block; |
block | 4171 | drivers/cdrom/sbpcd.c | block=msf2lba(&read_audio.addr.msf.minute); |
block | 4173 | drivers/cdrom/sbpcd.c | block=read_audio.addr.lba; |
block | 4180 | drivers/cdrom/sbpcd.c | block, blk2msf(block)); |
block | 4212 | drivers/cdrom/sbpcd.c | drvcmd[1]=(block>>16)&0x000000ff; |
block | 4213 | drivers/cdrom/sbpcd.c | drvcmd[2]=(block>>8)&0x000000ff; |
block | 4214 | drivers/cdrom/sbpcd.c | drvcmd[3]=block&0x000000ff; |
block | 4222 | drivers/cdrom/sbpcd.c | lba2msf(block,&drvcmd[1]); /* msf-bin format required */ |
block | 4230 | drivers/cdrom/sbpcd.c | lba2msf(block,&drvcmd[1]); /* msf-bin format required */ |
block | 4412 | drivers/cdrom/sbpcd.c | u_int block; |
block | 4442 | drivers/cdrom/sbpcd.c | block = CURRENT->sector; /* always numbered as 512-byte-pieces */ |
block | 4445 | drivers/cdrom/sbpcd.c | msg(DBG_BSZ,"read sector %d (%d sectors)\n", block, nsect); |
block | 4447 | drivers/cdrom/sbpcd.c | msg(DBG_MUL,"read LBA %d\n", block/4); |
block | 4506 | drivers/cdrom/sbpcd.c | int block; |
block | 4510 | drivers/cdrom/sbpcd.c | block=CURRENT->sector/4; |
block | 4511 | drivers/cdrom/sbpcd.c | if (block+D_S[d].sbp_bufsiz <= D_S[d].CDsize_frm) |
block | 4515 | drivers/cdrom/sbpcd.c | D_S[d].sbp_read_frames=D_S[d].CDsize_frm-block; |
block | 4520 | drivers/cdrom/sbpcd.c | block, D_S[d].CDsize_frm); |
block | 4530 | drivers/cdrom/sbpcd.c | lba2msf(block,&drvcmd[1]); /* msf-bcd format required */ |
block | 4545 | drivers/cdrom/sbpcd.c | drvcmd[1]=(block>>16)&0x0ff; |
block | 4546 | drivers/cdrom/sbpcd.c | drvcmd[2]=(block>>8)&0x0ff; |
block | 4547 | drivers/cdrom/sbpcd.c | drvcmd[3]=block&0x0ff; |
block | 4556 | drivers/cdrom/sbpcd.c | lba2msf(block,&drvcmd[1]); /* msf-bcd format required */ |
block | 4563 | drivers/cdrom/sbpcd.c | drvcmd[1]=(block>>16)&0x0ff; |
block | 4564 | drivers/cdrom/sbpcd.c | drvcmd[2]=(block>>8)&0x0ff; |
block | 4565 | drivers/cdrom/sbpcd.c | drvcmd[3]=block&0x0ff; |
block | 4575 | drivers/cdrom/sbpcd.c | lba2msf(block,&drvcmd[1]); /* msf-bin format required */ |
block | 4582 | drivers/cdrom/sbpcd.c | lba2msf(block,&drvcmd[1]); /* msf-bin format required */ |
block | 4590 | drivers/cdrom/sbpcd.c | drvcmd[2]=(block>>24)&0x0ff; |
block | 4591 | drivers/cdrom/sbpcd.c | drvcmd[3]=(block>>16)&0x0ff; |
block | 4592 | drivers/cdrom/sbpcd.c | drvcmd[4]=(block>>8)&0x0ff; |
block | 4593 | drivers/cdrom/sbpcd.c | drvcmd[5]=block&0x0ff; |
block | 787 | drivers/cdrom/sonycd535.c | int block; |
block | 808 | drivers/cdrom/sonycd535.c | block = CURRENT->sector; |
block | 821 | drivers/cdrom/sonycd535.c | if (sony_toc->lead_out_start_lba <= (block / 4)) { |
block | 825 | drivers/cdrom/sonycd535.c | if (sony_toc->lead_out_start_lba <= ((block + nsect) / 4)) { |
block | 834 | drivers/cdrom/sonycd535.c | if ((block < sony_first_block) || (sony_last_block < block)) { |
block | 835 | drivers/cdrom/sonycd535.c | sony_first_block = (block / 4) * 4; |
block | 836 | drivers/cdrom/sonycd535.c | log_to_msf(block / 4, params); |
block | 842 | drivers/cdrom/sonycd535.c | if (sony_toc->lead_out_start_lba <= ((block / 4) + sony_buffer_sectors)) { |
block | 844 | drivers/cdrom/sonycd535.c | read_size = sony_toc->lead_out_start_lba - (block / 4); |
block | 909 | drivers/cdrom/sonycd535.c | copyoff = block - sony_first_block; |
block | 913 | drivers/cdrom/sonycd535.c | block += 1; |
block | 4744 | drivers/scsi/advansys.c | (unsigned) s->hostt, (unsigned) s->block); |
block | 287 | drivers/scsi/hosts.c | retval->block = NULL; |
block | 267 | drivers/scsi/hosts.h | struct Scsi_Host * block; |
block | 99 | drivers/scsi/scsi.c | #define SCSI_BLOCK(HOST) ((HOST->block && host_active && HOST != host_active) \ |
block | 335 | drivers/scsi/scsi.c | if (block_count == 1) sh[0]->block = NULL; |
block | 340 | drivers/scsi/scsi.c | sh[index]->block = sh[index + 1]; |
block | 345 | drivers/scsi/scsi.c | sh[block_count - 1]->block = sh[0]; |
block | 1269 | drivers/scsi/scsi.c | if (host->block) host_active = host; |
block | 1717 | drivers/scsi/scsi.c | if (host->block && host->host_busy == 0) { |
block | 1725 | drivers/scsi/scsi.c | for (next = host->block; next != host; next = next->block) |
block | 1972 | drivers/scsi/scsi.c | if (!host->block) host->host_busy++; |
block | 1978 | drivers/scsi/scsi.c | if (!host->block) host->host_busy--; |
block | 497 | drivers/scsi/scsi.h | if (SCpnt->host->block) { |
block | 500 | drivers/scsi/scsi.h | for (next = SCpnt->host->block; next != SCpnt->host; |
block | 501 | drivers/scsi/scsi.h | next = next->block) |
block | 87 | drivers/scsi/scsi_debug.c | if ((bh->b_blocknr << 1) + start != block) \ |
block | 88 | drivers/scsi/scsi_debug.c | { printk("Wrong bh block# %d %d ",bh->b_blocknr, block); \ |
block | 101 | drivers/scsi/scsi_debug.c | if (SCpnt->request.sector + start != block) panic("Wrong block."); \ |
block | 105 | drivers/scsi/scsi_debug.c | if ((SCpnt->request.bh->b_blocknr << 1) + start != block) \ |
block | 106 | drivers/scsi/scsi_debug.c | { printk("Wrong bh block# %d %d ",SCpnt->request.bh->b_blocknr, block); \ |
block | 177 | drivers/scsi/scsi_debug.c | int block, start; |
block | 266 | drivers/scsi/scsi_debug.c | block = cmd[5] + (cmd[4] << 8) + (cmd[3] << 16) + (cmd[2] << 24); |
block | 268 | drivers/scsi/scsi_debug.c | block = cmd[3] + (cmd[2] << 8) + ((cmd[1] & 0x1f) << 16); |
block | 302 | drivers/scsi/scsi_debug.c | if(block == 0 && target == 0) { |
block | 318 | drivers/scsi/scsi_debug.c | if (SCpnt->use_sg) printk("Block %x (%d %d)\n",block, SCpnt->request.nr_sectors, |
block | 324 | drivers/scsi/scsi_debug.c | if(block == 0xfff0) { |
block | 347 | drivers/scsi/scsi_debug.c | memcpy(buff+60, &block, sizeof(block)); |
block | 355 | drivers/scsi/scsi_debug.c | block += bufflen >> 9; |
block | 379 | drivers/scsi/scsi_debug.c | block = cmd[5] + (cmd[4] << 8) + (cmd[3] << 16) + (cmd[2] << 24); |
block | 381 | drivers/scsi/scsi_debug.c | block = cmd[3] + (cmd[2] << 8) + ((cmd[1] & 0x1f) << 16); |
block | 391 | drivers/scsi/scsi_debug.c | if (block != *((unsigned long *) (buff+60))) { |
block | 392 | drivers/scsi/scsi_debug.c | printk("%x %x :",block, *((unsigned long *) (buff+60))); |
block | 508 | drivers/scsi/sd.c | int dev, devm, block, this_count; |
block | 525 | drivers/scsi/sd.c | block = SCpnt->request.sector; |
block | 529 | drivers/scsi/sd.c | printk("Doing sd request, dev = %d, block = %d\n", devm, block); |
block | 534 | drivers/scsi/sd.c | block + SCpnt->request.nr_sectors > sd[devm].nr_sects) |
block | 540 | drivers/scsi/sd.c | block += sd[devm].start_sect; |
block | 555 | drivers/scsi/sd.c | 'a' + devm, dev, block); |
block | 570 | drivers/scsi/sd.c | if((block & 1) || (SCpnt->request.nr_sectors & 1)) { |
block | 844 | drivers/scsi/sd.c | if(block & 1) panic("sd.c:Bad block number requested"); |
block | 846 | drivers/scsi/sd.c | block = block >> 1; |
block | 851 | drivers/scsi/sd.c | block = block << 1; |
block | 855 | drivers/scsi/sd.c | if (((this_count > 0xff) || (block > 0x1fffff)) && rscsi_disks[dev].ten) |
block | 861 | drivers/scsi/sd.c | cmd[2] = (unsigned char) (block >> 24) & 0xff; |
block | 862 | drivers/scsi/sd.c | cmd[3] = (unsigned char) (block >> 16) & 0xff; |
block | 863 | drivers/scsi/sd.c | cmd[4] = (unsigned char) (block >> 8) & 0xff; |
block | 864 | drivers/scsi/sd.c | cmd[5] = (unsigned char) block & 0xff; |
block | 874 | drivers/scsi/sd.c | cmd[1] |= (unsigned char) ((block >> 16) & 0x1f); |
block | 875 | drivers/scsi/sd.c | cmd[2] = (unsigned char) ((block >> 8) & 0xff); |
block | 876 | drivers/scsi/sd.c | cmd[3] = (unsigned char) block & 0xff; |
block | 642 | drivers/scsi/sr.c | unsigned int dev, block, realcount; |
block | 655 | drivers/scsi/sr.c | block = SCpnt->request.sector; |
block | 834 | drivers/scsi/sr.c | start = block % 4; |
block | 856 | drivers/scsi/sr.c | block = block >> 2; /* These are the sectors that the cdrom uses */ |
block | 858 | drivers/scsi/sr.c | block = block & 0xfffffffc; |
block | 864 | drivers/scsi/sr.c | if (((realcount > 0xff) || (block > 0x1fffff)) && scsi_CDs[dev].ten) |
block | 873 | drivers/scsi/sr.c | cmd[2] = (unsigned char) (block >> 24) & 0xff; |
block | 874 | drivers/scsi/sr.c | cmd[3] = (unsigned char) (block >> 16) & 0xff; |
block | 875 | drivers/scsi/sr.c | cmd[4] = (unsigned char) (block >> 8) & 0xff; |
block | 876 | drivers/scsi/sr.c | cmd[5] = (unsigned char) block & 0xff; |
block | 889 | drivers/scsi/sr.c | cmd[1] |= (unsigned char) ((block >> 16) & 0x1f); |
block | 890 | drivers/scsi/sr.c | cmd[2] = (unsigned char) ((block >> 8) & 0xff); |
block | 891 | drivers/scsi/sr.c | cmd[3] = (unsigned char) block & 0xff; |
block | 899 | drivers/scsi/sr.c | printk("ReadCD: %d %d %d %d\n",block, realcount, buffer, this_count); |
block | 89 | drivers/sound/opl3.c | static void freq_to_fnum (int freq, int *block, int *fnum); |
block | 528 | drivers/sound/opl3.c | int block, fnum, freq, voice_mode; |
block | 705 | drivers/sound/opl3.c | freq_to_fnum (freq, &block, &fnum); |
block | 716 | drivers/sound/opl3.c | data = 0x20 | ((block & 0x7) << 2) | ((fnum >> 8) & 0x3); |
block | 726 | drivers/sound/opl3.c | freq_to_fnum (int freq, int *block, int *fnum) |
block | 764 | drivers/sound/opl3.c | *block = octave; |
block | 994 | drivers/sound/opl3.c | int block, fnum, freq; |
block | 1013 | drivers/sound/opl3.c | freq_to_fnum (freq, &block, &fnum); |
block | 1020 | drivers/sound/opl3.c | data = 0x20 | ((block & 0x7) << 2) | ((fnum >> 8) & 0x3); /* |
block | 240 | drivers/sound/pss.c | pss_download_boot (pss_config * devc, unsigned char *block, int size, int flags) |
block | 255 | drivers/sound/pss.c | outw (*block++, REG (PSS_DATA)); |
block | 285 | drivers/sound/pss.c | outw (*block++, REG (PSS_DATA)); |
block | 438 | drivers/sound/sscape.c | sscape_download_boot (struct sscape_info *devc, unsigned char *block, int size, int flag) |
block | 484 | drivers/sound/sscape.c | memcpy (audio_devs[devc->my_audiodev]->dmap_out->raw_buf, block, size); |
block | 26 | fs/block_dev.c | int block, blocks; |
block | 56 | fs/block_dev.c | block = filp->f_pos >> blocksize_bits; |
block | 64 | fs/block_dev.c | if (block >= size) |
block | 72 | fs/block_dev.c | bh = getblk(dev, block, blocksize); |
block | 74 | fs/block_dev.c | bh = breada(dev,block,block+1,block+2,-1); |
block | 77 | fs/block_dev.c | for(i=0; i<blocks_per_cluster; i++) cluster_list[i] = block+i; |
block | 78 | fs/block_dev.c | if((block % blocks_per_cluster) == 0) |
block | 80 | fs/block_dev.c | bh = getblk(dev, block, blocksize); |
block | 87 | fs/block_dev.c | bh = bread(dev,block,blocksize); |
block | 91 | fs/block_dev.c | if (block + blocks > size) blocks = size - block; |
block | 93 | fs/block_dev.c | excess = (block + blocks) % blocks_per_cluster; |
block | 98 | fs/block_dev.c | if(((i+block) % blocks_per_cluster) == 0) { |
block | 99 | fs/block_dev.c | for(j=0; j<blocks_per_cluster; j++) cluster_list[j] = block+i+j; |
block | 102 | fs/block_dev.c | bhlist[i] = getblk (dev, block+i, blocksize); |
block | 115 | fs/block_dev.c | block++; |
block | 162 | fs/block_dev.c | unsigned int block; |
block | 210 | fs/block_dev.c | block = offset >> blocksize_bits; |
block | 218 | fs/block_dev.c | excess = (block + blocks) % blocks_per_cluster; |
block | 225 | fs/block_dev.c | if (block + blocks > size) |
block | 226 | fs/block_dev.c | blocks = size - block; |
block | 244 | fs/block_dev.c | if((block % blocks_per_cluster) == 0) { |
block | 245 | fs/block_dev.c | for(i=0; i<blocks_per_cluster; i++) cluster_list[i] = block+i; |
block | 249 | fs/block_dev.c | *bhb = getblk(dev, block++, blocksize); |
block | 310 | fs/buffer.c | #define _hashfn(dev,block) (((unsigned)(HASHDEV(dev)^block))%nr_hash) |
block | 311 | fs/buffer.c | #define hash(dev,block) hash_table[_hashfn(dev,block)] |
block | 459 | fs/buffer.c | static inline struct buffer_head * find_buffer(kdev_t dev, int block, int size) |
block | 463 | fs/buffer.c | for (tmp = hash(dev,block) ; tmp != NULL ; tmp = tmp->b_next) |
block | 464 | fs/buffer.c | if (tmp->b_blocknr == block && tmp->b_dev == dev) |
block | 482 | fs/buffer.c | struct buffer_head * get_hash_table(kdev_t dev, int block, int size) |
block | 487 | fs/buffer.c | if (!(bh=find_buffer(dev,block,size))) |
block | 491 | fs/buffer.c | if (bh->b_dev == dev && bh->b_blocknr == block |
block | 744 | fs/buffer.c | struct buffer_head * getblk(kdev_t dev, int block, int size) |
block | 756 | fs/buffer.c | bh = get_hash_table(dev, block, size); |
block | 769 | fs/buffer.c | if (find_buffer(dev,block,size)) |
block | 781 | fs/buffer.c | bh->b_blocknr=block; |
block | 877 | fs/buffer.c | struct buffer_head * bread(kdev_t dev, int block, int size) |
block | 881 | fs/buffer.c | if (!(bh = getblk(dev, block, size))) { |
block | 904 | fs/buffer.c | struct buffer_head * breada(kdev_t dev, int block, int bufsize, |
block | 916 | fs/buffer.c | if (block < 0 || !(bh = getblk(dev,block,bufsize))) |
block | 934 | fs/buffer.c | bh = getblk(dev,block+i,bufsize); |
block | 1071 | fs/buffer.c | int block, nr; |
block | 1083 | fs/buffer.c | block = *(b++); |
block | 1088 | fs/buffer.c | next->b_blocknr = block; |
block | 1098 | fs/buffer.c | if (bmap && !block) { |
block | 1103 | fs/buffer.c | tmp = get_hash_table(dev, block, size); |
block | 1231 | fs/buffer.c | unsigned long block, address; |
block | 1245 | fs/buffer.c | block = page->offset >> inode->i_sb->s_blocksize_bits; |
block | 1248 | fs/buffer.c | *p = inode->i_op->bmap(inode, block); |
block | 1250 | fs/buffer.c | block++; |
block | 1668 | fs/buffer.c | static unsigned long try_to_generate_cluster(kdev_t dev, int block, int size) |
block | 1684 | fs/buffer.c | nblock = block; |
block | 1698 | fs/buffer.c | bh->b_blocknr = block++; |
block | 77 | fs/ext/file.c | int block, blocks, offset; |
block | 103 | fs/ext/file.c | block = offset >> BLOCK_SIZE_BITS; |
block | 111 | fs/ext/file.c | if (block + blocks > size) |
block | 112 | fs/ext/file.c | blocks = size - block; |
block | 130 | fs/ext/file.c | *bhb = ext_getblk(inode, block++, 0); |
block | 40 | fs/ext/freelists.c | void ext_free_block(struct super_block * sb, int block) |
block | 50 | fs/ext/freelists.c | if (block < sb->u.ext_sb.s_firstdatazone || |
block | 51 | fs/ext/freelists.c | block >= sb->u.ext_sb.s_nzones) { |
block | 55 | fs/ext/freelists.c | bh = get_hash_table(sb->s_dev, block, sb->s_blocksize); |
block | 63 | fs/ext/freelists.c | printk("ext_free_block: block full, skipping to %d\n", block); |
block | 68 | fs/ext/freelists.c | block, sb->s_blocksize))) |
block | 73 | fs/ext/freelists.c | sb->u.ext_sb.s_firstfreeblocknumber = block; |
block | 75 | fs/ext/freelists.c | efb->free[efb->count++] = block; |
block | 145 | fs/ext/freelists.c | unsigned long count, block; |
block | 153 | fs/ext/freelists.c | block = efb->next; |
block | 154 | fs/ext/freelists.c | while (block) { |
block | 155 | fs/ext/freelists.c | if (!(bh = bread (sb->s_dev, block, sb->s_blocksize))) { |
block | 157 | fs/ext/freelists.c | block = 0; |
block | 161 | fs/ext/freelists.c | block = efb->next; |
block | 180 | fs/ext/freelists.c | unsigned long block; |
block | 221 | fs/ext/freelists.c | block = 2 + (ino - 1) / EXT_INODES_PER_BLOCK; |
block | 222 | fs/ext/freelists.c | if (!(bh = bread(dev, block, sb->s_blocksize))) |
block | 244 | fs/ext/freelists.c | unsigned long block; |
block | 270 | fs/ext/freelists.c | block = 2 + (((unsigned long) efi->next) - 1) / EXT_INODES_PER_BLOCK; |
block | 276 | fs/ext/freelists.c | bread(sb->s_dev, block, sb->s_blocksize))) |
block | 305 | fs/ext/freelists.c | unsigned long count, block, ino; |
block | 321 | fs/ext/freelists.c | block = 2 + ((ino - 1) / EXT_INODES_PER_BLOCK); |
block | 322 | fs/ext/freelists.c | if (!(bh = bread (sb->s_dev, block, sb->s_blocksize))) { |
block | 324 | fs/ext/freelists.c | block = 0; |
block | 30 | fs/ext/fsync.c | static int sync_block (struct inode * inode, unsigned long * block, int wait) |
block | 35 | fs/ext/fsync.c | if (!*block) |
block | 37 | fs/ext/fsync.c | tmp = *block; |
block | 38 | fs/ext/fsync.c | bh = get_hash_table(inode->i_dev, *block, blocksize); |
block | 41 | fs/ext/fsync.c | if (*block != tmp) { |
block | 66 | fs/ext/inode.c | int block; |
block | 115 | fs/ext/inode.c | block = 2 + (s->u.ext_sb.s_firstfreeinodenumber - 1) / EXT_INODES_PER_BLOCK; |
block | 116 | fs/ext/inode.c | if (!(s->u.ext_sb.s_firstfreeinodeblock = bread(dev, block, BLOCK_SIZE))) { |
block | 185 | fs/ext/inode.c | int ext_bmap(struct inode * inode,int block) |
block | 189 | fs/ext/inode.c | if (block<0) { |
block | 193 | fs/ext/inode.c | if (block >= 9+256+256*256+256*256*256) { |
block | 197 | fs/ext/inode.c | if (block<9) |
block | 198 | fs/ext/inode.c | return inode_bmap(inode,block); |
block | 199 | fs/ext/inode.c | block -= 9; |
block | 200 | fs/ext/inode.c | if (block<256) { |
block | 204 | fs/ext/inode.c | return block_bmap(bread(inode->i_dev,i,BLOCK_SIZE),block); |
block | 206 | fs/ext/inode.c | block -= 256; |
block | 207 | fs/ext/inode.c | if (block<256*256) { |
block | 211 | fs/ext/inode.c | i = block_bmap(bread(inode->i_dev,i,BLOCK_SIZE),block>>8); |
block | 214 | fs/ext/inode.c | return block_bmap(bread(inode->i_dev,i,BLOCK_SIZE),block & 255); |
block | 216 | fs/ext/inode.c | block -= 256*256; |
block | 220 | fs/ext/inode.c | i = block_bmap(bread(inode->i_dev,i,BLOCK_SIZE),block>>16); |
block | 223 | fs/ext/inode.c | i = block_bmap(bread(inode->i_dev,i,BLOCK_SIZE),(block>>8) & 255); |
block | 226 | fs/ext/inode.c | return block_bmap(bread(inode->i_dev,i,BLOCK_SIZE),block & 255); |
block | 312 | fs/ext/inode.c | struct buffer_head * ext_getblk(struct inode * inode, int block, int create) |
block | 316 | fs/ext/inode.c | if (block<0) { |
block | 320 | fs/ext/inode.c | if (block >= 9+256+256*256+256*256*256) { |
block | 324 | fs/ext/inode.c | if (block<9) |
block | 325 | fs/ext/inode.c | return inode_getblk(inode,block,create); |
block | 326 | fs/ext/inode.c | block -= 9; |
block | 327 | fs/ext/inode.c | if (block<256) { |
block | 329 | fs/ext/inode.c | return block_getblk(inode,bh,block,create); |
block | 331 | fs/ext/inode.c | block -= 256; |
block | 332 | fs/ext/inode.c | if (block<256*256) { |
block | 334 | fs/ext/inode.c | bh = block_getblk(inode,bh,block>>8,create); |
block | 335 | fs/ext/inode.c | return block_getblk(inode,bh,block & 255,create); |
block | 337 | fs/ext/inode.c | block -= 256*256; |
block | 339 | fs/ext/inode.c | bh = block_getblk(inode,bh,block>>16,create); |
block | 340 | fs/ext/inode.c | bh = block_getblk(inode,bh,(block>>8) & 255,create); |
block | 341 | fs/ext/inode.c | return block_getblk(inode,bh,block & 255,create); |
block | 344 | fs/ext/inode.c | struct buffer_head * ext_bread(struct inode * inode, int block, int create) |
block | 348 | fs/ext/inode.c | bh = ext_getblk(inode,block,create); |
block | 363 | fs/ext/inode.c | int block; |
block | 365 | fs/ext/inode.c | block = 2 + (inode->i_ino-1)/EXT_INODES_PER_BLOCK; |
block | 366 | fs/ext/inode.c | if (!(bh=bread(inode->i_dev, block, BLOCK_SIZE))) |
block | 379 | fs/ext/inode.c | else for (block = 0; block < 12; block++) |
block | 380 | fs/ext/inode.c | inode->u.ext_i.i_data[block] = raw_inode->i_zone[block]; |
block | 401 | fs/ext/inode.c | int block; |
block | 403 | fs/ext/inode.c | block = 2 + (inode->i_ino-1)/EXT_INODES_PER_BLOCK; |
block | 404 | fs/ext/inode.c | if (!(bh=bread(inode->i_dev, block, BLOCK_SIZE))) |
block | 416 | fs/ext/inode.c | else for (block = 0; block < 12; block++) |
block | 417 | fs/ext/inode.c | raw_inode->i_zone[block] = inode->u.ext_i.i_data[block]; |
block | 168 | fs/ext2/balloc.c | void ext2_free_blocks (const struct inode * inode, unsigned long block, |
block | 188 | fs/ext2/balloc.c | if (block < es->s_first_data_block || |
block | 189 | fs/ext2/balloc.c | (block + count) > es->s_blocks_count) { |
block | 192 | fs/ext2/balloc.c | "block = %lu, count = %lu", block, count); |
block | 197 | fs/ext2/balloc.c | ext2_debug ("freeing block %lu\n", block); |
block | 199 | fs/ext2/balloc.c | block_group = (block - es->s_first_data_block) / |
block | 201 | fs/ext2/balloc.c | bit = (block - es->s_first_data_block) % EXT2_BLOCKS_PER_GROUP(sb); |
block | 206 | fs/ext2/balloc.c | block, count); |
block | 212 | fs/ext2/balloc.c | (in_range (gdp->bg_block_bitmap, block, count) || |
block | 213 | fs/ext2/balloc.c | in_range (gdp->bg_inode_bitmap, block, count) || |
block | 214 | fs/ext2/balloc.c | in_range (block, gdp->bg_inode_table, |
block | 216 | fs/ext2/balloc.c | in_range (block + count - 1, gdp->bg_inode_table, |
block | 221 | fs/ext2/balloc.c | block, count); |
block | 227 | fs/ext2/balloc.c | block); |
block | 530 | fs/ext2/balloc.c | static inline int block_in_use (unsigned long block, |
block | 534 | fs/ext2/balloc.c | return test_bit ((block - sb->u.ext2_sb.s_es->s_first_data_block) % |
block | 89 | fs/ext2/file.c | long block; |
block | 127 | fs/ext2/file.c | block = pos2 >> EXT2_BLOCK_SIZE_BITS(sb); |
block | 137 | fs/ext2/file.c | bh = ext2_getblk (inode, block, 1, &err); |
block | 180 | fs/ext2/file.c | block++; |
block | 30 | fs/ext2/fsync.c | static int sync_block (struct inode * inode, u32 * block, int wait) |
block | 35 | fs/ext2/fsync.c | if (!*block) |
block | 37 | fs/ext2/fsync.c | tmp = *block; |
block | 38 | fs/ext2/fsync.c | bh = get_hash_table (inode->i_dev, *block, blocksize); |
block | 41 | fs/ext2/fsync.c | if (*block != tmp) { |
block | 127 | fs/ext2/inode.c | int ext2_bmap (struct inode * inode, int block) |
block | 133 | fs/ext2/inode.c | if (block < 0) { |
block | 137 | fs/ext2/inode.c | if (block >= EXT2_NDIR_BLOCKS + addr_per_block + |
block | 143 | fs/ext2/inode.c | if (block < EXT2_NDIR_BLOCKS) |
block | 144 | fs/ext2/inode.c | return inode_bmap (inode, block); |
block | 145 | fs/ext2/inode.c | block -= EXT2_NDIR_BLOCKS; |
block | 146 | fs/ext2/inode.c | if (block < addr_per_block) { |
block | 151 | fs/ext2/inode.c | inode->i_sb->s_blocksize), block); |
block | 153 | fs/ext2/inode.c | block -= addr_per_block; |
block | 154 | fs/ext2/inode.c | if (block < (1 << (addr_per_block_bits * 2))) { |
block | 160 | fs/ext2/inode.c | block >> addr_per_block_bits); |
block | 165 | fs/ext2/inode.c | block & (addr_per_block - 1)); |
block | 167 | fs/ext2/inode.c | block -= (1 << (addr_per_block_bits * 2)); |
block | 172 | fs/ext2/inode.c | block >> (addr_per_block_bits * 2)); |
block | 176 | fs/ext2/inode.c | (block >> addr_per_block_bits) & (addr_per_block - 1)); |
block | 180 | fs/ext2/inode.c | block & (addr_per_block - 1)); |
block | 361 | fs/ext2/inode.c | struct buffer_head * ext2_getblk (struct inode * inode, long block, |
block | 370 | fs/ext2/inode.c | if (block < 0) { |
block | 374 | fs/ext2/inode.c | if (block > EXT2_NDIR_BLOCKS + addr_per_block + |
block | 386 | fs/ext2/inode.c | ext2_debug ("block %lu, next %lu, goal %lu.\n", block, |
block | 390 | fs/ext2/inode.c | if (block == inode->u.ext2_i.i_next_alloc_block + 1) { |
block | 396 | fs/ext2/inode.c | b = block; |
block | 397 | fs/ext2/inode.c | if (block < EXT2_NDIR_BLOCKS) |
block | 398 | fs/ext2/inode.c | return inode_getblk (inode, block, create, b, err); |
block | 399 | fs/ext2/inode.c | block -= EXT2_NDIR_BLOCKS; |
block | 400 | fs/ext2/inode.c | if (block < addr_per_block) { |
block | 402 | fs/ext2/inode.c | return block_getblk (inode, bh, block, create, |
block | 405 | fs/ext2/inode.c | block -= addr_per_block; |
block | 406 | fs/ext2/inode.c | if (block < (1 << (addr_per_block_bits * 2))) { |
block | 408 | fs/ext2/inode.c | bh = block_getblk (inode, bh, block >> addr_per_block_bits, |
block | 410 | fs/ext2/inode.c | return block_getblk (inode, bh, block & (addr_per_block - 1), |
block | 413 | fs/ext2/inode.c | block -= (1 << (addr_per_block_bits * 2)); |
block | 415 | fs/ext2/inode.c | bh = block_getblk (inode, bh, block >> (addr_per_block_bits * 2), |
block | 417 | fs/ext2/inode.c | bh = block_getblk (inode, bh, (block >> addr_per_block_bits) & (addr_per_block - 1), |
block | 419 | fs/ext2/inode.c | return block_getblk (inode, bh, block & (addr_per_block - 1), create, |
block | 423 | fs/ext2/inode.c | int ext2_getcluster (struct inode * inode, long block) |
block | 433 | fs/ext2/inode.c | if (block < 0) { |
block | 437 | fs/ext2/inode.c | if (block > EXT2_NDIR_BLOCKS + addr_per_block + |
block | 445 | fs/ext2/inode.c | b = block; |
block | 446 | fs/ext2/inode.c | if (block < EXT2_NDIR_BLOCKS) return 0; |
block | 448 | fs/ext2/inode.c | block -= EXT2_NDIR_BLOCKS; |
block | 450 | fs/ext2/inode.c | if (block < addr_per_block) { |
block | 452 | fs/ext2/inode.c | return block_getcluster (inode, bh, block, |
block | 455 | fs/ext2/inode.c | block -= addr_per_block; |
block | 456 | fs/ext2/inode.c | if (block < (1 << (addr_per_block_bits * 2))) { |
block | 458 | fs/ext2/inode.c | bh = block_getblk (inode, bh, block >> addr_per_block_bits, |
block | 460 | fs/ext2/inode.c | return block_getcluster (inode, bh, block & (addr_per_block - 1), |
block | 463 | fs/ext2/inode.c | block -= (1 << (addr_per_block_bits * 2)); |
block | 465 | fs/ext2/inode.c | bh = block_getblk (inode, bh, block >> (addr_per_block_bits * 2), |
block | 467 | fs/ext2/inode.c | bh = block_getblk (inode, bh, (block >> addr_per_block_bits) & (addr_per_block - 1), |
block | 469 | fs/ext2/inode.c | return block_getcluster (inode, bh, block & (addr_per_block - 1), |
block | 473 | fs/ext2/inode.c | struct buffer_head * ext2_bread (struct inode * inode, int block, |
block | 478 | fs/ext2/inode.c | bh = ext2_getblk (inode, block, create, err); |
block | 497 | fs/ext2/inode.c | unsigned long block; |
block | 518 | fs/ext2/inode.c | block = gdp[desc].bg_inode_table + |
block | 521 | fs/ext2/inode.c | if (!(bh = bread (inode->i_dev, block, inode->i_sb->s_blocksize))) |
block | 524 | fs/ext2/inode.c | "inode=%lu, block=%lu", inode->i_ino, block); |
block | 555 | fs/ext2/inode.c | else for (block = 0; block < EXT2_N_BLOCKS; block++) |
block | 556 | fs/ext2/inode.c | inode->u.ext2_i.i_data[block] = raw_inode->i_block[block]; |
block | 589 | fs/ext2/inode.c | unsigned long block; |
block | 609 | fs/ext2/inode.c | block = gdp[desc].bg_inode_table + |
block | 612 | fs/ext2/inode.c | if (!(bh = bread (inode->i_dev, block, inode->i_sb->s_blocksize))) |
block | 615 | fs/ext2/inode.c | "inode=%lu, block=%lu", inode->i_ino, block); |
block | 637 | fs/ext2/inode.c | else for (block = 0; block < EXT2_N_BLOCKS; block++) |
block | 638 | fs/ext2/inode.c | raw_inode->i_block[block] = inode->u.ext2_i.i_data[block]; |
block | 76 | fs/ext2/namei.c | int block, toread, i, err; |
block | 93 | fs/ext2/namei.c | for (block = 0; block < NAMEI_RA_SIZE; ++block) { |
block | 96 | fs/ext2/namei.c | if ((block << EXT2_BLOCK_SIZE_BITS (sb)) >= dir->i_size) |
block | 98 | fs/ext2/namei.c | bh = ext2_getblk (dir, block, 0, &err); |
block | 99 | fs/ext2/namei.c | bh_use[block] = bh; |
block | 104 | fs/ext2/namei.c | for (block = 0, offset = 0; offset < dir->i_size; block++) { |
block | 109 | fs/ext2/namei.c | if ((block % NAMEI_RA_BLOCKS) == 0 && toread) { |
block | 113 | fs/ext2/namei.c | bh = bh_use[block % NAMEI_RA_SIZE]; |
block | 149 | fs/ext2/namei.c | if (((block + NAMEI_RA_SIZE) << EXT2_BLOCK_SIZE_BITS (sb)) >= |
block | 153 | fs/ext2/namei.c | bh = ext2_getblk (dir, block + NAMEI_RA_SIZE, 0, &err); |
block | 154 | fs/ext2/namei.c | bh_use[block % NAMEI_RA_SIZE] = bh; |
block | 316 | fs/ext2/super.c | unsigned long block = sb->u.ext2_sb.s_es->s_first_data_block; |
block | 325 | fs/ext2/super.c | if (gdp->bg_block_bitmap < block || |
block | 326 | fs/ext2/super.c | gdp->bg_block_bitmap >= block + EXT2_BLOCKS_PER_GROUP(sb)) |
block | 334 | fs/ext2/super.c | if (gdp->bg_inode_bitmap < block || |
block | 335 | fs/ext2/super.c | gdp->bg_inode_bitmap >= block + EXT2_BLOCKS_PER_GROUP(sb)) |
block | 343 | fs/ext2/super.c | if (gdp->bg_inode_table < block || |
block | 345 | fs/ext2/super.c | block + EXT2_BLOCKS_PER_GROUP(sb)) |
block | 353 | fs/ext2/super.c | block += EXT2_BLOCKS_PER_GROUP(sb); |
block | 15 | fs/fat/buffer.c | int block) |
block | 19 | fs/fat/buffer.c | ret = bread (sb->s_dev,block,512); |
block | 21 | fs/fat/buffer.c | struct buffer_head *real = bread (sb->s_dev,block>>1,1024); |
block | 57 | fs/fat/buffer.c | if (block & 1) ret->b_data += 512; |
block | 68 | fs/fat/buffer.c | int block) |
block | 72 | fs/fat/buffer.c | ret = getblk (sb->s_dev,block,512); |
block | 80 | fs/fat/buffer.c | ret = fat_bread (sb,block); |
block | 346 | fs/fat/inode.c | int fat_bmap(struct inode *inode,int block) |
block | 353 | fs/fat/inode.c | return sb->dir_start + block; |
block | 355 | fs/fat/inode.c | cluster = block/sb->cluster_size; |
block | 356 | fs/fat/inode.c | offset = block % sb->cluster_size; |
block | 2 | fs/fat/msbuffer.h | struct buffer_head *fat_bread (struct super_block *sb, int block); |
block | 3 | fs/fat/msbuffer.h | struct buffer_head *fat_getblk (struct super_block *sb, int block); |
block | 886 | fs/hpfs/hpfs_fs.c | char *block; |
block | 917 | fs/hpfs/hpfs_fs.c | block = map_sector(inode->i_dev, hpfs_bmap(inode, q), &bh); |
block | 918 | fs/hpfs/hpfs_fs.c | if (!block) |
block | 926 | fs/hpfs/hpfs_fs.c | inode->i_hpfs_conv = choose_conv(block + r, n); |
block | 933 | fs/hpfs/hpfs_fs.c | memcpy_tofs(buf, block + r, n); |
block | 940 | fs/hpfs/hpfs_fs.c | n0 = convcpy_tofs(buf, block + r, n); |
block | 352 | fs/inode.c | int bmap(struct inode * inode, int block) |
block | 355 | fs/inode.c | return inode->i_op->bmap(inode,block); |
block | 20 | fs/ioctl.c | int block; |
block | 31 | fs/ioctl.c | block = get_fs_long((long *) arg); |
block | 32 | fs/ioctl.c | block = filp->f_inode->i_op->bmap(filp->f_inode,block); |
block | 33 | fs/ioctl.c | put_fs_long(block,(long *) arg); |
block | 114 | fs/isofs/dir.c | unsigned int block, offset; |
block | 123 | fs/isofs/dir.c | block = isofs_bmap(inode, filp->f_pos >> bufbits); |
block | 125 | fs/isofs/dir.c | if (!block) |
block | 128 | fs/isofs/dir.c | if (!(bh = breada(inode->i_dev, block, bufsize, filp->f_pos, inode->i_size))) |
block | 135 | fs/isofs/dir.c | block, offset, filp->f_pos); |
block | 141 | fs/isofs/dir.c | block = isofs_bmap(inode, (filp->f_pos) >> bufbits); |
block | 142 | fs/isofs/dir.c | if (!block) |
block | 144 | fs/isofs/dir.c | bh = breada(inode->i_dev, block, bufsize, filp->f_pos, inode->i_size); |
block | 151 | fs/isofs/dir.c | inode_number = (block << bufbits) + (offset & (bufsize - 1)); |
block | 164 | fs/isofs/dir.c | block = isofs_bmap(inode, (filp->f_pos) >> bufbits); |
block | 165 | fs/isofs/dir.c | if (!block) |
block | 167 | fs/isofs/dir.c | bh = breada(inode->i_dev, block, bufsize, filp->f_pos, inode->i_size); |
block | 181 | fs/isofs/dir.c | block = isofs_bmap(inode, (filp->f_pos + de_len) >> bufbits); |
block | 182 | fs/isofs/dir.c | if (!block) |
block | 184 | fs/isofs/dir.c | bh = breada(inode->i_dev, block, bufsize, filp->f_pos+de_len, inode->i_size); |
block | 415 | fs/isofs/inode.c | int isofs_bmap(struct inode * inode,int block) |
block | 418 | fs/isofs/inode.c | if (block<0) { |
block | 422 | fs/isofs/inode.c | return (inode->u.isofs_i.i_first_extent >> ISOFS_BUFFER_BITS(inode)) + block; |
block | 433 | fs/isofs/inode.c | int block; |
block | 437 | fs/isofs/inode.c | block = inode->i_ino >> ISOFS_BUFFER_BITS(inode); |
block | 438 | fs/isofs/inode.c | if (!(bh=bread(inode->i_dev,block, bufsize))) { |
block | 461 | fs/isofs/inode.c | if (!(bh = bread(inode->i_dev,++block, bufsize))) { |
block | 533 | fs/isofs/inode.c | printk("Get inode %d: %d %d: %d\n",inode->i_ino, block, |
block | 646 | fs/isofs/inode.c | unsigned int block,offset; |
block | 656 | fs/isofs/inode.c | block = extent << (ISOFS_BLOCK_BITS - bufbits); |
block | 657 | fs/isofs/inode.c | if (!(bh = bread(parent->i_dev, block, bufsize))) return -1; |
block | 693 | fs/isofs/inode.c | block = parent_dir << (ISOFS_BLOCK_BITS - bufbits); |
block | 694 | fs/isofs/inode.c | if (!block || !(bh = bread(parent->i_dev,block, bufsize))) |
block | 700 | fs/isofs/inode.c | inode_number = (block << bufbits)+(offset & (bufsize - 1)); |
block | 710 | fs/isofs/inode.c | block++; |
block | 713 | fs/isofs/inode.c | if((block & 1) && (ISOFS_BLOCK_BITS - bufbits)) |
block | 715 | fs/isofs/inode.c | if (!block |
block | 716 | fs/isofs/inode.c | || !(bh = bread(parent->i_dev,block, bufsize))) |
block | 740 | fs/isofs/inode.c | block++; |
block | 741 | fs/isofs/inode.c | if(!(bh = bread(parent->i_dev,block,bufsize))) { |
block | 792 | fs/isofs/inode.c | struct buffer_head * leak_check_bread(int dev, int block, int size){ |
block | 794 | fs/isofs/inode.c | return bread(dev, block, size); |
block | 66 | fs/isofs/namei.c | unsigned int block, i, f_pos, offset, inode_number; |
block | 79 | fs/isofs/namei.c | if (!(block = dir->u.isofs_i.i_first_extent)) return NULL; |
block | 84 | fs/isofs/namei.c | block = isofs_bmap(dir,f_pos >> bufbits); |
block | 86 | fs/isofs/namei.c | if (!block || !(bh = bread(dir->i_dev,block,bufsize))) return NULL; |
block | 91 | fs/isofs/namei.c | inode_number = (block << bufbits) + (offset & (bufsize - 1)); |
block | 101 | fs/isofs/namei.c | block = isofs_bmap(dir,f_pos>>bufbits); |
block | 102 | fs/isofs/namei.c | if (!block || !(bh = bread(dir->i_dev,block,bufsize))) |
block | 123 | fs/isofs/namei.c | block = isofs_bmap(dir,f_pos>>bufbits); |
block | 124 | fs/isofs/namei.c | if (!block || !(bh = bread(dir->i_dev,block,bufsize))) { |
block | 56 | fs/isofs/rock.c | int block, offset, offset1; \ |
block | 60 | fs/isofs/rock.c | block = cont_extent; \ |
block | 64 | fs/isofs/rock.c | block <<= 1; \ |
block | 65 | fs/isofs/rock.c | if (offset >= 1024) block++; \ |
block | 68 | fs/isofs/rock.c | bh = bread(DEV->i_dev, block++, ISOFS_BUFFER_SIZE(DEV)); \ |
block | 79 | fs/isofs/rock.c | bh = bread(DEV->i_dev, block, ISOFS_BUFFER_SIZE(DEV)); \ |
block | 412 | fs/isofs/rock.c | int block; |
block | 424 | fs/isofs/rock.c | block = inode->i_ino >> bufbits; |
block | 425 | fs/isofs/rock.c | if (!(bh=bread(inode->i_dev,block, bufsize))) { |
block | 443 | fs/isofs/rock.c | if (!(bh = bread(inode->i_dev,++block, bufsize))) { |
block | 120 | fs/locks.c | static inline void locks_insert_block(struct file_lock **block, |
block | 125 | fs/locks.c | while ((bfl = *block) != NULL) { |
block | 126 | fs/locks.c | block = &bfl->fl_block; |
block | 129 | fs/locks.c | *block = fl; |
block | 135 | fs/locks.c | static inline void locks_delete_block(struct file_lock **block, |
block | 140 | fs/locks.c | while ((bfl = *block) != NULL) { |
block | 142 | fs/locks.c | *block = fl->fl_block; |
block | 146 | fs/locks.c | block = &bfl->fl_block; |
block | 46 | fs/minix/bitmap.c | void minix_free_block(struct super_block * sb, int block) |
block | 55 | fs/minix/bitmap.c | if (block < sb->u.minix_sb.s_firstdatazone || |
block | 56 | fs/minix/bitmap.c | block >= sb->u.minix_sb.s_nzones) { |
block | 60 | fs/minix/bitmap.c | bh = get_hash_table(sb->s_dev,block,BLOCK_SIZE); |
block | 64 | fs/minix/bitmap.c | zone = block - sb->u.minix_sb.s_firstdatazone + 1; |
block | 74 | fs/minix/bitmap.c | kdevname(sb->s_dev), block); |
block | 31 | fs/minix/fsync.c | static int V1_sync_block (struct inode * inode, unsigned short * block, int wait) |
block | 36 | fs/minix/fsync.c | if (!*block) |
block | 38 | fs/minix/fsync.c | tmp = *block; |
block | 39 | fs/minix/fsync.c | bh = get_hash_table(inode->i_dev, *block, blocksize); |
block | 42 | fs/minix/fsync.c | if (*block != tmp) { |
block | 168 | fs/minix/fsync.c | static int V2_sync_block (struct inode * inode, unsigned long * block, int wait) |
block | 173 | fs/minix/fsync.c | if (!*block) |
block | 175 | fs/minix/fsync.c | tmp = *block; |
block | 176 | fs/minix/fsync.c | bh = get_hash_table(inode->i_dev, *block, blocksize); |
block | 179 | fs/minix/fsync.c | if (*block != tmp) { |
block | 125 | fs/minix/inode.c | int i, block; |
block | 189 | fs/minix/inode.c | block=2; |
block | 191 | fs/minix/inode.c | if ((s->u.minix_sb.s_imap[i]=bread(dev,block,BLOCK_SIZE)) != NULL) |
block | 192 | fs/minix/inode.c | block++; |
block | 196 | fs/minix/inode.c | if ((s->u.minix_sb.s_zmap[i]=bread(dev,block,BLOCK_SIZE)) != NULL) |
block | 197 | fs/minix/inode.c | block++; |
block | 200 | fs/minix/inode.c | if (block != 2+s->u.minix_sb.s_imap_blocks+s->u.minix_sb.s_zmap_blocks) { |
block | 271 | fs/minix/inode.c | static int V1_minix_bmap(struct inode * inode,int block) |
block | 275 | fs/minix/inode.c | if (block<0) { |
block | 279 | fs/minix/inode.c | if (block >= (inode->i_sb->u.minix_sb.s_max_size/BLOCK_SIZE)) { |
block | 283 | fs/minix/inode.c | if (block < 7) |
block | 284 | fs/minix/inode.c | return V1_inode_bmap(inode,block); |
block | 285 | fs/minix/inode.c | block -= 7; |
block | 286 | fs/minix/inode.c | if (block < 512) { |
block | 290 | fs/minix/inode.c | return V1_block_bmap(bread(inode->i_dev,i,BLOCK_SIZE),block); |
block | 292 | fs/minix/inode.c | block -= 512; |
block | 296 | fs/minix/inode.c | i = V1_block_bmap(bread(inode->i_dev,i,BLOCK_SIZE),block>>9); |
block | 299 | fs/minix/inode.c | return V1_block_bmap(bread(inode->i_dev,i,BLOCK_SIZE),block & 511); |
block | 317 | fs/minix/inode.c | int V2_minix_bmap(struct inode * inode,int block) |
block | 321 | fs/minix/inode.c | if (block<0) { |
block | 325 | fs/minix/inode.c | if (block >= (inode->i_sb->u.minix_sb.s_max_size/BLOCK_SIZE)) { |
block | 329 | fs/minix/inode.c | if (block < 7) |
block | 330 | fs/minix/inode.c | return V2_inode_bmap(inode,block); |
block | 331 | fs/minix/inode.c | block -= 7; |
block | 332 | fs/minix/inode.c | if (block < 256) { |
block | 336 | fs/minix/inode.c | return V2_block_bmap(bread(inode->i_dev,i,BLOCK_SIZE),block); |
block | 338 | fs/minix/inode.c | block -= 256; |
block | 339 | fs/minix/inode.c | if (block < 256*256) { |
block | 343 | fs/minix/inode.c | i = V2_block_bmap(bread(inode->i_dev,i,BLOCK_SIZE),block >> 8); |
block | 346 | fs/minix/inode.c | return V2_block_bmap(bread(inode->i_dev,i,BLOCK_SIZE),block & 255); |
block | 348 | fs/minix/inode.c | block -= 256*256; |
block | 352 | fs/minix/inode.c | i = V2_block_bmap(bread(inode->i_dev,i,BLOCK_SIZE),block >> 16); |
block | 355 | fs/minix/inode.c | i = V2_block_bmap(bread(inode->i_dev,i,BLOCK_SIZE),(block >> 8) & 255); |
block | 358 | fs/minix/inode.c | return V2_block_bmap(bread(inode->i_dev,i,BLOCK_SIZE),block & 255); |
block | 364 | fs/minix/inode.c | int minix_bmap(struct inode * inode,int block) |
block | 367 | fs/minix/inode.c | return V1_minix_bmap(inode, block); |
block | 369 | fs/minix/inode.c | return V2_minix_bmap(inode, block); |
block | 459 | fs/minix/inode.c | static struct buffer_head * V1_minix_getblk(struct inode * inode, int block, |
block | 464 | fs/minix/inode.c | if (block<0) { |
block | 468 | fs/minix/inode.c | if (block >= inode->i_sb->u.minix_sb.s_max_size/BLOCK_SIZE) { |
block | 472 | fs/minix/inode.c | if (block < 7) |
block | 473 | fs/minix/inode.c | return V1_inode_getblk(inode,block,create); |
block | 474 | fs/minix/inode.c | block -= 7; |
block | 475 | fs/minix/inode.c | if (block < 512) { |
block | 477 | fs/minix/inode.c | return V1_block_getblk(inode, bh, block, create); |
block | 479 | fs/minix/inode.c | block -= 512; |
block | 481 | fs/minix/inode.c | bh = V1_block_getblk(inode, bh, (block>>9) & 511, create); |
block | 482 | fs/minix/inode.c | return V1_block_getblk(inode, bh, block & 511, create); |
block | 572 | fs/minix/inode.c | static struct buffer_head * V2_minix_getblk(struct inode * inode, int block, |
block | 577 | fs/minix/inode.c | if (block<0) { |
block | 581 | fs/minix/inode.c | if (block >= inode->i_sb->u.minix_sb.s_max_size/BLOCK_SIZE) { |
block | 585 | fs/minix/inode.c | if (block < 7) |
block | 586 | fs/minix/inode.c | return V2_inode_getblk(inode,block,create); |
block | 587 | fs/minix/inode.c | block -= 7; |
block | 588 | fs/minix/inode.c | if (block < 256) { |
block | 590 | fs/minix/inode.c | return V2_block_getblk(inode, bh, block, create); |
block | 592 | fs/minix/inode.c | block -= 256; |
block | 593 | fs/minix/inode.c | if (block < 256*256) { |
block | 595 | fs/minix/inode.c | bh = V2_block_getblk(inode, bh, (block>>8) & 255, create); |
block | 596 | fs/minix/inode.c | return V2_block_getblk(inode, bh, block & 255, create); |
block | 598 | fs/minix/inode.c | block -= 256*256; |
block | 600 | fs/minix/inode.c | bh = V2_block_getblk(inode, bh, (block >> 16) & 255, create); |
block | 601 | fs/minix/inode.c | bh = V2_block_getblk(inode, bh, (block >> 8) & 255, create); |
block | 602 | fs/minix/inode.c | return V2_block_getblk(inode, bh, block & 255, create); |
block | 608 | fs/minix/inode.c | struct buffer_head * minix_getblk(struct inode * inode, int block, int create) |
block | 611 | fs/minix/inode.c | return V1_minix_getblk(inode,block,create); |
block | 613 | fs/minix/inode.c | return V2_minix_getblk(inode,block,create); |
block | 616 | fs/minix/inode.c | struct buffer_head * minix_bread(struct inode * inode, int block, int create) |
block | 620 | fs/minix/inode.c | bh = minix_getblk(inode,block,create); |
block | 638 | fs/minix/inode.c | int block, ino; |
block | 649 | fs/minix/inode.c | block = 2 + inode->i_sb->u.minix_sb.s_imap_blocks + |
block | 652 | fs/minix/inode.c | if (!(bh=bread(inode->i_dev,block, BLOCK_SIZE))) { |
block | 668 | fs/minix/inode.c | else for (block = 0; block < 9; block++) |
block | 669 | fs/minix/inode.c | inode->u.minix_i.u.i1_data[block] = raw_inode->i_zone[block]; |
block | 692 | fs/minix/inode.c | int block, ino; |
block | 703 | fs/minix/inode.c | block = 2 + inode->i_sb->u.minix_sb.s_imap_blocks + |
block | 706 | fs/minix/inode.c | if (!(bh=bread(inode->i_dev,block, BLOCK_SIZE))) { |
block | 724 | fs/minix/inode.c | else for (block = 0; block < 10; block++) |
block | 725 | fs/minix/inode.c | inode->u.minix_i.u.i2_data[block] = raw_inode->i_zone[block]; |
block | 759 | fs/minix/inode.c | int ino, block; |
block | 769 | fs/minix/inode.c | block = 2 + inode->i_sb->u.minix_sb.s_imap_blocks + inode->i_sb->u.minix_sb.s_zmap_blocks + |
block | 771 | fs/minix/inode.c | if (!(bh=bread(inode->i_dev, block, BLOCK_SIZE))) { |
block | 786 | fs/minix/inode.c | else for (block = 0; block < 9; block++) |
block | 787 | fs/minix/inode.c | raw_inode->i_zone[block] = inode->u.minix_i.u.i1_data[block]; |
block | 800 | fs/minix/inode.c | int ino, block; |
block | 810 | fs/minix/inode.c | block = 2 + inode->i_sb->u.minix_sb.s_imap_blocks + inode->i_sb->u.minix_sb.s_zmap_blocks + |
block | 812 | fs/minix/inode.c | if (!(bh=bread(inode->i_dev, block, BLOCK_SIZE))) { |
block | 829 | fs/minix/inode.c | else for (block = 0; block < 10; block++) |
block | 830 | fs/minix/inode.c | raw_inode->i_zone[block] = inode->u.minix_i.u.i2_data[block]; |
block | 67 | fs/minix/namei.c | unsigned long block, offset; |
block | 83 | fs/minix/namei.c | block = offset = 0; |
block | 84 | fs/minix/namei.c | while (block*BLOCK_SIZE+offset < dir->i_size) { |
block | 86 | fs/minix/namei.c | bh = minix_bread(dir,block,0); |
block | 88 | fs/minix/namei.c | block++; |
block | 100 | fs/minix/namei.c | block++; |
block | 151 | fs/minix/namei.c | unsigned long block, offset; |
block | 171 | fs/minix/namei.c | block = offset = 0; |
block | 174 | fs/minix/namei.c | bh = minix_bread(dir,block,1); |
block | 180 | fs/minix/namei.c | if (block*bh->b_size + offset > dir->i_size) { |
block | 182 | fs/minix/namei.c | dir->i_size = block*bh->b_size + offset; |
block | 205 | fs/minix/namei.c | block++; |
block | 376 | fs/minix/namei.c | unsigned int block, offset; |
block | 384 | fs/minix/namei.c | block = 0; |
block | 400 | fs/minix/namei.c | while (block*BLOCK_SIZE+offset < inode->i_size) { |
block | 402 | fs/minix/namei.c | bh = minix_bread(inode,block,0); |
block | 404 | fs/minix/namei.c | block++; |
block | 419 | fs/minix/namei.c | block++; |
block | 32 | fs/sysv/balloc.c | void sysv_free_block(struct super_block * sb, unsigned int block) |
block | 41 | fs/sysv/balloc.c | if (block < sb->sv_firstdatazone || block >= sb->sv_nzones) { |
block | 58 | fs/sysv/balloc.c | bh = sv_getblk(sb, sb->s_dev, block); |
block | 95 | fs/sysv/balloc.c | bh = sv_getblk(sb, sb->s_dev, block); |
block | 109 | fs/sysv/balloc.c | bh = sv_get_hash_table(sb, sb->s_dev, block); |
block | 115 | fs/sysv/balloc.c | block = to_coh_ulong(block); |
block | 116 | fs/sysv/balloc.c | sb->sv_sb_flc_blocks[(*sb->sv_sb_flc_count)++] = block; |
block | 130 | fs/sysv/balloc.c | unsigned int block; |
block | 143 | fs/sysv/balloc.c | block = sb->sv_sb_flc_blocks[(*sb->sv_sb_flc_count)-1]; |
block | 145 | fs/sysv/balloc.c | block = from_coh_ulong(block); |
block | 146 | fs/sysv/balloc.c | if (block == 0) { /* Applies only to Xenix FS, SystemV FS */ |
block | 151 | fs/sysv/balloc.c | if (block < sb->sv_firstdatazone || block >= sb->sv_nzones) { |
block | 152 | fs/sysv/balloc.c | printk("sysv_new_block: new block %d is not in data zone\n",block); |
block | 160 | fs/sysv/balloc.c | if (!(bh = sv_bread(sb, sb->s_dev, block))) { |
block | 198 | fs/sysv/balloc.c | bh = sv_getblk(sb, sb->s_dev, block); |
block | 222 | fs/sysv/balloc.c | return block; |
block | 229 | fs/sysv/balloc.c | unsigned int block; |
block | 239 | fs/sysv/balloc.c | block = sb->sv_sb_flc_blocks[--i]; |
block | 241 | fs/sysv/balloc.c | block = from_coh_ulong(block); |
block | 242 | fs/sysv/balloc.c | if (block == 0) /* block 0 terminates list */ |
block | 253 | fs/sysv/balloc.c | if (block < sb->sv_firstdatazone || block >= sb->sv_nzones) { |
block | 254 | fs/sysv/balloc.c | printk("sysv_count_free_blocks: new block %d is not in data zone\n",block); |
block | 257 | fs/sysv/balloc.c | if (!(bh = sv_bread(sb, sb->s_dev, block))) { |
block | 291 | fs/sysv/balloc.c | block = flc_blocks[--i]; |
block | 293 | fs/sysv/balloc.c | block = from_coh_ulong(block); |
block | 294 | fs/sysv/balloc.c | if (block == 0) /* block 0 terminates list */ |
block | 302 | fs/sysv/balloc.c | if (block == 0) /* Applies only to Xenix FS and SystemV FS */ |
block | 78 | fs/sysv/file.c | unsigned int block; |
block | 105 | fs/sysv/file.c | block = offset >> sb->sv_block_size_bits; |
block | 112 | fs/sysv/file.c | if (block + blocks > size) |
block | 113 | fs/sysv/file.c | blocks = size - block; |
block | 132 | fs/sysv/file.c | *bhb = sysv_getblk(inode, block++, 0); |
block | 32 | fs/sysv/fsync.c | unsigned long tmp, block; |
block | 35 | fs/sysv/fsync.c | block = tmp = *blockp; |
block | 37 | fs/sysv/fsync.c | block = from_coh_ulong(block); |
block | 38 | fs/sysv/fsync.c | if (!block) |
block | 41 | fs/sysv/fsync.c | bh = sv_get_hash_table(sb, inode->i_dev, block); |
block | 66 | fs/sysv/fsync.c | unsigned long tmp, block; |
block | 69 | fs/sysv/fsync.c | block = tmp = *iblockp; |
block | 71 | fs/sysv/fsync.c | block = from_coh_ulong(block); |
block | 72 | fs/sysv/fsync.c | if (!block) |
block | 77 | fs/sysv/fsync.c | *bh = sv_bread(inode->i_sb, inode->i_dev, block); |
block | 109 | fs/sysv/ialloc.c | int i,j,ino,block; |
block | 127 | fs/sysv/ialloc.c | for (i = 0, ino = SYSV_ROOT_INO+1, block = sb->sv_firstinodezone, j = SYSV_ROOT_INO ; i < sb->sv_fic_size && block < sb->sv_firstdatazone ; block++, j = 0) { |
block | 128 | fs/sysv/ialloc.c | if (!(bh = sv_bread(sb, sb->s_dev, block))) { |
block | 182 | fs/sysv/ialloc.c | int j,block,count; |
block | 193 | fs/sysv/ialloc.c | for (block = sb->sv_firstinodezone, j = SYSV_ROOT_INO ; block < sb->sv_firstdatazone ; block++, j = 0) { |
block | 194 | fs/sysv/ialloc.c | if (!(bh = sv_bread(sb, sb->s_dev, block))) { |
block | 578 | fs/sysv/inode.c | unsigned int block = block_nr; |
block | 584 | fs/sysv/inode.c | if (block < 10) |
block | 585 | fs/sysv/inode.c | return inode_bmap(sb,inode,block); |
block | 586 | fs/sysv/inode.c | block -= 10; |
block | 588 | fs/sysv/inode.c | if (block < sb->sv_ind_per_block) { |
block | 593 | fs/sysv/inode.c | return block_bmap(sb, bh, block, convert); |
block | 595 | fs/sysv/inode.c | block -= sb->sv_ind_per_block; |
block | 596 | fs/sysv/inode.c | if (block < sb->sv_ind_per_block_2) { |
block | 601 | fs/sysv/inode.c | i = block_bmap(sb, bh, block >> sb->sv_ind_per_block_bits, convert); |
block | 605 | fs/sysv/inode.c | return block_bmap(sb, bh, block & sb->sv_ind_per_block_1, convert); |
block | 607 | fs/sysv/inode.c | block -= sb->sv_ind_per_block_2; |
block | 608 | fs/sysv/inode.c | if (block < sb->sv_ind_per_block_3) { |
block | 613 | fs/sysv/inode.c | i = block_bmap(sb, bh, block >> sb->sv_ind_per_block_2_bits, convert); |
block | 617 | fs/sysv/inode.c | i = block_bmap(sb, bh, (block >> sb->sv_ind_per_block_bits) & sb->sv_ind_per_block_1,convert); |
block | 621 | fs/sysv/inode.c | return block_bmap(sb, bh, block & sb->sv_ind_per_block_1, convert); |
block | 623 | fs/sysv/inode.c | if ((int)block<0) { |
block | 675 | fs/sysv/inode.c | unsigned long tmp, block; |
block | 692 | fs/sysv/inode.c | block = tmp = *p; |
block | 694 | fs/sysv/inode.c | block = from_coh_ulong(block); |
block | 696 | fs/sysv/inode.c | result = sv_getblk(sb, bh->b_dev, block); |
block | 708 | fs/sysv/inode.c | block = sysv_new_block(sb); |
block | 709 | fs/sysv/inode.c | if (!block) { |
block | 713 | fs/sysv/inode.c | result = sv_getblk(sb, bh->b_dev, block); |
block | 715 | fs/sysv/inode.c | sysv_free_block(sb,block); |
block | 719 | fs/sysv/inode.c | *p = (sb->sv_convert ? to_coh_ulong(block) : block); |
block | 725 | fs/sysv/inode.c | struct buffer_head * sysv_getblk(struct inode * inode, unsigned int block, int create) |
block | 730 | fs/sysv/inode.c | if (block < 10) |
block | 731 | fs/sysv/inode.c | return inode_getblk(inode,block,create); |
block | 732 | fs/sysv/inode.c | block -= 10; |
block | 733 | fs/sysv/inode.c | if (block < sb->sv_ind_per_block) { |
block | 735 | fs/sysv/inode.c | return block_getblk(inode, bh, block, create); |
block | 737 | fs/sysv/inode.c | block -= sb->sv_ind_per_block; |
block | 738 | fs/sysv/inode.c | if (block < sb->sv_ind_per_block_2) { |
block | 740 | fs/sysv/inode.c | bh = block_getblk(inode, bh, block >> sb->sv_ind_per_block_bits, create); |
block | 741 | fs/sysv/inode.c | return block_getblk(inode, bh, block & sb->sv_ind_per_block_1, create); |
block | 743 | fs/sysv/inode.c | block -= sb->sv_ind_per_block_2; |
block | 744 | fs/sysv/inode.c | if (block < sb->sv_ind_per_block_3) { |
block | 746 | fs/sysv/inode.c | bh = block_getblk(inode, bh, block >> sb->sv_ind_per_block_2_bits, create); |
block | 747 | fs/sysv/inode.c | bh = block_getblk(inode, bh, (block >> sb->sv_ind_per_block_bits) & sb->sv_ind_per_block_1, create); |
block | 748 | fs/sysv/inode.c | return block_getblk(inode, bh, block & sb->sv_ind_per_block_1, create); |
block | 750 | fs/sysv/inode.c | if ((int)block<0) { |
block | 758 | fs/sysv/inode.c | struct buffer_head * sysv_file_bread(struct inode * inode, int block, int create) |
block | 762 | fs/sysv/inode.c | bh = sysv_getblk(inode,block,create); |
block | 803 | fs/sysv/inode.c | unsigned int block, ino; |
block | 815 | fs/sysv/inode.c | block = sb->sv_firstinodezone + ((ino-1) >> sb->sv_inodes_per_block_bits); |
block | 816 | fs/sysv/inode.c | if (!(bh = sv_bread(sb,inode->i_dev,block))) { |
block | 847 | fs/sysv/inode.c | for (block = 0; block < 10+1+1+1; block++) |
block | 848 | fs/sysv/inode.c | inode->u.sysv_i.i_data[block] = |
block | 849 | fs/sysv/inode.c | coh_read3byte(&raw_inode->i_a.i_addb[3*block]); |
block | 851 | fs/sysv/inode.c | for (block = 0; block < 10+1+1+1; block++) |
block | 852 | fs/sysv/inode.c | inode->u.sysv_i.i_data[block] = |
block | 853 | fs/sysv/inode.c | read3byte(&raw_inode->i_a.i_addb[3*block]); |
block | 892 | fs/sysv/inode.c | unsigned int ino, block; |
block | 903 | fs/sysv/inode.c | block = sb->sv_firstinodezone + ((ino-1) >> sb->sv_inodes_per_block_bits); |
block | 904 | fs/sysv/inode.c | if (!(bh = sv_bread(sb,inode->i_dev,block))) { |
block | 932 | fs/sysv/inode.c | for (block = 0; block < 10+1+1+1; block++) |
block | 933 | fs/sysv/inode.c | coh_write3byte(&raw_inode->i_a.i_addb[3*block],inode->u.sysv_i.i_data[block]); |
block | 935 | fs/sysv/inode.c | for (block = 0; block < 10+1+1+1; block++) |
block | 936 | fs/sysv/inode.c | write3byte(&raw_inode->i_a.i_addb[3*block],inode->u.sysv_i.i_data[block]); |
block | 64 | fs/sysv/namei.c | unsigned long pos, block, offset; /* pos = block * block_size + offset */ |
block | 77 | fs/sysv/namei.c | pos = block = offset = 0; |
block | 80 | fs/sysv/namei.c | bh = sysv_file_bread(dir,block,0); |
block | 82 | fs/sysv/namei.c | /* offset = 0; */ block++; |
block | 96 | fs/sysv/namei.c | offset = 0; block++; |
block | 148 | fs/sysv/namei.c | unsigned long pos, block, offset; /* pos = block * block_size + offset */ |
block | 165 | fs/sysv/namei.c | pos = block = offset = 0; |
block | 168 | fs/sysv/namei.c | bh = sysv_file_bread(dir,block,1); |
block | 198 | fs/sysv/namei.c | offset = 0; block++; |
block | 368 | fs/sysv/namei.c | unsigned long pos, block, offset; /* pos = block * block_size + offset */ |
block | 374 | fs/sysv/namei.c | block = 0; |
block | 393 | fs/sysv/namei.c | bh = sysv_file_bread(inode,block,0); |
block | 395 | fs/sysv/namei.c | /* offset = 0; */ block++; |
block | 411 | fs/sysv/namei.c | offset = 0; block++; |
block | 45 | fs/sysv/truncate.c | unsigned long block; |
block | 53 | fs/sysv/truncate.c | block = *p; |
block | 54 | fs/sysv/truncate.c | if (!block) |
block | 56 | fs/sysv/truncate.c | bh = sv_get_hash_table(sb, inode->i_dev, block); |
block | 61 | fs/sysv/truncate.c | if ((bh && bh->b_count != 1) || (block != *p)) { |
block | 69 | fs/sysv/truncate.c | sysv_free_block(sb,block); |
block | 81 | fs/sysv/truncate.c | unsigned long tmp, block; |
block | 108 | fs/sysv/truncate.c | block = tmp = *ind; |
block | 110 | fs/sysv/truncate.c | block = from_coh_ulong(block); |
block | 111 | fs/sysv/truncate.c | if (!block) |
block | 113 | fs/sysv/truncate.c | bh = sv_get_hash_table(sb, inode->i_dev, block); |
block | 126 | fs/sysv/truncate.c | sysv_free_block(sb,block); |
block | 150 | fs/sysv/truncate.c | unsigned long tmp, block; |
block | 176 | fs/sysv/truncate.c | block = tmp = *ind; |
block | 178 | fs/sysv/truncate.c | block = from_coh_ulong(block); |
block | 179 | fs/sysv/truncate.c | if (!block) |
block | 207 | fs/sysv/truncate.c | unsigned long tmp, block; |
block | 233 | fs/sysv/truncate.c | block = tmp = *ind; |
block | 235 | fs/sysv/truncate.c | block = from_coh_ulong(block); |
block | 236 | fs/sysv/truncate.c | if (!block) |
block | 29 | fs/xiafs/fsync.c | static int sync_block (struct inode * inode, unsigned long * block, int wait) |
block | 34 | fs/xiafs/fsync.c | if (!*block) |
block | 36 | fs/xiafs/fsync.c | tmp = *block; |
block | 37 | fs/xiafs/fsync.c | bh = get_hash_table(inode->i_dev, *block, blocksize); |
block | 40 | fs/xiafs/fsync.c | if (*block != tmp) { |
block | 31 | include/linux/blk.h | #define SUBSECTOR(block) (CURRENT->current_nr_sectors > 0) |
block | 441 | include/linux/ext2_fs.h | extern int ext2_getcluster (struct inode * inode, long block); |
block | 82 | include/linux/ext_fs.h | extern void ext_free_block(struct super_block * sb, int block); |
block | 556 | include/linux/fs.h | extern int bmap(struct inode * inode,int block); |
block | 575 | include/linux/fs.h | extern struct buffer_head * get_hash_table(kdev_t dev, int block, int size); |
block | 576 | include/linux/fs.h | extern struct buffer_head * getblk(kdev_t dev, int block, int size); |
block | 594 | include/linux/fs.h | extern struct buffer_head * bread(kdev_t dev, int block, int size); |
block | 595 | include/linux/fs.h | extern struct buffer_head * breada(kdev_t dev,int block, int size, |
block | 173 | include/linux/iso_fs.h | extern int isofs_free_block(int dev, int block); |
block | 202 | include/linux/iso_fs.h | extern struct buffer_head * leak_check_bread(int dev, int block, int size); |
block | 108 | include/linux/minix_fs.h | extern void minix_free_block(struct super_block * sb, int block); |
block | 198 | include/linux/msdos_fs.h | extern int fat_bmap(struct inode *inode,int block); |
block | 340 | include/linux/sysv_fs.h | sv_get_hash_table (struct super_block *sb, kdev_t dev, unsigned int block) |
block | 342 | include/linux/sysv_fs.h | return get_hash_table (dev, block + sb->sv_block_base, sb->sv_block_size); |
block | 347 | include/linux/sysv_fs.h | sv_getblk (struct super_block *sb, kdev_t dev, unsigned int block) |
block | 349 | include/linux/sysv_fs.h | return getblk (dev, block + sb->sv_block_base, sb->sv_block_size); |
block | 354 | include/linux/sysv_fs.h | sv_bread (struct super_block *sb, kdev_t dev, unsigned int block) |
block | 356 | include/linux/sysv_fs.h | return bread (dev, block + sb->sv_block_base, sb->sv_block_size); |
block | 381 | include/linux/sysv_fs.h | extern void sysv_free_block(struct super_block * sb, unsigned int block); |
block | 117 | include/linux/xd.h | static int xd_readwrite (u_char operation,u_char drive,char *buffer,u_int block,u_int count); |
block | 87 | include/linux/xia_fs.h | extern void xiafs_free_zone(struct super_block * sb, int block); |
block | 92 | mm/page_io.c | unsigned int block = offset << 3; |
block | 95 | mm/page_io.c | if (!(zones[i] = swapf->i_op->smap(swapf,block++))) { |
block | 102 | mm/page_io.c | unsigned int block = offset |
block | 106 | mm/page_io.c | if (!(zones[i] = bmap(swapf,block++))) { |