taglinefilesource code
block43drivers/block/blk.h#define SUBSECTOR(block) (CURRENT->current_nr_sectors > 0)
block1147drivers/block/cdu31a.cunsigned int  block,
block1166drivers/block/cdu31a.cif (((block % 4) * 512) != ((2048 - readahead_dataleft) % 2048))
block1168drivers/block/cdu31a.csony_next_block += block % 4;
block1169drivers/block/cdu31a.csony_blocks_left -= block % 4;
block1170drivers/block/cdu31a.cskip = (block % 4) * 512;
block1354drivers/block/cdu31a.cint block;
block1420drivers/block/cdu31a.cblock = CURRENT->sector;
block1434drivers/block/cdu31a.cif (block < 80)
block1437drivers/block/cdu31a.cblock += (sony_toc->start_track_lba * 4);
block1448drivers/block/cdu31a.cif ((block / 4) < sony_toc->start_track_lba)
block1455drivers/block/cdu31a.cif ((block / 4) >= sony_toc->lead_out_start_lba)
block1461drivers/block/cdu31a.cif (((block + nblock) / 4) >= sony_toc->lead_out_start_lba)
block1485drivers/block/cdu31a.cif (start_request(block / 4, CDU31A_READAHEAD / 4, 0))
block1494drivers/block/cdu31a.celse if (block != sony_next_block)
block1498drivers/block/cdu31a.cblock,
block1508drivers/block/cdu31a.cif (start_request(block / 4, CDU31A_READAHEAD / 4, 0))
block1515drivers/block/cdu31a.cread_data_block(CURRENT->buffer, block, nblock, res_reg, &res_size);
block1920drivers/block/floppy.cint block;
block1932drivers/block/floppy.cblock = current_count_sectors + CURRENT->sector;
block1933drivers/block/floppy.cif (block > DRS->maxblock)
block1934drivers/block/floppy.cDRS->maxblock=block;
block1935drivers/block/floppy.cif ( block > floppy->sect)
block2946drivers/block/floppy.cint block;
block2957drivers/block/floppy.cblock = (filp->f_pos + count) >> 9;
block2958drivers/block/floppy.cif(block > UDRS->maxblock)
block2959drivers/block/floppy.cUDRS->maxblock = block;
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;
block677drivers/block/ide-cd.cstatic int cdrom_start_read (ide_dev_t *dev, unsigned int block)
block915drivers/block/ide-cd.cstatic int do_rw_cdrom (ide_dev_t *dev, unsigned long block)
block929drivers/block/ide-cd.creturn cdrom_start_read (dev, block);
block940drivers/block/ide.cstatic inline int do_rw_disk (ide_dev_t *dev, struct request *rq, unsigned long block)
block948drivers/block/ide.cblock, rq->nr_sectors, (unsigned long) rq->buffer);
block950drivers/block/ide.cOUT_BYTE(block,HD_SECTOR);
block951drivers/block/ide.cOUT_BYTE(block>>=8,HD_LCYL);
block952drivers/block/ide.cOUT_BYTE(block>>=8,HD_HCYL);
block953drivers/block/ide.cOUT_BYTE(((block>>8)&0x0f)|dev->select.all,HD_CURRENT);
block956drivers/block/ide.ctrack = block / dev->sect;
block957drivers/block/ide.csect  = block % dev->sect + 1;
block1029drivers/block/ide.cunsigned long block, blockend;
block1070drivers/block/ide.cblock    = rq->sector;
block1071drivers/block/ide.cblockend = block + rq->nr_sectors;
block1072drivers/block/ide.cif ((blockend < block) || (blockend > ide_hd[HWIF][minor].nr_sects)) {
block1074drivers/block/ide.cdev->name, block, rq->nr_sectors);
block1078drivers/block/ide.cblock += ide_hd[HWIF][minor].start_sect;
block1093drivers/block/ide.cif (do_rw_disk(dev, rq, block))
block1097drivers/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++;
block2197drivers/block/sbpcd.cint block, checksum;
block2202drivers/block/sbpcd.cfor (block=CD_BLOCK_OFFSET+1;block<CD_BLOCK_OFFSET+200;block++)
block2210drivers/block/sbpcd.cdrvcmd[1]=(block>>16)&0xFF;
block2211drivers/block/sbpcd.cdrvcmd[2]=(block>>8)&0xFF;
block2212drivers/block/sbpcd.cdrvcmd[3]=block&0xFF;
block2221drivers/block/sbpcd.cdrvcmd[2]=(block>>16)&0xFF;
block2222drivers/block/sbpcd.cdrvcmd[3]=(block>>8)&0xFF;
block2223drivers/block/sbpcd.cdrvcmd[4]=block&0xFF;
block3484drivers/block/sbpcd.cint i=0, j=0, frame, block;
block3509drivers/block/sbpcd.cblock=msf2lba(&read_audio.addr.msf.minute);
block3511drivers/block/sbpcd.cblock=read_audio.addr.lba;
block3516drivers/block/sbpcd.cblock, blk2msf(block)));
block3547drivers/block/sbpcd.cdrvcmd[1]=(block>>16)&0x000000ff;
block3548drivers/block/sbpcd.cdrvcmd[2]=(block>>8)&0x000000ff;
block3549drivers/block/sbpcd.cdrvcmd[3]=block&0x000000ff;
block3557drivers/block/sbpcd.clba2msf(block,&drvcmd[1]); /* msf-bin format required */
block3741drivers/block/sbpcd.cu_int block;
block3761drivers/block/sbpcd.cblock = CURRENT->sector; /* always numbered as 512-byte-pieces */
block3770drivers/block/sbpcd.cDPRINTF((DBG_BSZ,"SBPCD: read sector %d (%d sectors)\n", block, nsect));
block3772drivers/block/sbpcd.cDPRINTF((DBG_MUL,"SBPCD: read LBA %d\n", block/4));
block3841drivers/block/sbpcd.cint block;
block3844drivers/block/sbpcd.cblock=CURRENT->sector/4;
block3850drivers/block/sbpcd.cDPRINTF((DBG_MUL,"SBPCD: read MSF %08X\n", blk2msf(block)));
block3854drivers/block/sbpcd.cblk2msf(DriveStruct[d].lba_multi+block),
block3855drivers/block/sbpcd.cblk2msf(block)));
block3856drivers/block/sbpcd.cblock=DriveStruct[d].lba_multi+block;
block3859drivers/block/sbpcd.cif ((block<=DriveStruct[d].last_redirect)
block3863drivers/block/sbpcd.cblk2msf(DriveStruct[d].lba_multi+block),
block3864drivers/block/sbpcd.cblk2msf(block)));
block3865drivers/block/sbpcd.cblock=DriveStruct[d].lba_multi+block;
block3871drivers/block/sbpcd.cif (block+SBP_BUFFER_FRAMES <= DriveStruct[d].CDsize_frm)
block3875drivers/block/sbpcd.cDriveStruct[d].sbp_read_frames=DriveStruct[d].CDsize_frm-block;
block3880drivers/block/sbpcd.cblock, DriveStruct[d].CDsize_frm));
block3898drivers/block/sbpcd.cdrvcmd[1]=(block>>16)&0x000000ff;
block3899drivers/block/sbpcd.cdrvcmd[2]=(block>>8)&0x000000ff;
block3900drivers/block/sbpcd.cdrvcmd[3]=block&0x000000ff;
block3911drivers/block/sbpcd.clba2msf(block,&drvcmd[1]); /* msf-bcd format required */
block3918drivers/block/sbpcd.cdrvcmd[1]=(block>>16)&0x000000ff;
block3919drivers/block/sbpcd.cdrvcmd[2]=(block>>8)&0x000000ff;
block3920drivers/block/sbpcd.cdrvcmd[3]=block&0x000000ff;
block3930drivers/block/sbpcd.clba2msf(block,&drvcmd[1]); /* msf-bin format required */
block3938drivers/block/sbpcd.clba2msf(block,&drvcmd[1]); /* msf-bin format required */
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;
block469drivers/scsi/eata.csh[j]->block = sh[j];
block243drivers/scsi/hosts.cretval->block = NULL;
block245drivers/scsi/hosts.hstruct Scsi_Host * block;
block52drivers/scsi/scsi.c#define SCSI_BLOCK(HOST) ((HOST->block && host_active && HOST != host_active) \
block246drivers/scsi/scsi.cif (shpnt->unchecked_isa_dma) shpnt->block = shpnt;
block249drivers/scsi/scsi.cif (shpnt->block) sh[block_count++] = shpnt;
block252drivers/scsi/scsi.cif (block_count == 1) sh[0]->block = NULL;
block257drivers/scsi/scsi.csh[index]->block = sh[index + 1];
block262drivers/scsi/scsi.csh[block_count - 1]->block = sh[0];
block1025drivers/scsi/scsi.cif (host->block) host_active = host;
block1488drivers/scsi/scsi.cif (host->block && host->host_busy == 0) {
block1496drivers/scsi/scsi.cfor (next = host->block; next != host; next = next->block)
block1676drivers/scsi/scsi.cif (!host->block) host->host_busy++;
block1681drivers/scsi/scsi.cif (!host->block) host->host_busy--;
block572drivers/scsi/scsi.hif (SCpnt->host->block) {
block575drivers/scsi/scsi.hfor (next = SCpnt->host->block; next != SCpnt->host;
block576drivers/scsi/scsi.hnext = next->block)
block70drivers/scsi/scsi_debug.cif ((bh->b_blocknr << 1) + start != block)           \
block71drivers/scsi/scsi_debug.c{  printk("Wrong bh block# %d %d ",bh->b_blocknr, block);  \
block91drivers/scsi/scsi_debug.cif (SCpnt->request.sector + start != block) panic("Wrong block.");  \
block95drivers/scsi/scsi_debug.cif ((SCpnt->request.bh->b_blocknr << 1) + start != block)           \
block96drivers/scsi/scsi_debug.c{  printk("Wrong bh block# %d %d ",SCpnt->request.bh->b_blocknr, block);  \
block159drivers/scsi/scsi_debug.cint block, start;
block238drivers/scsi/scsi_debug.cblock = cmd[5] + (cmd[4] << 8) + (cmd[3] << 16) + (cmd[2] << 24); 
block240drivers/scsi/scsi_debug.cblock = cmd[3] + (cmd[2] << 8) + ((cmd[1] & 0x1f) << 16);
block274drivers/scsi/scsi_debug.cif(block == 0 && target == 0) {
block289drivers/scsi/scsi_debug.cif (SCpnt->use_sg) printk("Block %x (%d %d)\n",block, SCpnt->request.nr_sectors,
block295drivers/scsi/scsi_debug.cif(block == 0xfff0) {
block317drivers/scsi/scsi_debug.cmemcpy(buff+60, &block, sizeof(block));
block325drivers/scsi/scsi_debug.cblock += bufflen >> 9;
block349drivers/scsi/scsi_debug.cblock = cmd[5] + (cmd[4] << 8) + (cmd[3] << 16) + (cmd[2] << 24); 
block351drivers/scsi/scsi_debug.cblock = cmd[3] + (cmd[2] << 8) + ((cmd[1] & 0x1f) << 16);
block361drivers/scsi/scsi_debug.cif (block != *((unsigned long *) (buff+60))) {
block362drivers/scsi/scsi_debug.cprintk("%x %x :",block,  *((unsigned long *) (buff+60)));
block427drivers/scsi/sd.cint dev, block, this_count;
block442drivers/scsi/sd.cblock = SCpnt->request.sector;
block446drivers/scsi/sd.cprintk("Doing sd request, dev = %d, block = %d\n", dev, block);
block451drivers/scsi/sd.cblock + SCpnt->request.nr_sectors > sd[dev].nr_sects)
block457drivers/scsi/sd.cblock += sd[dev].start_sect;
block471drivers/scsi/sd.cprintk("sd%c : real dev = /dev/sd%c, block = %d\n", 'a' + MINOR(SCpnt->request.dev), dev, block);
block486drivers/scsi/sd.cif((block & 1) || (SCpnt->request.nr_sectors & 1)) {
block745drivers/scsi/sd.cif(block & 1) panic("sd.c:Bad block number requested");
block747drivers/scsi/sd.cblock = block >> 1;
block752drivers/scsi/sd.cblock = block << 1;
block756drivers/scsi/sd.cif (((this_count > 0xff) ||  (block > 0x1fffff)) && rscsi_disks[dev].ten)
block762drivers/scsi/sd.ccmd[2] = (unsigned char) (block >> 24) & 0xff;
block763drivers/scsi/sd.ccmd[3] = (unsigned char) (block >> 16) & 0xff;
block764drivers/scsi/sd.ccmd[4] = (unsigned char) (block >> 8) & 0xff;
block765drivers/scsi/sd.ccmd[5] = (unsigned char) block & 0xff;
block775drivers/scsi/sd.ccmd[1] |= (unsigned char) ((block >> 16) & 0x1f);
block776drivers/scsi/sd.ccmd[2] = (unsigned char) ((block >> 8) & 0xff);
block777drivers/scsi/sd.ccmd[3] = (unsigned char) block & 0xff;
block546drivers/scsi/sr.cunsigned int dev, block, realcount;
block559drivers/scsi/sr.cblock = SCpnt->request.sector;  
block739drivers/scsi/sr.cstart = block % 4;
block761drivers/scsi/sr.cblock = block >> 2; /* These are the sectors that the cdrom uses */
block763drivers/scsi/sr.cblock = block & 0xfffffffc;
block769drivers/scsi/sr.cif (((realcount > 0xff) || (block > 0x1fffff)) && scsi_CDs[dev].ten) 
block778drivers/scsi/sr.ccmd[2] = (unsigned char) (block >> 24) & 0xff;
block779drivers/scsi/sr.ccmd[3] = (unsigned char) (block >> 16) & 0xff;
block780drivers/scsi/sr.ccmd[4] = (unsigned char) (block >> 8) & 0xff;
block781drivers/scsi/sr.ccmd[5] = (unsigned char) block & 0xff;
block794drivers/scsi/sr.ccmd[1] |= (unsigned char) ((block >> 16) & 0x1f);
block795drivers/scsi/sr.ccmd[2] = (unsigned char) ((block >> 8) & 0xff);
block796drivers/scsi/sr.ccmd[3] = (unsigned char) block & 0xff;
block804drivers/scsi/sr.cprintk("ReadCD: %d %d %d %d\n",block, realcount, buffer, this_count);
block431drivers/scsi/u14-34f.csh[j]->block = sh[j];
block87drivers/sound/opl3.cstatic void     freq_to_fnum (int freq, int *block, int *fnum);
block543drivers/sound/opl3.cint             block, fnum, freq, voice_mode;
block720drivers/sound/opl3.cfreq_to_fnum (freq, &block, &fnum);
block731drivers/sound/opl3.cdata = 0x20 | ((block & 0x7) << 2) | ((fnum >> 8) & 0x3);
block741drivers/sound/opl3.cfreq_to_fnum (int freq, int *block, int *fnum)
block779drivers/sound/opl3.c*block = octave;
block1005drivers/sound/opl3.cint             block, fnum, freq;
block1024drivers/sound/opl3.cfreq_to_fnum (freq, &block, &fnum);
block1031drivers/sound/opl3.cdata = 0x20 | ((block & 0x7) << 2) | ((fnum >> 8) & 0x3);  /*
block100drivers/sound/pss.cstatic int      pss_download_boot (unsigned char *block, int size);
block643drivers/sound/pss.cpss_download_boot (unsigned char *block, int size)
block658drivers/sound/pss.cpss_outpw (pss_base + PSS_DATA, *block++);
block688drivers/sound/pss.cpss_outpw (pss_base + PSS_DATA, *block++);
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);
block1522fs/buffer.cstatic unsigned long try_to_generate_cluster(dev_t dev, int block, int size)
block1538fs/buffer.cnblock = block;
block1555fs/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))) {
block177fs/ext/inode.cint ext_bmap(struct inode * inode,int block)
block181fs/ext/inode.cif (block<0) {
block185fs/ext/inode.cif (block >= 9+256+256*256+256*256*256) {
block189fs/ext/inode.cif (block<9)
block190fs/ext/inode.creturn inode_bmap(inode,block);
block191fs/ext/inode.cblock -= 9;
block192fs/ext/inode.cif (block<256) {
block196fs/ext/inode.creturn block_bmap(bread(inode->i_dev,i,BLOCK_SIZE),block);
block198fs/ext/inode.cblock -= 256;
block199fs/ext/inode.cif (block<256*256) {
block203fs/ext/inode.ci = block_bmap(bread(inode->i_dev,i,BLOCK_SIZE),block>>8);
block206fs/ext/inode.creturn block_bmap(bread(inode->i_dev,i,BLOCK_SIZE),block & 255);
block208fs/ext/inode.cblock -= 256*256;
block212fs/ext/inode.ci = block_bmap(bread(inode->i_dev,i,BLOCK_SIZE),block>>16);
block215fs/ext/inode.ci = block_bmap(bread(inode->i_dev,i,BLOCK_SIZE),(block>>8) & 255);
block218fs/ext/inode.creturn block_bmap(bread(inode->i_dev,i,BLOCK_SIZE),block & 255);
block304fs/ext/inode.cstruct buffer_head * ext_getblk(struct inode * inode, int block, int create)
block308fs/ext/inode.cif (block<0) {
block312fs/ext/inode.cif (block >= 9+256+256*256+256*256*256) {
block316fs/ext/inode.cif (block<9)
block317fs/ext/inode.creturn inode_getblk(inode,block,create);
block318fs/ext/inode.cblock -= 9;
block319fs/ext/inode.cif (block<256) {
block321fs/ext/inode.creturn block_getblk(inode,bh,block,create);
block323fs/ext/inode.cblock -= 256;
block324fs/ext/inode.cif (block<256*256) {
block326fs/ext/inode.cbh = block_getblk(inode,bh,block>>8,create);
block327fs/ext/inode.creturn block_getblk(inode,bh,block & 255,create);
block329fs/ext/inode.cblock -= 256*256;
block331fs/ext/inode.cbh = block_getblk(inode,bh,block>>16,create);
block332fs/ext/inode.cbh = block_getblk(inode,bh,(block>>8) & 255,create);
block333fs/ext/inode.creturn block_getblk(inode,bh,block & 255,create);
block336fs/ext/inode.cstruct buffer_head * ext_bread(struct inode * inode, int block, int create)
block340fs/ext/inode.cbh = ext_getblk(inode,block,create);
block355fs/ext/inode.cint block;
block357fs/ext/inode.cblock = 2 + (inode->i_ino-1)/EXT_INODES_PER_BLOCK;
block358fs/ext/inode.cif (!(bh=bread(inode->i_dev, block, BLOCK_SIZE)))
block371fs/ext/inode.celse for (block = 0; block < 12; block++)
block372fs/ext/inode.cinode->u.ext_i.i_data[block] = raw_inode->i_zone[block];
block393fs/ext/inode.cint block;
block395fs/ext/inode.cblock = 2 + (inode->i_ino-1)/EXT_INODES_PER_BLOCK;
block396fs/ext/inode.cif (!(bh=bread(inode->i_dev, block, BLOCK_SIZE)))
block408fs/ext/inode.celse for (block = 0; block < 12; block++)
block409fs/ext/inode.craw_inode->i_zone[block] = inode->u.ext_i.i_data[block];
block167fs/ext2/balloc.cvoid ext2_free_blocks (struct super_block * sb, unsigned long block,
block185fs/ext2/balloc.cif (block < es->s_first_data_block || 
block186fs/ext2/balloc.c(block + count) > es->s_blocks_count) {
block189fs/ext2/balloc.c"block = %lu, count = %lu", block, count);
block194fs/ext2/balloc.cext2_debug ("freeing block %lu\n", block);
block196fs/ext2/balloc.cblock_group = (block - es->s_first_data_block) /
block198fs/ext2/balloc.cbit = (block - es->s_first_data_block) % EXT2_BLOCKS_PER_GROUP(sb);
block203fs/ext2/balloc.cblock, count);
block209fs/ext2/balloc.c(in_range (gdp->bg_block_bitmap, block, count) ||
block210fs/ext2/balloc.cin_range (gdp->bg_inode_bitmap, block, count) ||
block211fs/ext2/balloc.cin_range (block, gdp->bg_inode_table,
block213fs/ext2/balloc.cin_range (block + count - 1, gdp->bg_inode_table,
block218fs/ext2/balloc.cblock, count);
block224fs/ext2/balloc.cblock);
block511fs/ext2/balloc.cstatic inline int block_in_use (unsigned long block,
block515fs/ext2/balloc.creturn test_bit ((block - sb->u.ext2_sb.s_es->s_first_data_block) %
block83fs/ext2/file.cint block, blocks, offset;
block114fs/ext2/file.cblock = offset >> EXT2_BLOCK_SIZE_BITS(sb);
block122fs/ext2/file.cif (block + blocks > size)
block123fs/ext2/file.cblocks = size - block;
block146fs/ext2/file.cif(!clusterblocks) clusterblocks = ext2_getcluster(inode, block);
block150fs/ext2/file.c*bhb = ext2_getblk (inode, block++, 0, &err);
block30fs/ext2/fsync.cstatic int sync_block (struct inode * inode, unsigned long * 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) {
block127fs/ext2/inode.cint ext2_bmap (struct inode * inode, int block)
block132fs/ext2/inode.cif (block < 0) {
block136fs/ext2/inode.cif (block >= EXT2_NDIR_BLOCKS + addr_per_block +
block142fs/ext2/inode.cif (block < EXT2_NDIR_BLOCKS)
block143fs/ext2/inode.creturn inode_bmap (inode, block);
block144fs/ext2/inode.cblock -= EXT2_NDIR_BLOCKS;
block145fs/ext2/inode.cif (block < addr_per_block) {
block150fs/ext2/inode.cinode->i_sb->s_blocksize), block);
block152fs/ext2/inode.cblock -= addr_per_block;
block153fs/ext2/inode.cif (block < addr_per_block * addr_per_block) {
block159fs/ext2/inode.cblock / addr_per_block);
block164fs/ext2/inode.cblock & (addr_per_block - 1));
block166fs/ext2/inode.cblock -= addr_per_block * addr_per_block;
block171fs/ext2/inode.cblock / (addr_per_block * addr_per_block));
block175fs/ext2/inode.c(block / addr_per_block) & (addr_per_block - 1));
block179fs/ext2/inode.cblock & (addr_per_block - 1));
block359fs/ext2/inode.cstruct buffer_head * ext2_getblk (struct inode * inode, long block,
block367fs/ext2/inode.cif (block < 0) {
block371fs/ext2/inode.cif (block > EXT2_NDIR_BLOCKS + addr_per_block  +
block383fs/ext2/inode.cext2_debug ("block %lu, next %lu, goal %lu.\n", block, 
block387fs/ext2/inode.cif (block == inode->u.ext2_i.i_next_alloc_block + 1) {
block393fs/ext2/inode.cb = block;
block394fs/ext2/inode.cif (block < EXT2_NDIR_BLOCKS)
block395fs/ext2/inode.creturn inode_getblk (inode, block, create, b, err);
block396fs/ext2/inode.cblock -= EXT2_NDIR_BLOCKS;
block397fs/ext2/inode.cif (block < addr_per_block) {
block399fs/ext2/inode.creturn block_getblk (inode, bh, block, create,
block402fs/ext2/inode.cblock -= addr_per_block;
block403fs/ext2/inode.cif (block < addr_per_block * addr_per_block) {
block405fs/ext2/inode.cbh = block_getblk (inode, bh, block / addr_per_block, create,
block407fs/ext2/inode.creturn block_getblk (inode, bh, block & (addr_per_block - 1),
block410fs/ext2/inode.cblock -= addr_per_block * addr_per_block;
block412fs/ext2/inode.cbh = block_getblk (inode, bh, block/(addr_per_block * addr_per_block),
block414fs/ext2/inode.cbh = block_getblk (inode, bh, (block/addr_per_block) & (addr_per_block - 1),
block416fs/ext2/inode.creturn block_getblk (inode, bh, block & (addr_per_block - 1), create,
block420fs/ext2/inode.cint ext2_getcluster (struct inode * inode, long block)
block429fs/ext2/inode.cif (block < 0) {
block433fs/ext2/inode.cif (block > EXT2_NDIR_BLOCKS + addr_per_block  +
block441fs/ext2/inode.cb = block;
block442fs/ext2/inode.cif (block < EXT2_NDIR_BLOCKS) return 0;
block444fs/ext2/inode.cblock -= EXT2_NDIR_BLOCKS;
block446fs/ext2/inode.cif (block < addr_per_block) {
block448fs/ext2/inode.creturn block_getcluster (inode, bh, block, 
block451fs/ext2/inode.cblock -= addr_per_block;
block452fs/ext2/inode.cif (block < addr_per_block * addr_per_block) {
block454fs/ext2/inode.cbh = block_getblk (inode, bh, block / addr_per_block, create,
block456fs/ext2/inode.creturn block_getcluster (inode, bh, block & (addr_per_block - 1),
block459fs/ext2/inode.cblock -= addr_per_block * addr_per_block;
block461fs/ext2/inode.cbh = block_getblk (inode, bh, block/(addr_per_block * addr_per_block),
block463fs/ext2/inode.cbh = block_getblk (inode, bh, (block/addr_per_block) & (addr_per_block - 1),
block465fs/ext2/inode.creturn block_getcluster (inode, bh, block & (addr_per_block - 1),
block469fs/ext2/inode.cstruct buffer_head * ext2_bread (struct inode * inode, int block, 
block474fs/ext2/inode.cbh = ext2_getblk (inode, block, create, err);
block493fs/ext2/inode.cunsigned long block;
block514fs/ext2/inode.cblock = gdp[desc].bg_inode_table +
block517fs/ext2/inode.cif (!(bh = bread (inode->i_dev, block, inode->i_sb->s_blocksize)))
block520fs/ext2/inode.c"inode=%lu, block=%lu", inode->i_ino, block);
block551fs/ext2/inode.celse for (block = 0; block < EXT2_N_BLOCKS; block++)
block552fs/ext2/inode.cinode->u.ext2_i.i_data[block] = raw_inode->i_block[block];
block585fs/ext2/inode.cunsigned long block;
block605fs/ext2/inode.cblock = gdp[desc].bg_inode_table +
block608fs/ext2/inode.cif (!(bh = bread (inode->i_dev, block, inode->i_sb->s_blocksize)))
block611fs/ext2/inode.c"inode=%lu, block=%lu", inode->i_ino, block);
block633fs/ext2/inode.celse for (block = 0; block < EXT2_N_BLOCKS; block++)
block634fs/ext2/inode.craw_inode->i_block[block] = inode->u.ext2_i.i_data[block];
block75fs/ext2/namei.cint block, toread, i, err;
block92fs/ext2/namei.cfor (block = 0; block < NAMEI_RA_SIZE; ++block) {
block95fs/ext2/namei.cif ((block << EXT2_BLOCK_SIZE_BITS (sb)) >= dir->i_size)
block97fs/ext2/namei.cbh = ext2_getblk (dir, block, 0, &err);
block98fs/ext2/namei.cbh_use[block] = bh;
block103fs/ext2/namei.cblock = 0;
block110fs/ext2/namei.cif ((block % NAMEI_RA_BLOCKS) == 0 && toread) {
block114fs/ext2/namei.cbh = bh_use[block % NAMEI_RA_SIZE];
block146fs/ext2/namei.cif (((block + NAMEI_RA_SIZE) << EXT2_BLOCK_SIZE_BITS (sb)) >=
block150fs/ext2/namei.cbh = ext2_getblk (dir, block + NAMEI_RA_SIZE, 0, &err);
block151fs/ext2/namei.cbh_use[block++ % NAMEI_RA_SIZE] = bh;
block348fs/ext2/super.cunsigned long block = sb->u.ext2_sb.s_es->s_first_data_block;
block357fs/ext2/super.cif (gdp->bg_block_bitmap < block ||
block358fs/ext2/super.cgdp->bg_block_bitmap >= block + EXT2_BLOCKS_PER_GROUP(sb))
block366fs/ext2/super.cif (gdp->bg_inode_bitmap < block ||
block367fs/ext2/super.cgdp->bg_inode_bitmap >= block + EXT2_BLOCKS_PER_GROUP(sb))
block375fs/ext2/super.cif (gdp->bg_inode_table < block ||
block377fs/ext2/super.cblock + EXT2_BLOCKS_PER_GROUP(sb))
block385fs/ext2/super.cblock += EXT2_BLOCKS_PER_GROUP(sb);
block872fs/hpfs/hpfs_fs.cchar *block;
block903fs/hpfs/hpfs_fs.cblock = map_sector(inode->i_dev, hpfs_bmap(inode, q), &bh);
block904fs/hpfs/hpfs_fs.cif (!block)
block912fs/hpfs/hpfs_fs.cinode->i_hpfs_conv = choose_conv(block + r, n);
block919fs/hpfs/hpfs_fs.cmemcpy_tofs(buf, block + r, n);
block926fs/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);
block72fs/isofs/dir.cunsigned int block,offset,i, j;
block88fs/isofs/dir.cblock = isofs_bmap(inode,filp->f_pos>>bufbits);
block90fs/isofs/dir.cif(!block) return 0;
block92fs/isofs/dir.cif(!(bh = breada(inode->i_dev, block, bufsize, filp->f_pos, inode->i_size)))
block98fs/isofs/dir.cblock, offset, filp->f_pos);
block101fs/isofs/dir.cinode_number = (block << bufbits) + (offset & (bufsize - 1));
block112fs/isofs/dir.cblock = isofs_bmap(inode,(filp->f_pos)>>bufbits);
block113fs/isofs/dir.cif (!block
block114fs/isofs/dir.c|| !(bh = breada(inode->i_dev, block, bufsize, filp->f_pos, 
block138fs/isofs/dir.cblock = isofs_bmap(inode,(filp->f_pos)>> bufbits);
block139fs/isofs/dir.cif (!block
block140fs/isofs/dir.c|| !(bh = breada(inode->i_dev, block, bufsize,
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));
block399fs/isofs/inode.cint isofs_bmap(struct inode * inode,int block)
block402fs/isofs/inode.cif (block<0) {
block406fs/isofs/inode.creturn (inode->u.isofs_i.i_first_extent >> ISOFS_BUFFER_BITS(inode)) + block;
block417fs/isofs/inode.cint block;
block420fs/isofs/inode.cblock = inode->i_ino >> ISOFS_BUFFER_BITS(inode);
block421fs/isofs/inode.cif (!(bh=bread(inode->i_dev,block, bufsize))) {
block444fs/isofs/inode.cif (!(bh = bread(inode->i_dev,++block, bufsize))) {
block516fs/isofs/inode.cprintk("Get inode %d: %d %d: %d\n",inode->i_ino, block, 
block622fs/isofs/inode.cunsigned int block,offset;
block632fs/isofs/inode.cblock = extent << (ISOFS_BLOCK_BITS - bufbits);
block633fs/isofs/inode.cif (!(bh = bread(parent->i_dev, block, bufsize)))  return -1;
block669fs/isofs/inode.cblock = parent_dir << (ISOFS_BLOCK_BITS - bufbits);
block670fs/isofs/inode.cif (!block || !(bh = bread(parent->i_dev,block, bufsize)))
block676fs/isofs/inode.cinode_number = (block << bufbits)+(offset & (bufsize - 1));
block686fs/isofs/inode.cblock++;
block689fs/isofs/inode.cif((block & 1) && (ISOFS_BLOCK_BITS - bufbits))
block691fs/isofs/inode.cif (!block
block692fs/isofs/inode.c|| !(bh = bread(parent->i_dev,block, bufsize)))
block716fs/isofs/inode.cblock++;
block717fs/isofs/inode.cif(!(bh = bread(parent->i_dev,block,bufsize))) {
block768fs/isofs/inode.cstruct buffer_head * leak_check_bread(int dev, int block, int size){
block770fs/isofs/inode.creturn bread(dev, block, size);
block70fs/isofs/namei.cunsigned int block, i, f_pos, offset, inode_number;
block84fs/isofs/namei.cif (!(block = dir->u.isofs_i.i_first_extent)) return NULL;
block89fs/isofs/namei.cblock = isofs_bmap(dir,f_pos >> bufbits);
block91fs/isofs/namei.cif (!block || !(bh = bread(dir->i_dev,block,bufsize))) return NULL;
block96fs/isofs/namei.cinode_number = (block << bufbits) + (offset & (bufsize - 1));
block106fs/isofs/namei.cblock = isofs_bmap(dir,f_pos>>bufbits);
block107fs/isofs/namei.cif (!block || !(bh = bread(dir->i_dev,block,bufsize)))
block128fs/isofs/namei.cblock = isofs_bmap(dir,f_pos>>bufbits);
block129fs/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)); \
block404fs/isofs/rock.cint block;
block416fs/isofs/rock.cblock = inode->i_ino >> bufbits;
block417fs/isofs/rock.cif (!(bh=bread(inode->i_dev,block, bufsize))) {
block435fs/isofs/rock.cif (!(bh = bread(inode->i_dev,++block, bufsize))) {
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) {
block258fs/minix/inode.cint minix_bmap(struct inode * inode,int block)
block262fs/minix/inode.cif (block<0) {
block266fs/minix/inode.cif (block >= 7+512+512*512) {
block270fs/minix/inode.cif (block < 7)
block271fs/minix/inode.creturn inode_bmap(inode,block);
block272fs/minix/inode.cblock -= 7;
block273fs/minix/inode.cif (block < 512) {
block277fs/minix/inode.creturn block_bmap(bread(inode->i_dev,i,BLOCK_SIZE),block);
block279fs/minix/inode.cblock -= 512;
block283fs/minix/inode.ci = block_bmap(bread(inode->i_dev,i,BLOCK_SIZE),block>>9);
block286fs/minix/inode.creturn block_bmap(bread(inode->i_dev,i,BLOCK_SIZE),block & 511);
block372fs/minix/inode.cstruct buffer_head * minix_getblk(struct inode * inode, int block, int create)
block376fs/minix/inode.cif (block<0) {
block380fs/minix/inode.cif (block >= 7+512+512*512) {
block384fs/minix/inode.cif (block < 7)
block385fs/minix/inode.creturn inode_getblk(inode,block,create);
block386fs/minix/inode.cblock -= 7;
block387fs/minix/inode.cif (block < 512) {
block389fs/minix/inode.creturn block_getblk(inode, bh, block, create);
block391fs/minix/inode.cblock -= 512;
block393fs/minix/inode.cbh = block_getblk(inode, bh, block>>9, create);
block394fs/minix/inode.creturn block_getblk(inode, bh, block & 511, create);
block397fs/minix/inode.cstruct buffer_head * minix_bread(struct inode * inode, int block, int create)
block401fs/minix/inode.cbh = minix_getblk(inode,block,create);
block416fs/minix/inode.cint block, ino;
block426fs/minix/inode.cblock = 2 + inode->i_sb->u.minix_sb.s_imap_blocks +
block429fs/minix/inode.cif (!(bh=bread(inode->i_dev,block, BLOCK_SIZE))) {
block445fs/minix/inode.celse for (block = 0; block < 9; block++)
block446fs/minix/inode.cinode->u.minix_i.i_data[block] = raw_inode->i_zone[block];
block466fs/minix/inode.cint ino, block;
block475fs/minix/inode.cblock = 2 + inode->i_sb->u.minix_sb.s_imap_blocks + inode->i_sb->u.minix_sb.s_zmap_blocks +
block477fs/minix/inode.cif (!(bh=bread(inode->i_dev, block, BLOCK_SIZE))) {
block492fs/minix/inode.celse for (block = 0; block < 9; block++)
block493fs/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);
block337fs/msdos/inode.cint msdos_bmap(struct inode *inode,int block)
block344fs/msdos/inode.creturn sb->dir_start + block;
block346fs/msdos/inode.ccluster = block/sb->cluster_size;
block347fs/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))) {
block583fs/sysv/inode.cunsigned int block = block_nr;
block589fs/sysv/inode.cif (block < 10)
block590fs/sysv/inode.creturn inode_bmap(sb,inode,block);
block591fs/sysv/inode.cblock -= 10;
block593fs/sysv/inode.cif (block < sb->sv_ind_per_block) {
block598fs/sysv/inode.creturn block_bmap(sb, bh, block, convert);
block600fs/sysv/inode.cblock -= sb->sv_ind_per_block;
block601fs/sysv/inode.cif (block < sb->sv_ind_per_block_2) {
block606fs/sysv/inode.ci = block_bmap(sb, bh, block >> sb->sv_ind_per_block_bits, convert);
block610fs/sysv/inode.creturn block_bmap(sb, bh, block & sb->sv_ind_per_block_1, convert);
block612fs/sysv/inode.cblock -= sb->sv_ind_per_block_2;
block613fs/sysv/inode.cif (block < sb->sv_ind_per_block_3) {
block618fs/sysv/inode.ci = block_bmap(sb, bh, block >> sb->sv_ind_per_block_2_bits, convert);
block622fs/sysv/inode.ci = block_bmap(sb, bh, (block >> sb->sv_ind_per_block_bits) & sb->sv_ind_per_block_1,convert);
block626fs/sysv/inode.creturn block_bmap(sb, bh, block & sb->sv_ind_per_block_1, convert);
block628fs/sysv/inode.cif ((int)block<0) {
block680fs/sysv/inode.cunsigned long tmp, block;
block697fs/sysv/inode.cblock = tmp = *p;
block699fs/sysv/inode.cblock = from_coh_ulong(block);
block701fs/sysv/inode.cresult = sv_getblk(sb, bh->b_dev, block);
block713fs/sysv/inode.cblock = sysv_new_block(sb);
block714fs/sysv/inode.cif (!block) {
block718fs/sysv/inode.cresult = sv_getblk(sb, bh->b_dev, block);
block720fs/sysv/inode.csysv_free_block(sb,block);
block724fs/sysv/inode.c*p = (sb->sv_convert ? to_coh_ulong(block) : block);
block730fs/sysv/inode.cstruct buffer_head * sysv_getblk(struct inode * inode, unsigned int block, int create)
block735fs/sysv/inode.cif (block < 10)
block736fs/sysv/inode.creturn inode_getblk(inode,block,create);
block737fs/sysv/inode.cblock -= 10;
block738fs/sysv/inode.cif (block < sb->sv_ind_per_block) {
block740fs/sysv/inode.creturn block_getblk(inode, bh, block, create);
block742fs/sysv/inode.cblock -= sb->sv_ind_per_block;
block743fs/sysv/inode.cif (block < sb->sv_ind_per_block_2) {
block745fs/sysv/inode.cbh = block_getblk(inode, bh, block >> sb->sv_ind_per_block_bits, create);
block746fs/sysv/inode.creturn block_getblk(inode, bh, block & sb->sv_ind_per_block_1, create);
block748fs/sysv/inode.cblock -= sb->sv_ind_per_block_2;
block749fs/sysv/inode.cif (block < sb->sv_ind_per_block_3) {
block751fs/sysv/inode.cbh = block_getblk(inode, bh, block >> sb->sv_ind_per_block_2_bits, create);
block752fs/sysv/inode.cbh = block_getblk(inode, bh, (block >> sb->sv_ind_per_block_bits) & sb->sv_ind_per_block_1, create);
block753fs/sysv/inode.creturn block_getblk(inode, bh, block & sb->sv_ind_per_block_1, create);
block755fs/sysv/inode.cif ((int)block<0) {
block763fs/sysv/inode.cstruct buffer_head * sysv_file_bread(struct inode * inode, int block, int create)
block767fs/sysv/inode.cbh = sysv_getblk(inode,block,create);
block808fs/sysv/inode.cunsigned int block, ino;
block819fs/sysv/inode.cblock = sb->sv_firstinodezone + ((ino-1) >> sb->sv_inodes_per_block_bits);
block820fs/sysv/inode.cif (!(bh = sv_bread(sb,inode->i_dev,block))) {
block850fs/sysv/inode.cfor (block = 0; block < 10+1+1+1; block++)
block851fs/sysv/inode.cinode->u.sysv_i.i_data[block] =
block852fs/sysv/inode.ccoh_read3byte(&raw_inode->i_a.i_addb[3*block]);
block854fs/sysv/inode.cfor (block = 0; block < 10+1+1+1; block++)
block855fs/sysv/inode.cinode->u.sysv_i.i_data[block] =
block856fs/sysv/inode.cread3byte(&raw_inode->i_a.i_addb[3*block]);
block895fs/sysv/inode.cunsigned int ino, block;
block905fs/sysv/inode.cblock = sb->sv_firstinodezone + ((ino-1) >> sb->sv_inodes_per_block_bits);
block906fs/sysv/inode.cif (!(bh = sv_bread(sb,inode->i_dev,block))) {
block934fs/sysv/inode.cfor (block = 0; block < 10+1+1+1; block++)
block935fs/sysv/inode.ccoh_write3byte(&raw_inode->i_a.i_addb[3*block],inode->u.sysv_i.i_data[block]);
block937fs/sysv/inode.cfor (block = 0; block < 10+1+1+1; block++)
block938fs/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) {
block445include/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);
block467include/linux/fs.hextern int bmap(struct inode * inode,int block);
block484include/linux/fs.hextern struct buffer_head * get_hash_table(dev_t dev, int block, int size);
block485include/linux/fs.hextern struct buffer_head * getblk(dev_t dev, int block, int size);
block492include/linux/fs.hextern struct buffer_head * bread(dev_t dev, int block, int size);
block494include/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);
block164include/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);
block35mm/filemap.cunsigned int block;
block40mm/filemap.cblock = address - area->vm_start + area->vm_offset;
block41mm/filemap.cblock >>= inode->i_sb->s_blocksize_bits;
block45mm/filemap.c*p = bmap(inode,block);
block47mm/filemap.cblock++;
block157mm/swap.cunsigned int block = offset << 3;
block160mm/swap.cif (!(zones[i] = swapf->i_op->smap(swapf,block++))) {
block167mm/swap.cunsigned int block = offset
block171mm/swap.cif (!(zones[i] = bmap(swapf,block++))) {