taglinefilesource code
block38drivers/block/blk.h#define SUBSECTOR(block) (CURRENT->current_nr_sectors > 0)
block1177drivers/block/cdu31a.cunsigned int  block,
block1196drivers/block/cdu31a.cif (((block % 4) * 512) != ((2048 - readahead_dataleft) % 2048))
block1198drivers/block/cdu31a.csony_next_block += block % 4;
block1199drivers/block/cdu31a.csony_blocks_left -= block % 4;
block1200drivers/block/cdu31a.cskip = (block % 4) * 512;
block1384drivers/block/cdu31a.cint block;
block1464drivers/block/cdu31a.cblock = CURRENT->sector;
block1478drivers/block/cdu31a.cif (block < 80)
block1481drivers/block/cdu31a.cblock += (sony_toc->start_track_lba * 4);
block1492drivers/block/cdu31a.cif ((block / 4) < sony_toc->start_track_lba)
block1499drivers/block/cdu31a.cif ((block / 4) >= sony_toc->lead_out_start_lba)
block1505drivers/block/cdu31a.cif (((block + nblock) / 4) >= sony_toc->lead_out_start_lba)
block1529drivers/block/cdu31a.cif (start_request(block / 4, CDU31A_READAHEAD / 4, 0))
block1538drivers/block/cdu31a.celse if (block != sony_next_block)
block1542drivers/block/cdu31a.cblock,
block1552drivers/block/cdu31a.cif (start_request(block / 4, CDU31A_READAHEAD / 4, 0))
block1560drivers/block/cdu31a.cread_data_block(CURRENT->buffer, block, nblock, res_reg, &res_size);
block2109drivers/block/floppy.cint block;
block2121drivers/block/floppy.cblock = current_count_sectors + CURRENT->sector;
block2122drivers/block/floppy.cif (block > DRS->maxblock)
block2123drivers/block/floppy.cDRS->maxblock=block;
block2124drivers/block/floppy.cif ( block > floppy->sect)
block3155drivers/block/floppy.cint block;
block3166drivers/block/floppy.cblock = (filp->f_pos + count) >> 9;
block3167drivers/block/floppy.cif(block > UDRS->maxblock)
block3168drivers/block/floppy.cUDRS->maxblock = block;
block269drivers/block/gscd.cunsigned int block,dev;
block276drivers/block/gscd.cblock = CURRENT->sector;
block307drivers/block/gscd.cprintk ("GSCD: dev %d, block %d, nsect %d\n", dev, block, nsect );
block323drivers/block/gscd.clong   block;
block345drivers/block/gscd.cblock = CURRENT -> sector / 4;
block346drivers/block/gscd.cgscd_hsg2msf(block, &gscdcmd.start);  /* cvt to msf format */
block698drivers/block/hd.cunsigned int dev, block, nsect, sec, track, head, cyl;
block713drivers/block/hd.cblock = CURRENT->sector;
block715drivers/block/hd.cif (dev >= (NR_HD<<6) || block >= hd[dev].nr_sects || ((block+nsect) > hd[dev].nr_sects)) {
block721drivers/block/hd.c(CURRENT->dev>>6)+'a', block, nsect);
block726drivers/block/hd.cblock += hd[dev].start_sect;
block733drivers/block/hd.csec   = block % hd_info[dev].sect + 1;
block734drivers/block/hd.ctrack = block / hd_info[dev].sect;
block1090drivers/block/ide-cd.cstatic int cdrom_start_read (ide_dev_t *dev, unsigned int block)
block1363drivers/block/ide-cd.cstatic int do_rw_cdrom (ide_dev_t *dev, unsigned long block)
block1377drivers/block/ide-cd.creturn cdrom_start_read (dev, block);
block1018drivers/block/ide.cstatic inline int do_rw_disk (ide_dev_t *dev, struct request *rq, unsigned long block)
block1026drivers/block/ide.cblock, rq->nr_sectors, (unsigned long) rq->buffer);
block1028drivers/block/ide.cOUT_BYTE(block,HD_SECTOR);
block1029drivers/block/ide.cOUT_BYTE(block>>=8,HD_LCYL);
block1030drivers/block/ide.cOUT_BYTE(block>>=8,HD_HCYL);
block1031drivers/block/ide.cOUT_BYTE(((block>>8)&0x0f)|dev->select.all,HD_CURRENT);
block1034drivers/block/ide.ctrack = block / dev->sect;
block1035drivers/block/ide.csect  = block % dev->sect + 1;
block1107drivers/block/ide.cunsigned long block, blockend;
block1148drivers/block/ide.cblock    = rq->sector;
block1149drivers/block/ide.cblockend = block + rq->nr_sectors;
block1150drivers/block/ide.cif ((blockend < block) || (blockend > ide_hd[HWIF][minor].nr_sects)) {
block1152drivers/block/ide.cdev->name, block, rq->nr_sectors);
block1156drivers/block/ide.cblock += ide_hd[HWIF][minor].start_sect;
block1171drivers/block/ide.cif (do_rw_disk(dev, rq, block))
block1175drivers/block/ide.cif (do_rw_cdrom(dev, block))
block114drivers/block/ramdisk.cint    block, tries;
block128drivers/block/ramdisk.cblock = tries;
block129drivers/block/ramdisk.cbh = breada(ROOT_DEV,block+1,BLOCK_SIZE, 0,  PAGE_SIZE);
block146drivers/block/ramdisk.cblock);
block156drivers/block/ramdisk.cblock);
block177drivers/block/ramdisk.cbh = breada(ROOT_DEV, block, BLOCK_SIZE, 0,  PAGE_SIZE);
block179drivers/block/ramdisk.cbh = bread(ROOT_DEV, block, BLOCK_SIZE);
block182drivers/block/ramdisk.cblock);
block189drivers/block/ramdisk.cblock++;
block2752drivers/block/sbpcd.cint block, checksum;
block2763drivers/block/sbpcd.cfor (block=CD_BLOCK_OFFSET+1;block<CD_BLOCK_OFFSET+200;block++)
block2771drivers/block/sbpcd.cdrvcmd[1]=(block>>16)&0xFF;
block2772drivers/block/sbpcd.cdrvcmd[2]=(block>>8)&0xFF;
block2773drivers/block/sbpcd.cdrvcmd[3]=block&0xFF;
block2782drivers/block/sbpcd.cdrvcmd[2]=(block>>16)&0xFF;
block2783drivers/block/sbpcd.cdrvcmd[3]=(block>>8)&0xFF;
block2784drivers/block/sbpcd.cdrvcmd[4]=block&0xFF;
block4112drivers/block/sbpcd.cint i=0, j=0, frame, block;
block4137drivers/block/sbpcd.cblock=msf2lba(&read_audio.addr.msf.minute);
block4139drivers/block/sbpcd.cblock=read_audio.addr.lba;
block4144drivers/block/sbpcd.cblock, blk2msf(block));
block4175drivers/block/sbpcd.cdrvcmd[1]=(block>>16)&0x000000ff;
block4176drivers/block/sbpcd.cdrvcmd[2]=(block>>8)&0x000000ff;
block4177drivers/block/sbpcd.cdrvcmd[3]=block&0x000000ff;
block4185drivers/block/sbpcd.clba2msf(block,&drvcmd[1]); /* msf-bin format required */
block4366drivers/block/sbpcd.cu_int block;
block4393drivers/block/sbpcd.cblock = CURRENT->sector; /* always numbered as 512-byte-pieces */
block4396drivers/block/sbpcd.cmsg(DBG_BSZ,"read sector %d (%d sectors)\n", block, nsect);
block4398drivers/block/sbpcd.cmsg(DBG_MUL,"read LBA %d\n", block/4);
block4457drivers/block/sbpcd.cint block;
block4461drivers/block/sbpcd.cblock=CURRENT->sector/4;
block4462drivers/block/sbpcd.cif (block+D_S[d].sbp_bufsiz <= D_S[d].CDsize_frm)
block4466drivers/block/sbpcd.cD_S[d].sbp_read_frames=D_S[d].CDsize_frm-block;
block4471drivers/block/sbpcd.cblock, D_S[d].CDsize_frm);
block4485drivers/block/sbpcd.cdrvcmd[1]=(block>>16)&0x000000ff;
block4486drivers/block/sbpcd.cdrvcmd[2]=(block>>8)&0x000000ff;
block4487drivers/block/sbpcd.cdrvcmd[3]=block&0x000000ff;
block4495drivers/block/sbpcd.clba2msf(block,&drvcmd[1]); /* msf-bcd format required */
block4502drivers/block/sbpcd.cdrvcmd[1]=(block>>16)&0x000000ff;
block4503drivers/block/sbpcd.cdrvcmd[2]=(block>>8)&0x000000ff;
block4504drivers/block/sbpcd.cdrvcmd[3]=block&0x000000ff;
block4513drivers/block/sbpcd.clba2msf(block,&drvcmd[1]); /* msf-bin format required */
block4519drivers/block/sbpcd.clba2msf(block,&drvcmd[1]); /* msf-bin format required */
block4526drivers/block/sbpcd.cdrvcmd[2]=(block>>24)&0x0ff;
block4527drivers/block/sbpcd.cdrvcmd[3]=(block>>16)&0x0ff;
block4528drivers/block/sbpcd.cdrvcmd[4]=(block>>8)&0x0ff;
block4529drivers/block/sbpcd.cdrvcmd[5]=block&0x0ff;
block819drivers/block/sonycd535.cint  block;
block840drivers/block/sonycd535.cblock = CURRENT->sector;
block853drivers/block/sonycd535.cif (sony_toc->lead_out_start_lba <= (block / 4)) {
block857drivers/block/sonycd535.cif (sony_toc->lead_out_start_lba <= ((block + nsect) / 4)) {
block866drivers/block/sonycd535.cif ((block < sony_first_block) || (sony_last_block < block)) {
block867drivers/block/sonycd535.csony_first_block = (block / 4) * 4;
block868drivers/block/sonycd535.clog_to_msf(block / 4, params);
block874drivers/block/sonycd535.cif (sony_toc->lead_out_start_lba <= ((block / 4) + sony_buffer_sectors)) {
block876drivers/block/sonycd535.cread_size = sony_toc->lead_out_start_lba - (block / 4);
block942drivers/block/sonycd535.ccopyoff = (block - sony_first_block) * 512;
block945drivers/block/sonycd535.ccopyoff = block - sony_first_block;
block950drivers/block/sonycd535.cblock += 1;
block212drivers/block/xd.cu_int block,count,retry;
block220drivers/block/xd.cblock = CURRENT->sector + xd[MINOR(CURRENT->dev)].start_sect;
block227drivers/block/xd.ccode = xd_readwrite(CURRENT->cmd,CURRENT_DEV,CURRENT->buffer,block,count);
block324drivers/block/xd.cstatic int xd_readwrite (u_char operation,u_char drive,char *buffer,u_int block,u_int count)
block331drivers/block/xd.cprintk("xd_readwrite: operation = %s, drive = %d, buffer = 0x%X, block = %d, count = %d\n",operation == READ ? "read" : "write",drive,buffer,block,count);
block338drivers/block/xd.ctrack = block / xd_info[drive].sectors;
block341drivers/block/xd.csector = block % xd_info[drive].sectors;
block368drivers/block/xd.ccount -= temp, buffer += temp * 0x200, block += temp;
block272drivers/scsi/hosts.cretval->block = NULL;
block266drivers/scsi/hosts.hstruct Scsi_Host * block;
block71drivers/scsi/scsi.c#define SCSI_BLOCK(HOST) ((HOST->block && host_active && HOST != host_active) \
block314drivers/scsi/scsi.cif (block_count == 1) sh[0]->block = NULL;
block319drivers/scsi/scsi.csh[index]->block = sh[index + 1];
block324drivers/scsi/scsi.csh[block_count - 1]->block = sh[0];
block1258drivers/scsi/scsi.cif (host->block) host_active = host;
block1720drivers/scsi/scsi.cif (host->block && host->host_busy == 0) {
block1728drivers/scsi/scsi.cfor (next = host->block; next != host; next = next->block)
block1917drivers/scsi/scsi.cif (!host->block) host->host_busy++;
block1922drivers/scsi/scsi.cif (!host->block) host->host_busy--;
block606drivers/scsi/scsi.hif (SCpnt->host->block) {
block609drivers/scsi/scsi.hfor (next = SCpnt->host->block; next != SCpnt->host;
block610drivers/scsi/scsi.hnext = next->block)
block82drivers/scsi/scsi_debug.cif ((bh->b_blocknr << 1) + start != block)          \
block83drivers/scsi/scsi_debug.c{   printk("Wrong bh block# %d %d ",bh->b_blocknr, block);  \
block105drivers/scsi/scsi_debug.cif (SCpnt->request.sector + start != block) panic("Wrong block.");  \
block109drivers/scsi/scsi_debug.cif ((SCpnt->request.bh->b_blocknr << 1) + start != block)           \
block110drivers/scsi/scsi_debug.c{   printk("Wrong bh block# %d %d ",SCpnt->request.bh->b_blocknr, block);  \
block179drivers/scsi/scsi_debug.cint block, start;
block259drivers/scsi/scsi_debug.cblock = cmd[5] + (cmd[4] << 8) + (cmd[3] << 16) + (cmd[2] << 24); 
block261drivers/scsi/scsi_debug.cblock = cmd[3] + (cmd[2] << 8) + ((cmd[1] & 0x1f) << 16);
block295drivers/scsi/scsi_debug.cif(block == 0 && target == 0) {
block311drivers/scsi/scsi_debug.cif (SCpnt->use_sg) printk("Block %x (%d %d)\n",block, SCpnt->request.nr_sectors,
block317drivers/scsi/scsi_debug.cif(block == 0xfff0) {
block340drivers/scsi/scsi_debug.cmemcpy(buff+60, &block, sizeof(block));
block348drivers/scsi/scsi_debug.cblock += bufflen >> 9;
block372drivers/scsi/scsi_debug.cblock = cmd[5] + (cmd[4] << 8) + (cmd[3] << 16) + (cmd[2] << 24); 
block374drivers/scsi/scsi_debug.cblock = cmd[3] + (cmd[2] << 8) + ((cmd[1] & 0x1f) << 16);
block384drivers/scsi/scsi_debug.cif (block != *((unsigned long *) (buff+60))) {
block385drivers/scsi/scsi_debug.cprintk("%x %x :",block,  *((unsigned long *) (buff+60)));
block463drivers/scsi/sd.cint dev, block, this_count;
block478drivers/scsi/sd.cblock = SCpnt->request.sector;
block482drivers/scsi/sd.cprintk("Doing sd request, dev = %d, block = %d\n", dev, block);
block487drivers/scsi/sd.cblock + SCpnt->request.nr_sectors > sd[dev].nr_sects)
block493drivers/scsi/sd.cblock += sd[dev].start_sect;
block509drivers/scsi/sd.c'a' + MINOR(SCpnt->request.dev), dev, block);
block524drivers/scsi/sd.cif((block & 1) || (SCpnt->request.nr_sectors & 1)) {
block798drivers/scsi/sd.cif(block & 1) panic("sd.c:Bad block number requested");
block800drivers/scsi/sd.cblock = block >> 1;
block805drivers/scsi/sd.cblock = block << 1;
block809drivers/scsi/sd.cif (((this_count > 0xff) ||  (block > 0x1fffff)) && rscsi_disks[dev].ten)
block815drivers/scsi/sd.ccmd[2] = (unsigned char) (block >> 24) & 0xff;
block816drivers/scsi/sd.ccmd[3] = (unsigned char) (block >> 16) & 0xff;
block817drivers/scsi/sd.ccmd[4] = (unsigned char) (block >> 8) & 0xff;
block818drivers/scsi/sd.ccmd[5] = (unsigned char) block & 0xff;
block828drivers/scsi/sd.ccmd[1] |= (unsigned char) ((block >> 16) & 0x1f);
block829drivers/scsi/sd.ccmd[2] = (unsigned char) ((block >> 8) & 0xff);
block830drivers/scsi/sd.ccmd[3] = (unsigned char) block & 0xff;
block614drivers/scsi/sr.cunsigned int dev, block, realcount;
block627drivers/scsi/sr.cblock = SCpnt->request.sector;  
block808drivers/scsi/sr.cstart = block % 4;
block830drivers/scsi/sr.cblock = block >> 2; /* These are the sectors that the cdrom uses */
block832drivers/scsi/sr.cblock = block & 0xfffffffc;
block838drivers/scsi/sr.cif (((realcount > 0xff) || (block > 0x1fffff)) && scsi_CDs[dev].ten) 
block847drivers/scsi/sr.ccmd[2] = (unsigned char) (block >> 24) & 0xff;
block848drivers/scsi/sr.ccmd[3] = (unsigned char) (block >> 16) & 0xff;
block849drivers/scsi/sr.ccmd[4] = (unsigned char) (block >> 8) & 0xff;
block850drivers/scsi/sr.ccmd[5] = (unsigned char) block & 0xff;
block863drivers/scsi/sr.ccmd[1] |= (unsigned char) ((block >> 16) & 0x1f);
block864drivers/scsi/sr.ccmd[2] = (unsigned char) ((block >> 8) & 0xff);
block865drivers/scsi/sr.ccmd[3] = (unsigned char) block & 0xff;
block873drivers/scsi/sr.cprintk("ReadCD: %d %d %d %d\n",block, realcount, buffer, this_count);
block88drivers/sound/opl3.cstatic void     freq_to_fnum (int freq, int *block, int *fnum);
block555drivers/sound/opl3.cint             block, fnum, freq, voice_mode;
block732drivers/sound/opl3.cfreq_to_fnum (freq, &block, &fnum);
block743drivers/sound/opl3.cdata = 0x20 | ((block & 0x7) << 2) | ((fnum >> 8) & 0x3);
block753drivers/sound/opl3.cfreq_to_fnum (int freq, int *block, int *fnum)
block791drivers/sound/opl3.c*block = octave;
block1029drivers/sound/opl3.cint             block, fnum, freq;
block1048drivers/sound/opl3.cfreq_to_fnum (freq, &block, &fnum);
block1055drivers/sound/opl3.cdata = 0x20 | ((block & 0x7) << 2) | ((fnum >> 8) & 0x3);  /*
block229drivers/sound/pss.cpss_download_boot (pss_config * devc, unsigned char *block, int size, int flags)
block244drivers/sound/pss.cOUTW (*block++, REG (PSS_DATA));
block274drivers/sound/pss.cOUTW (*block++, REG (PSS_DATA));
block437drivers/sound/sscape.csscape_download_boot (struct sscape_info *devc, unsigned char *block, int size, int flag)
block479drivers/sound/sscape.cmemcpy (audio_devs[devc->my_audiodev]->dmap->raw_buf[0], block, size);
block26fs/block_dev.cint block, blocks;
block56fs/block_dev.cblock = filp->f_pos >> blocksize_bits;
block64fs/block_dev.cif (block >= size)
block72fs/block_dev.cbh = getblk(dev, block, blocksize);
block74fs/block_dev.cbh = breada(dev,block,block+1,block+2,-1);
block77fs/block_dev.cfor(i=0; i<blocks_per_cluster; i++) cluster_list[i] = block+i;
block78fs/block_dev.cif((block % blocks_per_cluster) == 0)
block80fs/block_dev.cbh = getblk(dev, block, blocksize);
block87fs/block_dev.cbh = bread(dev,block,blocksize);
block91fs/block_dev.cif (block + blocks > size) blocks = size - block;
block93fs/block_dev.cexcess = (block + blocks) % blocks_per_cluster;
block98fs/block_dev.cif(((i+block) % blocks_per_cluster) == 0) {
block99fs/block_dev.cfor(j=0; j<blocks_per_cluster; j++) cluster_list[j] = block+i+j;
block102fs/block_dev.cbhlist[i] = getblk (dev, block+i, blocksize);
block115fs/block_dev.cblock++;
block162fs/block_dev.cunsigned int block;
block207fs/block_dev.cblock = offset >> blocksize_bits;
block215fs/block_dev.cexcess = (block + blocks) % blocks_per_cluster;
block222fs/block_dev.cif (block + blocks > size)
block223fs/block_dev.cblocks = size - block;
block241fs/block_dev.cif((block % blocks_per_cluster) == 0) {
block242fs/block_dev.cfor(i=0; i<blocks_per_cluster; i++) cluster_list[i] = block+i;
block246fs/block_dev.c*bhb = getblk(dev, block++, blocksize);
block276fs/buffer.c#define _hashfn(dev,block) (((unsigned)(dev^block))%nr_hash)
block277fs/buffer.c#define hash(dev,block) hash_table[_hashfn(dev,block)]
block413fs/buffer.cstatic struct buffer_head * find_buffer(dev_t dev, int block, int size)
block417fs/buffer.cfor (tmp = hash(dev,block) ; tmp != NULL ; tmp = tmp->b_next)
block418fs/buffer.cif (tmp->b_dev==dev && tmp->b_blocknr==block)
block436fs/buffer.cstruct buffer_head * get_hash_table(dev_t dev, int block, int size)
block441fs/buffer.cif (!(bh=find_buffer(dev,block,size)))
block445fs/buffer.cif (bh->b_dev == dev && bh->b_blocknr == block && bh->b_size == size)
block689fs/buffer.cstruct buffer_head * getblk(dev_t dev, int block, int size)
block701fs/buffer.cbh = get_hash_table(dev, block, size);
block711fs/buffer.cif (find_buffer(dev,block,size))
block726fs/buffer.cbh->b_blocknr=block;
block800fs/buffer.cstruct buffer_head * bread(dev_t dev, int block, int size)
block804fs/buffer.cif (!(bh = getblk(dev, block, size))) {
block827fs/buffer.cstruct buffer_head * breada(dev_t dev, int block, int bufsize,
block839fs/buffer.cif (block < 0 || !(bh = getblk(dev,block,bufsize)))
block857fs/buffer.cbh = getblk(dev,block+i,bufsize);
block1005fs/buffer.cint block;
block1015fs/buffer.cblock = *++b;
block1016fs/buffer.cif (!block)
block1018fs/buffer.cfirst = get_hash_table(dev, block, size);
block1047fs/buffer.cint block;
block1055fs/buffer.cblock = *(p++);
block1056fs/buffer.cif (!block)
block1058fs/buffer.cif (find_buffer(dev, block, size))
block1063fs/buffer.cblock = 0;
block1065fs/buffer.carr[block++] = bh;
block1086fs/buffer.cread_buffers(arr,block);
block1087fs/buffer.cwhile (block-- > 0)
block1088fs/buffer.cbrelse(arr[block]);
block1114fs/buffer.cint block;
block1116fs/buffer.cblock = b[0];
block1117fs/buffer.cif (!block)
block1119fs/buffer.cbh = get_hash_table(dev, block, size);
block1552fs/buffer.cstatic unsigned long try_to_generate_cluster(dev_t dev, int block, int size)
block1568fs/buffer.cnblock = block;
block1585fs/buffer.cbh->b_blocknr = block++;
block75fs/ext/file.cint block, blocks, offset;
block101fs/ext/file.cblock = offset >> BLOCK_SIZE_BITS;
block109fs/ext/file.cif (block + blocks > size)
block110fs/ext/file.cblocks = size - block;
block128fs/ext/file.c*bhb = ext_getblk(inode, block++, 0);
block40fs/ext/freelists.cvoid ext_free_block(struct super_block * sb, int block)
block50fs/ext/freelists.cif (block < sb->u.ext_sb.s_firstdatazone ||
block51fs/ext/freelists.cblock >= sb->u.ext_sb.s_nzones) {
block55fs/ext/freelists.cbh = get_hash_table(sb->s_dev, block, sb->s_blocksize);
block63fs/ext/freelists.cprintk("ext_free_block: block full, skipping to %d\n", block);
block68fs/ext/freelists.cblock, sb->s_blocksize)))
block73fs/ext/freelists.csb->u.ext_sb.s_firstfreeblocknumber = block;
block75fs/ext/freelists.cefb->free[efb->count++] = block;
block145fs/ext/freelists.cunsigned long count, block;
block153fs/ext/freelists.cblock = efb->next;
block154fs/ext/freelists.cwhile (block) {
block155fs/ext/freelists.cif (!(bh = bread (sb->s_dev, block, sb->s_blocksize))) {
block157fs/ext/freelists.cblock = 0;
block161fs/ext/freelists.cblock = efb->next;
block180fs/ext/freelists.cunsigned long block;
block221fs/ext/freelists.cblock = 2 + (ino - 1) / EXT_INODES_PER_BLOCK;
block222fs/ext/freelists.cif (!(bh = bread(dev, block, sb->s_blocksize)))
block244fs/ext/freelists.cunsigned long block;
block270fs/ext/freelists.cblock = 2 + (((unsigned long) efi->next) - 1) / EXT_INODES_PER_BLOCK;
block276fs/ext/freelists.cbread(sb->s_dev, block, sb->s_blocksize)))
block305fs/ext/freelists.cunsigned long count, block, ino;
block321fs/ext/freelists.cblock = 2 + ((ino - 1) / EXT_INODES_PER_BLOCK);
block322fs/ext/freelists.cif (!(bh = bread (sb->s_dev, block, sb->s_blocksize))) {
block324fs/ext/freelists.cblock = 0;
block30fs/ext/fsync.cstatic int sync_block (struct inode * inode, unsigned long * block, int wait)
block35fs/ext/fsync.cif (!*block)
block37fs/ext/fsync.ctmp = *block;
block38fs/ext/fsync.cbh = get_hash_table(inode->i_dev, *block, blocksize);
block41fs/ext/fsync.cif (*block != tmp) {
block62fs/ext/inode.cint dev = s->s_dev,block;
block107fs/ext/inode.cblock = 2 + (s->u.ext_sb.s_firstfreeinodenumber - 1) / EXT_INODES_PER_BLOCK;
block108fs/ext/inode.cif (!(s->u.ext_sb.s_firstfreeinodeblock = bread(dev, block, BLOCK_SIZE))) {
block175fs/ext/inode.cint ext_bmap(struct inode * inode,int block)
block179fs/ext/inode.cif (block<0) {
block183fs/ext/inode.cif (block >= 9+256+256*256+256*256*256) {
block187fs/ext/inode.cif (block<9)
block188fs/ext/inode.creturn inode_bmap(inode,block);
block189fs/ext/inode.cblock -= 9;
block190fs/ext/inode.cif (block<256) {
block194fs/ext/inode.creturn block_bmap(bread(inode->i_dev,i,BLOCK_SIZE),block);
block196fs/ext/inode.cblock -= 256;
block197fs/ext/inode.cif (block<256*256) {
block201fs/ext/inode.ci = block_bmap(bread(inode->i_dev,i,BLOCK_SIZE),block>>8);
block204fs/ext/inode.creturn block_bmap(bread(inode->i_dev,i,BLOCK_SIZE),block & 255);
block206fs/ext/inode.cblock -= 256*256;
block210fs/ext/inode.ci = block_bmap(bread(inode->i_dev,i,BLOCK_SIZE),block>>16);
block213fs/ext/inode.ci = block_bmap(bread(inode->i_dev,i,BLOCK_SIZE),(block>>8) & 255);
block216fs/ext/inode.creturn block_bmap(bread(inode->i_dev,i,BLOCK_SIZE),block & 255);
block302fs/ext/inode.cstruct buffer_head * ext_getblk(struct inode * inode, int block, int create)
block306fs/ext/inode.cif (block<0) {
block310fs/ext/inode.cif (block >= 9+256+256*256+256*256*256) {
block314fs/ext/inode.cif (block<9)
block315fs/ext/inode.creturn inode_getblk(inode,block,create);
block316fs/ext/inode.cblock -= 9;
block317fs/ext/inode.cif (block<256) {
block319fs/ext/inode.creturn block_getblk(inode,bh,block,create);
block321fs/ext/inode.cblock -= 256;
block322fs/ext/inode.cif (block<256*256) {
block324fs/ext/inode.cbh = block_getblk(inode,bh,block>>8,create);
block325fs/ext/inode.creturn block_getblk(inode,bh,block & 255,create);
block327fs/ext/inode.cblock -= 256*256;
block329fs/ext/inode.cbh = block_getblk(inode,bh,block>>16,create);
block330fs/ext/inode.cbh = block_getblk(inode,bh,(block>>8) & 255,create);
block331fs/ext/inode.creturn block_getblk(inode,bh,block & 255,create);
block334fs/ext/inode.cstruct buffer_head * ext_bread(struct inode * inode, int block, int create)
block338fs/ext/inode.cbh = ext_getblk(inode,block,create);
block353fs/ext/inode.cint block;
block355fs/ext/inode.cblock = 2 + (inode->i_ino-1)/EXT_INODES_PER_BLOCK;
block356fs/ext/inode.cif (!(bh=bread(inode->i_dev, block, BLOCK_SIZE)))
block369fs/ext/inode.celse for (block = 0; block < 12; block++)
block370fs/ext/inode.cinode->u.ext_i.i_data[block] = raw_inode->i_zone[block];
block391fs/ext/inode.cint block;
block393fs/ext/inode.cblock = 2 + (inode->i_ino-1)/EXT_INODES_PER_BLOCK;
block394fs/ext/inode.cif (!(bh=bread(inode->i_dev, block, BLOCK_SIZE)))
block406fs/ext/inode.celse for (block = 0; block < 12; block++)
block407fs/ext/inode.craw_inode->i_zone[block] = inode->u.ext_i.i_data[block];
block168fs/ext2/balloc.cvoid ext2_free_blocks (struct super_block * sb, unsigned long block,
block186fs/ext2/balloc.cif (block < es->s_first_data_block || 
block187fs/ext2/balloc.c(block + count) > es->s_blocks_count) {
block190fs/ext2/balloc.c"block = %lu, count = %lu", block, count);
block195fs/ext2/balloc.cext2_debug ("freeing block %lu\n", block);
block197fs/ext2/balloc.cblock_group = (block - es->s_first_data_block) /
block199fs/ext2/balloc.cbit = (block - es->s_first_data_block) % EXT2_BLOCKS_PER_GROUP(sb);
block204fs/ext2/balloc.cblock, count);
block210fs/ext2/balloc.c(in_range (gdp->bg_block_bitmap, block, count) ||
block211fs/ext2/balloc.cin_range (gdp->bg_inode_bitmap, block, count) ||
block212fs/ext2/balloc.cin_range (block, gdp->bg_inode_table,
block214fs/ext2/balloc.cin_range (block + count - 1, gdp->bg_inode_table,
block219fs/ext2/balloc.cblock, count);
block225fs/ext2/balloc.cblock);
block505fs/ext2/balloc.cstatic inline int block_in_use (unsigned long block,
block509fs/ext2/balloc.creturn test_bit ((block - sb->u.ext2_sb.s_es->s_first_data_block) %
block84fs/ext2/file.cint block, blocks, offset;
block115fs/ext2/file.cblock = offset >> EXT2_BLOCK_SIZE_BITS(sb);
block124fs/ext2/file.cif (block + blocks > size)
block125fs/ext2/file.cblocks = size - block;
block148fs/ext2/file.cif(!clusterblocks) clusterblocks = ext2_getcluster(inode, block);
block152fs/ext2/file.c*bhb = ext2_getblk (inode, block++, 0, &err);
block237fs/ext2/file.clong block;
block276fs/ext2/file.cblock = pos2 >> EXT2_BLOCK_SIZE_BITS(sb);
block286fs/ext2/file.cbh = ext2_getblk (inode, block, 1, &err);
block328fs/ext2/file.cblock++;
block30fs/ext2/fsync.cstatic int sync_block (struct inode * inode, u32 * block, int wait)
block35fs/ext2/fsync.cif (!*block)
block37fs/ext2/fsync.ctmp = *block;
block38fs/ext2/fsync.cbh = get_hash_table (inode->i_dev, *block, blocksize);
block41fs/ext2/fsync.cif (*block != tmp) {
block128fs/ext2/inode.cint ext2_bmap (struct inode * inode, int block)
block134fs/ext2/inode.cif (block < 0) {
block138fs/ext2/inode.cif (block >= EXT2_NDIR_BLOCKS + addr_per_block +
block144fs/ext2/inode.cif (block < EXT2_NDIR_BLOCKS)
block145fs/ext2/inode.creturn inode_bmap (inode, block);
block146fs/ext2/inode.cblock -= EXT2_NDIR_BLOCKS;
block147fs/ext2/inode.cif (block < addr_per_block) {
block152fs/ext2/inode.cinode->i_sb->s_blocksize), block);
block154fs/ext2/inode.cblock -= addr_per_block;
block155fs/ext2/inode.cif (block < (1 << (addr_per_block_bits * 2))) {
block161fs/ext2/inode.cblock >> addr_per_block_bits);
block166fs/ext2/inode.cblock & (addr_per_block - 1));
block168fs/ext2/inode.cblock -= (1 << (addr_per_block_bits * 2));
block173fs/ext2/inode.cblock >> (addr_per_block_bits * 2));
block177fs/ext2/inode.c(block >> addr_per_block_bits) & (addr_per_block - 1));
block181fs/ext2/inode.cblock & (addr_per_block - 1));
block362fs/ext2/inode.cstruct buffer_head * ext2_getblk (struct inode * inode, long block,
block371fs/ext2/inode.cif (block < 0) {
block375fs/ext2/inode.cif (block > EXT2_NDIR_BLOCKS + addr_per_block +
block387fs/ext2/inode.cext2_debug ("block %lu, next %lu, goal %lu.\n", block, 
block391fs/ext2/inode.cif (block == inode->u.ext2_i.i_next_alloc_block + 1) {
block397fs/ext2/inode.cb = block;
block398fs/ext2/inode.cif (block < EXT2_NDIR_BLOCKS)
block399fs/ext2/inode.creturn inode_getblk (inode, block, create, b, err);
block400fs/ext2/inode.cblock -= EXT2_NDIR_BLOCKS;
block401fs/ext2/inode.cif (block < addr_per_block) {
block403fs/ext2/inode.creturn block_getblk (inode, bh, block, create,
block406fs/ext2/inode.cblock -= addr_per_block;
block407fs/ext2/inode.cif (block < (1 << (addr_per_block_bits * 2))) {
block409fs/ext2/inode.cbh = block_getblk (inode, bh, block >> addr_per_block_bits,
block411fs/ext2/inode.creturn block_getblk (inode, bh, block & (addr_per_block - 1),
block414fs/ext2/inode.cblock -= (1 << (addr_per_block_bits * 2));
block416fs/ext2/inode.cbh = block_getblk (inode, bh, block >> (addr_per_block_bits * 2),
block418fs/ext2/inode.cbh = block_getblk (inode, bh, (block >> addr_per_block_bits) & (addr_per_block - 1),
block420fs/ext2/inode.creturn block_getblk (inode, bh, block & (addr_per_block - 1), create,
block424fs/ext2/inode.cint ext2_getcluster (struct inode * inode, long block)
block434fs/ext2/inode.cif (block < 0) {
block438fs/ext2/inode.cif (block > EXT2_NDIR_BLOCKS + addr_per_block +
block446fs/ext2/inode.cb = block;
block447fs/ext2/inode.cif (block < EXT2_NDIR_BLOCKS) return 0;
block449fs/ext2/inode.cblock -= EXT2_NDIR_BLOCKS;
block451fs/ext2/inode.cif (block < addr_per_block) {
block453fs/ext2/inode.creturn block_getcluster (inode, bh, block, 
block456fs/ext2/inode.cblock -= addr_per_block;
block457fs/ext2/inode.cif (block < (1 << (addr_per_block_bits * 2))) {
block459fs/ext2/inode.cbh = block_getblk (inode, bh, block >> addr_per_block_bits,
block461fs/ext2/inode.creturn block_getcluster (inode, bh, block & (addr_per_block - 1),
block464fs/ext2/inode.cblock -= (1 << (addr_per_block_bits * 2));
block466fs/ext2/inode.cbh = block_getblk (inode, bh, block >> (addr_per_block_bits * 2),
block468fs/ext2/inode.cbh = block_getblk (inode, bh, (block >> addr_per_block_bits) & (addr_per_block - 1),
block470fs/ext2/inode.creturn block_getcluster (inode, bh, block & (addr_per_block - 1),
block474fs/ext2/inode.cstruct buffer_head * ext2_bread (struct inode * inode, int block, 
block479fs/ext2/inode.cbh = ext2_getblk (inode, block, create, err);
block498fs/ext2/inode.cunsigned long block;
block519fs/ext2/inode.cblock = gdp[desc].bg_inode_table +
block522fs/ext2/inode.cif (!(bh = bread (inode->i_dev, block, inode->i_sb->s_blocksize)))
block525fs/ext2/inode.c"inode=%lu, block=%lu", inode->i_ino, block);
block556fs/ext2/inode.celse for (block = 0; block < EXT2_N_BLOCKS; block++)
block557fs/ext2/inode.cinode->u.ext2_i.i_data[block] = raw_inode->i_block[block];
block590fs/ext2/inode.cunsigned long block;
block610fs/ext2/inode.cblock = gdp[desc].bg_inode_table +
block613fs/ext2/inode.cif (!(bh = bread (inode->i_dev, block, inode->i_sb->s_blocksize)))
block616fs/ext2/inode.c"inode=%lu, block=%lu", inode->i_ino, block);
block638fs/ext2/inode.celse for (block = 0; block < EXT2_N_BLOCKS; block++)
block639fs/ext2/inode.craw_inode->i_block[block] = inode->u.ext2_i.i_data[block];
block76fs/ext2/namei.cint block, toread, i, err;
block93fs/ext2/namei.cfor (block = 0; block < NAMEI_RA_SIZE; ++block) {
block96fs/ext2/namei.cif ((block << EXT2_BLOCK_SIZE_BITS (sb)) >= dir->i_size)
block98fs/ext2/namei.cbh = ext2_getblk (dir, block, 0, &err);
block99fs/ext2/namei.cbh_use[block] = bh;
block104fs/ext2/namei.cfor (block = 0, offset = 0; offset < dir->i_size; block++) {
block109fs/ext2/namei.cif ((block % NAMEI_RA_BLOCKS) == 0 && toread) {
block113fs/ext2/namei.cbh = bh_use[block % NAMEI_RA_SIZE];
block149fs/ext2/namei.cif (((block + NAMEI_RA_SIZE) << EXT2_BLOCK_SIZE_BITS (sb)) >=
block153fs/ext2/namei.cbh = ext2_getblk (dir, block + NAMEI_RA_SIZE, 0, &err);
block154fs/ext2/namei.cbh_use[block % NAMEI_RA_SIZE] = bh;
block349fs/ext2/super.cunsigned long block = sb->u.ext2_sb.s_es->s_first_data_block;
block358fs/ext2/super.cif (gdp->bg_block_bitmap < block ||
block359fs/ext2/super.cgdp->bg_block_bitmap >= block + EXT2_BLOCKS_PER_GROUP(sb))
block367fs/ext2/super.cif (gdp->bg_inode_bitmap < block ||
block368fs/ext2/super.cgdp->bg_inode_bitmap >= block + EXT2_BLOCKS_PER_GROUP(sb))
block376fs/ext2/super.cif (gdp->bg_inode_table < block ||
block378fs/ext2/super.cblock + EXT2_BLOCKS_PER_GROUP(sb))
block386fs/ext2/super.cblock += EXT2_BLOCKS_PER_GROUP(sb);
block868fs/hpfs/hpfs_fs.cchar *block;
block899fs/hpfs/hpfs_fs.cblock = map_sector(inode->i_dev, hpfs_bmap(inode, q), &bh);
block900fs/hpfs/hpfs_fs.cif (!block)
block908fs/hpfs/hpfs_fs.cinode->i_hpfs_conv = choose_conv(block + r, n);
block915fs/hpfs/hpfs_fs.cmemcpy_tofs(buf, block + r, n);
block922fs/hpfs/hpfs_fs.cn0 = convcpy_tofs(buf, block + r, n);
block332fs/inode.cint bmap(struct inode * inode, int block)
block335fs/inode.creturn inode->i_op->bmap(inode,block);
block20fs/ioctl.cint block;
block31fs/ioctl.cblock = get_fs_long((long *) arg);
block32fs/ioctl.cblock = filp->f_inode->i_op->bmap(filp->f_inode,block);
block33fs/ioctl.cput_fs_long(block,(long *) arg);
block117fs/isofs/dir.cunsigned int block, offset;
block126fs/isofs/dir.cblock = isofs_bmap(inode, filp->f_pos >> bufbits);
block128fs/isofs/dir.cif (!block)
block131fs/isofs/dir.cif (!(bh = breada(inode->i_dev, block, bufsize, filp->f_pos, inode->i_size)))
block138fs/isofs/dir.cblock, offset, filp->f_pos);
block144fs/isofs/dir.cblock = isofs_bmap(inode, (filp->f_pos) >> bufbits);
block145fs/isofs/dir.cif (!block)
block147fs/isofs/dir.cbh = breada(inode->i_dev, block, bufsize, filp->f_pos, inode->i_size);
block154fs/isofs/dir.cinode_number = (block << bufbits) + (offset & (bufsize - 1));
block167fs/isofs/dir.cblock = isofs_bmap(inode, (filp->f_pos) >> bufbits);
block168fs/isofs/dir.cif (!block)
block170fs/isofs/dir.cbh = breada(inode->i_dev, block, bufsize, filp->f_pos, inode->i_size);
block184fs/isofs/dir.cblock = isofs_bmap(inode, (filp->f_pos + de_len) >> bufbits);
block185fs/isofs/dir.cif (!block)
block187fs/isofs/dir.cbh = breada(inode->i_dev, block, bufsize, filp->f_pos+de_len, inode->i_size);
block100fs/isofs/file.cint block;
block105fs/isofs/file.cblock = isofs_bmap(inode,0);
block106fs/isofs/file.cif (block && (bh = bread(inode->i_dev,block, ISOFS_BUFFER_SIZE(inode)))) {
block126fs/isofs/file.cint block, blocks, offset, total_blocks;
block152fs/isofs/file.cblock = filp->f_pos >> ISOFS_BUFFER_BITS(inode);
block170fs/isofs/file.cif (block + blocks > total_blocks)
block171fs/isofs/file.cblocks = total_blocks - block;
block191fs/isofs/file.c*bhb = getblk(inode->i_dev,isofs_bmap(inode, block++), ISOFS_BUFFER_SIZE(inode));
block410fs/isofs/inode.cint isofs_bmap(struct inode * inode,int block)
block413fs/isofs/inode.cif (block<0) {
block417fs/isofs/inode.creturn (inode->u.isofs_i.i_first_extent >> ISOFS_BUFFER_BITS(inode)) + block;
block428fs/isofs/inode.cint block;
block432fs/isofs/inode.cblock = inode->i_ino >> ISOFS_BUFFER_BITS(inode);
block433fs/isofs/inode.cif (!(bh=bread(inode->i_dev,block, bufsize))) {
block456fs/isofs/inode.cif (!(bh = bread(inode->i_dev,++block, bufsize))) {
block528fs/isofs/inode.cprintk("Get inode %d: %d %d: %d\n",inode->i_ino, block, 
block641fs/isofs/inode.cunsigned int block,offset;
block651fs/isofs/inode.cblock = extent << (ISOFS_BLOCK_BITS - bufbits);
block652fs/isofs/inode.cif (!(bh = bread(parent->i_dev, block, bufsize)))  return -1;
block688fs/isofs/inode.cblock = parent_dir << (ISOFS_BLOCK_BITS - bufbits);
block689fs/isofs/inode.cif (!block || !(bh = bread(parent->i_dev,block, bufsize)))
block695fs/isofs/inode.cinode_number = (block << bufbits)+(offset & (bufsize - 1));
block705fs/isofs/inode.cblock++;
block708fs/isofs/inode.cif((block & 1) && (ISOFS_BLOCK_BITS - bufbits))
block710fs/isofs/inode.cif (!block
block711fs/isofs/inode.c|| !(bh = bread(parent->i_dev,block, bufsize)))
block735fs/isofs/inode.cblock++;
block736fs/isofs/inode.cif(!(bh = bread(parent->i_dev,block,bufsize))) {
block787fs/isofs/inode.cstruct buffer_head * leak_check_bread(int dev, int block, int size){
block789fs/isofs/inode.creturn bread(dev, block, size);
block70fs/isofs/namei.cunsigned int block, i, f_pos, offset, inode_number;
block83fs/isofs/namei.cif (!(block = dir->u.isofs_i.i_first_extent)) return NULL;
block88fs/isofs/namei.cblock = isofs_bmap(dir,f_pos >> bufbits);
block90fs/isofs/namei.cif (!block || !(bh = bread(dir->i_dev,block,bufsize))) return NULL;
block95fs/isofs/namei.cinode_number = (block << bufbits) + (offset & (bufsize - 1));
block105fs/isofs/namei.cblock = isofs_bmap(dir,f_pos>>bufbits);
block106fs/isofs/namei.cif (!block || !(bh = bread(dir->i_dev,block,bufsize)))
block127fs/isofs/namei.cblock = isofs_bmap(dir,f_pos>>bufbits);
block128fs/isofs/namei.cif (!block || !(bh = bread(dir->i_dev,block,bufsize))) {
block59fs/isofs/rock.cint block, offset, offset1; \
block63fs/isofs/rock.cblock = cont_extent; \
block67fs/isofs/rock.cblock <<= 1;    \
block68fs/isofs/rock.cif (offset >= 1024) block++; \
block71fs/isofs/rock.cbh = bread(DEV->i_dev, block++, ISOFS_BUFFER_SIZE(DEV)); \
block82fs/isofs/rock.cbh = bread(DEV->i_dev, block, ISOFS_BUFFER_SIZE(DEV)); \
block415fs/isofs/rock.cint block;
block427fs/isofs/rock.cblock = inode->i_ino >> bufbits;
block428fs/isofs/rock.cif (!(bh=bread(inode->i_dev,block, bufsize))) {
block446fs/isofs/rock.cif (!(bh = bread(inode->i_dev,++block, bufsize))) {
block91fs/locks.cstatic void locks_insert_block(struct file_lock **block, struct file_lock *fl);
block721fs/locks.cstatic void locks_insert_block(struct file_lock **block, struct file_lock *fl)
block725fs/locks.cwhile ((bfl = *block) != NULL)
block726fs/locks.cblock = &bfl->fl_block;
block728fs/locks.c*block = fl;
block50fs/minix/bitmap.cvoid minix_free_block(struct super_block * sb, int block)
block59fs/minix/bitmap.cif (block < sb->u.minix_sb.s_firstdatazone ||
block60fs/minix/bitmap.cblock >= sb->u.minix_sb.s_nzones) {
block64fs/minix/bitmap.cbh = get_hash_table(sb->s_dev,block,BLOCK_SIZE);
block68fs/minix/bitmap.czone = block - sb->u.minix_sb.s_firstdatazone + 1;
block77fs/minix/bitmap.cprintk("free_block (%04x:%d): bit already cleared\n",sb->s_dev,block);
block73fs/minix/file.cint block, blocks, offset;
block99fs/minix/file.cblock = offset >> BLOCK_SIZE_BITS;
block107fs/minix/file.cif (block + blocks > size)
block108fs/minix/file.cblocks = size - block;
block126fs/minix/file.c*bhb = minix_getblk(inode, block++, 0);
block31fs/minix/fsync.cstatic int sync_block (struct inode * inode, unsigned short * block, int wait)
block36fs/minix/fsync.cif (!*block)
block38fs/minix/fsync.ctmp = *block;
block39fs/minix/fsync.cbh = get_hash_table(inode->i_dev, *block, blocksize);
block42fs/minix/fsync.cif (*block != tmp) {
block129fs/minix/inode.cint i,dev=s->s_dev,block;
block176fs/minix/inode.cblock=2;
block178fs/minix/inode.cif ((s->u.minix_sb.s_imap[i]=bread(dev,block,BLOCK_SIZE)) != NULL)
block179fs/minix/inode.cblock++;
block183fs/minix/inode.cif ((s->u.minix_sb.s_zmap[i]=bread(dev,block,BLOCK_SIZE)) != NULL)
block184fs/minix/inode.cblock++;
block187fs/minix/inode.cif (block != 2+s->u.minix_sb.s_imap_blocks+s->u.minix_sb.s_zmap_blocks) {
block255fs/minix/inode.cint minix_bmap(struct inode * inode,int block)
block259fs/minix/inode.cif (block<0) {
block263fs/minix/inode.cif (block >= 7+512+512*512) {
block267fs/minix/inode.cif (block < 7)
block268fs/minix/inode.creturn inode_bmap(inode,block);
block269fs/minix/inode.cblock -= 7;
block270fs/minix/inode.cif (block < 512) {
block274fs/minix/inode.creturn block_bmap(bread(inode->i_dev,i,BLOCK_SIZE),block);
block276fs/minix/inode.cblock -= 512;
block280fs/minix/inode.ci = block_bmap(bread(inode->i_dev,i,BLOCK_SIZE),block>>9);
block283fs/minix/inode.creturn block_bmap(bread(inode->i_dev,i,BLOCK_SIZE),block & 511);
block369fs/minix/inode.cstruct buffer_head * minix_getblk(struct inode * inode, int block, int create)
block373fs/minix/inode.cif (block<0) {
block377fs/minix/inode.cif (block >= 7+512+512*512) {
block381fs/minix/inode.cif (block < 7)
block382fs/minix/inode.creturn inode_getblk(inode,block,create);
block383fs/minix/inode.cblock -= 7;
block384fs/minix/inode.cif (block < 512) {
block386fs/minix/inode.creturn block_getblk(inode, bh, block, create);
block388fs/minix/inode.cblock -= 512;
block390fs/minix/inode.cbh = block_getblk(inode, bh, block>>9, create);
block391fs/minix/inode.creturn block_getblk(inode, bh, block & 511, create);
block394fs/minix/inode.cstruct buffer_head * minix_bread(struct inode * inode, int block, int create)
block398fs/minix/inode.cbh = minix_getblk(inode,block,create);
block413fs/minix/inode.cint block, ino;
block423fs/minix/inode.cblock = 2 + inode->i_sb->u.minix_sb.s_imap_blocks +
block426fs/minix/inode.cif (!(bh=bread(inode->i_dev,block, BLOCK_SIZE))) {
block442fs/minix/inode.celse for (block = 0; block < 9; block++)
block443fs/minix/inode.cinode->u.minix_i.i_data[block] = raw_inode->i_zone[block];
block463fs/minix/inode.cint ino, block;
block472fs/minix/inode.cblock = 2 + inode->i_sb->u.minix_sb.s_imap_blocks + inode->i_sb->u.minix_sb.s_zmap_blocks +
block474fs/minix/inode.cif (!(bh=bread(inode->i_dev, block, BLOCK_SIZE))) {
block489fs/minix/inode.celse for (block = 0; block < 9; block++)
block490fs/minix/inode.craw_inode->i_zone[block] = inode->u.minix_i.i_data[block];
block71fs/minix/namei.cunsigned long block, offset;
block87fs/minix/namei.cblock = offset = 0;
block88fs/minix/namei.cwhile (block*BLOCK_SIZE+offset < dir->i_size) {
block90fs/minix/namei.cbh = minix_bread(dir,block,0);
block92fs/minix/namei.cblock++;
block104fs/minix/namei.cblock++;
block155fs/minix/namei.cunsigned long block, offset;
block175fs/minix/namei.cblock = offset = 0;
block178fs/minix/namei.cbh = minix_bread(dir,block,1);
block184fs/minix/namei.cif (block*bh->b_size + offset > dir->i_size) {
block186fs/minix/namei.cdir->i_size = block*bh->b_size + offset;
block209fs/minix/namei.cblock++;
block380fs/minix/namei.cunsigned int block, offset;
block388fs/minix/namei.cblock = 0;
block404fs/minix/namei.cwhile (block*BLOCK_SIZE+offset < inode->i_size) {
block406fs/minix/namei.cbh = minix_bread(inode,block,0);
block408fs/minix/namei.cblock++;
block423fs/minix/namei.cblock++;
block13fs/msdos/buffer.cint block)
block17fs/msdos/buffer.cret = bread (sb->s_dev,block,512);
block19fs/msdos/buffer.cstruct buffer_head *real = bread (sb->s_dev,block>>1,1024);
block55fs/msdos/buffer.cif (block & 1) ret->b_data += 512;
block66fs/msdos/buffer.cint block)
block70fs/msdos/buffer.cret = getblk (sb->s_dev,block,512);
block78fs/msdos/buffer.cret = msdos_bread (sb,block);
block339fs/msdos/inode.cint msdos_bmap(struct inode *inode,int block)
block346fs/msdos/inode.creturn sb->dir_start + block;
block348fs/msdos/inode.ccluster = block/sb->cluster_size;
block349fs/msdos/inode.coffset = block % sb->cluster_size;
block2fs/msdos/msbuffer.hstruct buffer_head *msdos_bread (struct super_block *sb, int block);
block3fs/msdos/msbuffer.hstruct buffer_head *msdos_getblk (struct super_block *sb, int block);
block36fs/sysv/balloc.cvoid sysv_free_block(struct super_block * sb, unsigned int block)
block45fs/sysv/balloc.cif (block < sb->sv_firstdatazone || block >= sb->sv_nzones) {
block62fs/sysv/balloc.cbh = sv_getblk(sb, sb->s_dev, block);
block99fs/sysv/balloc.cbh = sv_getblk(sb, sb->s_dev, block);
block113fs/sysv/balloc.cbh = sv_get_hash_table(sb, sb->s_dev, block);
block119fs/sysv/balloc.cblock = to_coh_ulong(block);
block120fs/sysv/balloc.csb->sv_sb_flc_blocks[(*sb->sv_sb_flc_count)++] = block;
block134fs/sysv/balloc.cunsigned int block;
block147fs/sysv/balloc.cblock = sb->sv_sb_flc_blocks[(*sb->sv_sb_flc_count)-1];
block149fs/sysv/balloc.cblock = from_coh_ulong(block);
block150fs/sysv/balloc.cif (block == 0) { /* Applies only to Xenix FS, SystemV FS */
block155fs/sysv/balloc.cif (block < sb->sv_firstdatazone || block >= sb->sv_nzones) {
block156fs/sysv/balloc.cprintk("sysv_new_block: new block %d is not in data zone\n",block);
block164fs/sysv/balloc.cif (!(bh = sv_bread(sb, sb->s_dev, block))) {
block202fs/sysv/balloc.cbh = sv_getblk(sb, sb->s_dev, block);
block226fs/sysv/balloc.creturn block;
block233fs/sysv/balloc.cunsigned int block;
block243fs/sysv/balloc.cblock = sb->sv_sb_flc_blocks[--i];
block245fs/sysv/balloc.cblock = from_coh_ulong(block);
block246fs/sysv/balloc.cif (block == 0) /* block 0 terminates list */
block257fs/sysv/balloc.cif (block < sb->sv_firstdatazone || block >= sb->sv_nzones) {
block258fs/sysv/balloc.cprintk("sysv_count_free_blocks: new block %d is not in data zone\n",block);
block261fs/sysv/balloc.cif (!(bh = sv_bread(sb, sb->s_dev, block))) {
block295fs/sysv/balloc.cblock = flc_blocks[--i];
block297fs/sysv/balloc.cblock = from_coh_ulong(block);
block298fs/sysv/balloc.cif (block == 0) /* block 0 terminates list */
block306fs/sysv/balloc.cif (block == 0) /* Applies only to Xenix FS and SystemV FS */
block80fs/sysv/file.cunsigned int block;
block107fs/sysv/file.cblock = offset >> sb->sv_block_size_bits;
block114fs/sysv/file.cif (block + blocks > size)
block115fs/sysv/file.cblocks = size - block;
block134fs/sysv/file.c*bhb = sysv_getblk(inode, block++, 0);
block36fs/sysv/fsync.cunsigned long tmp, block;
block39fs/sysv/fsync.cblock = tmp = *blockp;
block41fs/sysv/fsync.cblock = from_coh_ulong(block);
block42fs/sysv/fsync.cif (!block)
block45fs/sysv/fsync.cbh = sv_get_hash_table(sb, inode->i_dev, block);
block70fs/sysv/fsync.cunsigned long tmp, block;
block73fs/sysv/fsync.cblock = tmp = *iblockp;
block75fs/sysv/fsync.cblock = from_coh_ulong(block);
block76fs/sysv/fsync.cif (!block)
block81fs/sysv/fsync.c*bh = sv_bread(inode->i_sb, inode->i_dev, block);
block112fs/sysv/ialloc.cint i,j,ino,block;
block130fs/sysv/ialloc.cfor (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) {
block131fs/sysv/ialloc.cif (!(bh = sv_bread(sb, sb->s_dev, block))) {
block185fs/sysv/ialloc.cint j,block,count;
block196fs/sysv/ialloc.cfor (block = sb->sv_firstinodezone, j = SYSV_ROOT_INO ; block < sb->sv_firstdatazone ; block++, j = 0) {
block197fs/sysv/ialloc.cif (!(bh = sv_bread(sb, sb->s_dev, block))) {
block582fs/sysv/inode.cunsigned int block = block_nr;
block588fs/sysv/inode.cif (block < 10)
block589fs/sysv/inode.creturn inode_bmap(sb,inode,block);
block590fs/sysv/inode.cblock -= 10;
block592fs/sysv/inode.cif (block < sb->sv_ind_per_block) {
block597fs/sysv/inode.creturn block_bmap(sb, bh, block, convert);
block599fs/sysv/inode.cblock -= sb->sv_ind_per_block;
block600fs/sysv/inode.cif (block < sb->sv_ind_per_block_2) {
block605fs/sysv/inode.ci = block_bmap(sb, bh, block >> sb->sv_ind_per_block_bits, convert);
block609fs/sysv/inode.creturn block_bmap(sb, bh, block & sb->sv_ind_per_block_1, convert);
block611fs/sysv/inode.cblock -= sb->sv_ind_per_block_2;
block612fs/sysv/inode.cif (block < sb->sv_ind_per_block_3) {
block617fs/sysv/inode.ci = block_bmap(sb, bh, block >> sb->sv_ind_per_block_2_bits, convert);
block621fs/sysv/inode.ci = block_bmap(sb, bh, (block >> sb->sv_ind_per_block_bits) & sb->sv_ind_per_block_1,convert);
block625fs/sysv/inode.creturn block_bmap(sb, bh, block & sb->sv_ind_per_block_1, convert);
block627fs/sysv/inode.cif ((int)block<0) {
block679fs/sysv/inode.cunsigned long tmp, block;
block696fs/sysv/inode.cblock = tmp = *p;
block698fs/sysv/inode.cblock = from_coh_ulong(block);
block700fs/sysv/inode.cresult = sv_getblk(sb, bh->b_dev, block);
block712fs/sysv/inode.cblock = sysv_new_block(sb);
block713fs/sysv/inode.cif (!block) {
block717fs/sysv/inode.cresult = sv_getblk(sb, bh->b_dev, block);
block719fs/sysv/inode.csysv_free_block(sb,block);
block723fs/sysv/inode.c*p = (sb->sv_convert ? to_coh_ulong(block) : block);
block729fs/sysv/inode.cstruct buffer_head * sysv_getblk(struct inode * inode, unsigned int block, int create)
block734fs/sysv/inode.cif (block < 10)
block735fs/sysv/inode.creturn inode_getblk(inode,block,create);
block736fs/sysv/inode.cblock -= 10;
block737fs/sysv/inode.cif (block < sb->sv_ind_per_block) {
block739fs/sysv/inode.creturn block_getblk(inode, bh, block, create);
block741fs/sysv/inode.cblock -= sb->sv_ind_per_block;
block742fs/sysv/inode.cif (block < sb->sv_ind_per_block_2) {
block744fs/sysv/inode.cbh = block_getblk(inode, bh, block >> sb->sv_ind_per_block_bits, create);
block745fs/sysv/inode.creturn block_getblk(inode, bh, block & sb->sv_ind_per_block_1, create);
block747fs/sysv/inode.cblock -= sb->sv_ind_per_block_2;
block748fs/sysv/inode.cif (block < sb->sv_ind_per_block_3) {
block750fs/sysv/inode.cbh = block_getblk(inode, bh, block >> sb->sv_ind_per_block_2_bits, create);
block751fs/sysv/inode.cbh = block_getblk(inode, bh, (block >> sb->sv_ind_per_block_bits) & sb->sv_ind_per_block_1, create);
block752fs/sysv/inode.creturn block_getblk(inode, bh, block & sb->sv_ind_per_block_1, create);
block754fs/sysv/inode.cif ((int)block<0) {
block762fs/sysv/inode.cstruct buffer_head * sysv_file_bread(struct inode * inode, int block, int create)
block766fs/sysv/inode.cbh = sysv_getblk(inode,block,create);
block807fs/sysv/inode.cunsigned int block, ino;
block818fs/sysv/inode.cblock = sb->sv_firstinodezone + ((ino-1) >> sb->sv_inodes_per_block_bits);
block819fs/sysv/inode.cif (!(bh = sv_bread(sb,inode->i_dev,block))) {
block849fs/sysv/inode.cfor (block = 0; block < 10+1+1+1; block++)
block850fs/sysv/inode.cinode->u.sysv_i.i_data[block] =
block851fs/sysv/inode.ccoh_read3byte(&raw_inode->i_a.i_addb[3*block]);
block853fs/sysv/inode.cfor (block = 0; block < 10+1+1+1; block++)
block854fs/sysv/inode.cinode->u.sysv_i.i_data[block] =
block855fs/sysv/inode.cread3byte(&raw_inode->i_a.i_addb[3*block]);
block894fs/sysv/inode.cunsigned int ino, block;
block904fs/sysv/inode.cblock = sb->sv_firstinodezone + ((ino-1) >> sb->sv_inodes_per_block_bits);
block905fs/sysv/inode.cif (!(bh = sv_bread(sb,inode->i_dev,block))) {
block933fs/sysv/inode.cfor (block = 0; block < 10+1+1+1; block++)
block934fs/sysv/inode.ccoh_write3byte(&raw_inode->i_a.i_addb[3*block],inode->u.sysv_i.i_data[block]);
block936fs/sysv/inode.cfor (block = 0; block < 10+1+1+1; block++)
block937fs/sysv/inode.cwrite3byte(&raw_inode->i_a.i_addb[3*block],inode->u.sysv_i.i_data[block]);
block68fs/sysv/namei.cunsigned long pos, block, offset; /* pos = block * block_size + offset */
block81fs/sysv/namei.cpos = block = offset = 0;
block84fs/sysv/namei.cbh = sysv_file_bread(dir,block,0);
block86fs/sysv/namei.c/* offset = 0; */ block++;
block100fs/sysv/namei.coffset = 0; block++;
block152fs/sysv/namei.cunsigned long pos, block, offset; /* pos = block * block_size + offset */
block169fs/sysv/namei.cpos = block = offset = 0;
block172fs/sysv/namei.cbh = sysv_file_bread(dir,block,1);
block202fs/sysv/namei.coffset = 0; block++;
block372fs/sysv/namei.cunsigned long pos, block, offset; /* pos = block * block_size + offset */
block378fs/sysv/namei.cblock = 0;
block397fs/sysv/namei.cbh = sysv_file_bread(inode,block,0);
block399fs/sysv/namei.c/* offset = 0; */ block++;
block415fs/sysv/namei.coffset = 0; block++;
block49fs/sysv/truncate.cunsigned long block;
block57fs/sysv/truncate.cblock = *p;
block58fs/sysv/truncate.cif (!block)
block60fs/sysv/truncate.cbh = sv_get_hash_table(sb, inode->i_dev, block);
block65fs/sysv/truncate.cif ((bh && bh->b_count != 1) || (block != *p)) {
block73fs/sysv/truncate.csysv_free_block(sb,block);
block85fs/sysv/truncate.cunsigned long tmp, block;
block112fs/sysv/truncate.cblock = tmp = *ind;
block114fs/sysv/truncate.cblock = from_coh_ulong(block);
block115fs/sysv/truncate.cif (!block)
block117fs/sysv/truncate.cbh = sv_get_hash_table(sb, inode->i_dev, block);
block130fs/sysv/truncate.csysv_free_block(sb,block);
block154fs/sysv/truncate.cunsigned long tmp, block;
block179fs/sysv/truncate.cblock = tmp = *ind;
block181fs/sysv/truncate.cblock = from_coh_ulong(block);
block182fs/sysv/truncate.cif (!block)
block208fs/sysv/truncate.cunsigned long tmp, block;
block233fs/sysv/truncate.cblock = tmp = *ind;
block235fs/sysv/truncate.cblock = from_coh_ulong(block);
block236fs/sysv/truncate.cif (!block)
block33fs/xiafs/fsync.cstatic int sync_block (struct inode * inode, unsigned long * block, int wait)
block38fs/xiafs/fsync.cif (!*block)
block40fs/xiafs/fsync.ctmp = *block;
block41fs/xiafs/fsync.cbh = get_hash_table(inode->i_dev, *block, blocksize);
block44fs/xiafs/fsync.cif (*block != tmp) {
block453include/linux/ext2_fs.hextern int ext2_getcluster (struct inode * inode, long block);
block82include/linux/ext_fs.hextern void ext_free_block(struct super_block * sb, int block);
block476include/linux/fs.hextern int bmap(struct inode * inode,int block);
block494include/linux/fs.hextern struct buffer_head * get_hash_table(dev_t dev, int block, int size);
block495include/linux/fs.hextern struct buffer_head * getblk(dev_t dev, int block, int size);
block502include/linux/fs.hextern struct buffer_head * bread(dev_t dev, int block, int size);
block505include/linux/fs.hextern struct buffer_head * breada(dev_t dev,int block, int size, 
block173include/linux/iso_fs.hextern int isofs_free_block(int dev, int block);
block201include/linux/iso_fs.hextern struct buffer_head * leak_check_bread(int dev, int block, int size);
block101include/linux/minix_fs.hextern void minix_free_block(struct super_block * sb, int block);
block163include/linux/msdos_fs.hextern int msdos_bmap(struct inode *inode,int block);
block340include/linux/sysv_fs.hsv_get_hash_table (struct super_block *sb, int dev, unsigned int block)
block342include/linux/sysv_fs.hreturn get_hash_table (dev, block + sb->sv_block_base, sb->sv_block_size);
block347include/linux/sysv_fs.hsv_getblk (struct super_block *sb, int dev, unsigned int block)
block349include/linux/sysv_fs.hreturn getblk (dev, block + sb->sv_block_base, sb->sv_block_size);
block354include/linux/sysv_fs.hsv_bread (struct super_block *sb, int dev, unsigned int block)
block356include/linux/sysv_fs.hreturn bread (dev, block + sb->sv_block_base, sb->sv_block_size);
block381include/linux/sysv_fs.hextern void sysv_free_block(struct super_block * sb, unsigned int block);
block118include/linux/xd.hstatic int xd_readwrite (u_char operation,u_char drive,char *buffer,u_int block,u_int count);
block87include/linux/xia_fs.hextern void xiafs_free_zone(struct super_block * sb, int block);
block31mm/filemap.cstatic inline void multi_bmap(struct inode * inode, unsigned int block, unsigned int * nr, int shift)
block34mm/filemap.cblock >>= shift;
block36mm/filemap.c*nr = bmap(inode, block);
block38mm/filemap.cblock++;
block160mm/swap.cunsigned int block = offset << 3;
block163mm/swap.cif (!(zones[i] = swapf->i_op->smap(swapf,block++))) {
block170mm/swap.cunsigned int block = offset
block174mm/swap.cif (!(zones[i] = bmap(swapf,block++))) {