taglinefilesource code
block71drivers/block/blk.h#define SUBSECTOR(block) (CURRENT->current_nr_sectors > 0)
block847drivers/block/cdu31a.cint block;
block876drivers/block/cdu31a.cblock = CURRENT->sector;
block891drivers/block/cdu31a.cif ((block / 4) >= sony_toc->lead_out_start_lba)
block896drivers/block/cdu31a.cif (((block + nsect) / 4) >= sony_toc->lead_out_start_lba)
block908drivers/block/cdu31a.cif ((block < sony_first_block) || (block > sony_last_block))
block910drivers/block/cdu31a.csony_first_block = (block / 4) * 4;
block911drivers/block/cdu31a.clog_to_msf(block/4, params);
block917drivers/block/cdu31a.cif (((block / 4) + sony_buffer_sectors) >= sony_toc->lead_out_start_lba)
block920drivers/block/cdu31a.cread_size = sony_toc->lead_out_start_lba - (block / 4);
block957drivers/block/cdu31a.ccopyoff = (block - sony_first_block) * 512;
block960drivers/block/cdu31a.cblock += 1;
block996drivers/block/floppy.cunsigned int block;
block1044drivers/block/floppy.cblock = CURRENT->sector;
block1045drivers/block/floppy.cif (block+2 > floppy->size) {
block1049drivers/block/floppy.csector = block % floppy->sect;
block1050drivers/block/floppy.cblock /= floppy->sect;
block1051drivers/block/floppy.chead = block % floppy->head;
block1052drivers/block/floppy.ctrack = block / floppy->head;
block451drivers/block/hd.cunsigned int block,dev;
block464drivers/block/hd.cblock = CURRENT->sector;
block466drivers/block/hd.cif (dev >= (NR_HD<<6) || block >= hd[dev].nr_sects) {
block469drivers/block/hd.cblock, hd[dev].nr_sects);
block474drivers/block/hd.cblock += hd[dev].start_sect;
block476drivers/block/hd.csec = block % hd_info[dev].sect + 1;
block477drivers/block/hd.ctrack = block / hd_info[dev].sect;
block537drivers/block/mcd.cunsigned int block,dev;
block544drivers/block/mcd.cblock = CURRENT->sector;
block649drivers/block/mcd.clong block;
block674drivers/block/mcd.cblock = CURRENT -> sector / 4;
block675drivers/block/mcd.chsg2msf(block, &mcdcmd.start);  /* cvt to msf format */
block106drivers/block/ramdisk.cint    block, tries;
block128drivers/block/ramdisk.cblock = tries;
block129drivers/block/ramdisk.cbh = breada(ROOT_DEV,block+1,block,block+2,-1);
block157drivers/block/ramdisk.cbh = breada(ROOT_DEV, block, block+1, block+2, -1);
block159drivers/block/ramdisk.cbh = bread(ROOT_DEV, block, BLOCK_SIZE);
block162drivers/block/ramdisk.cblock);
block169drivers/block/ramdisk.cblock++;
block177drivers/block/xd.cu_int block,count,retry;
block185drivers/block/xd.cblock = CURRENT->sector + xd[MINOR(CURRENT->dev)].start_sect;
block191drivers/block/xd.ccode = xd_readwrite(CURRENT->cmd,CURRENT_DEV,CURRENT->buffer,block,count);
block278drivers/block/xd.cstatic int xd_readwrite (u_char operation,u_char drive,char *buffer,u_int block,u_int count)
block285drivers/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);
block292drivers/block/xd.ctrack = block / xd_info[drive].sectors;
block295drivers/block/xd.csector = block % xd_info[drive].sectors;
block318drivers/block/xd.ccount -= temp, buffer += temp * 0x200, block += temp;
block52drivers/scsi/scsi_debug.cif ((bh->b_blocknr << 1) + start != block)           \
block53drivers/scsi/scsi_debug.c{  printk("Wrong bh block# %d %d ",bh->b_blocknr, block);  \
block73drivers/scsi/scsi_debug.cif (SCpnt->request.sector + start != block) panic("Wrong block.");  \
block77drivers/scsi/scsi_debug.cif ((SCpnt->request.bh->b_blocknr << 1) + start != block)           \
block78drivers/scsi/scsi_debug.c{  printk("Wrong bh block# %d %d ",SCpnt->request.bh->b_blocknr, block);  \
block141drivers/scsi/scsi_debug.cint block, start;
block218drivers/scsi/scsi_debug.cblock = cmd[5] + (cmd[4] << 8) + (cmd[3] << 16) + (cmd[2] << 24); 
block220drivers/scsi/scsi_debug.cblock = cmd[3] + (cmd[2] << 8) + ((cmd[1] & 0x1f) << 16);
block237drivers/scsi/scsi_debug.cif(block == 0 && target == 0) {
block252drivers/scsi/scsi_debug.cif (SCpnt->use_sg) printk("Block %x (%d %d)\n",block, SCpnt->request.nr_sectors,
block256drivers/scsi/scsi_debug.cif(block == 0xfff0) {
block276drivers/scsi/scsi_debug.cmemcpy(buff+60, &block, sizeof(block));
block281drivers/scsi/scsi_debug.cblock += bufflen >> 9;
block300drivers/scsi/scsi_debug.cblock = cmd[5] + (cmd[4] << 8) + (cmd[3] << 16) + (cmd[2] << 24); 
block302drivers/scsi/scsi_debug.cblock = cmd[3] + (cmd[2] << 8) + ((cmd[1] & 0x1f) << 16);
block312drivers/scsi/scsi_debug.cif (block != *((unsigned long *) (buff+60))) {
block313drivers/scsi/scsi_debug.cprintk("%x %x :",block,  *((unsigned long *) (buff+60)));
block382drivers/scsi/sd.cint dev, block, this_count;
block394drivers/scsi/sd.cblock = SCpnt->request.sector;
block398drivers/scsi/sd.cprintk("Doing sd request, dev = %d, block = %d\n", dev, block);
block401drivers/scsi/sd.cif (dev >= (NR_SD << 4) || block + SCpnt->request.nr_sectors > sd[dev].nr_sects)
block407drivers/scsi/sd.cblock += sd[dev].start_sect;
block421drivers/scsi/sd.cprintk("sd%d : real dev = /dev/sd%d, block = %d\n", MINOR(SCpnt->request.dev), dev, block);
block565drivers/scsi/sd.cif(block & 1) panic("sd.c:Bad block number requested");
block567drivers/scsi/sd.cblock = block >> 1;
block572drivers/scsi/sd.cblock = block << 1;
block576drivers/scsi/sd.cif (((this_count > 0xff) ||  (block > 0x1fffff)) && rscsi_disks[dev].ten)
block582drivers/scsi/sd.ccmd[2] = (unsigned char) (block >> 24) & 0xff;
block583drivers/scsi/sd.ccmd[3] = (unsigned char) (block >> 16) & 0xff;
block584drivers/scsi/sd.ccmd[4] = (unsigned char) (block >> 8) & 0xff;
block585drivers/scsi/sd.ccmd[5] = (unsigned char) block & 0xff;
block595drivers/scsi/sd.ccmd[1] |= (unsigned char) ((block >> 16) & 0x1f);
block596drivers/scsi/sd.ccmd[2] = (unsigned char) ((block >> 8) & 0xff);
block597drivers/scsi/sd.ccmd[3] = (unsigned char) block & 0xff;
block343drivers/scsi/sr.cunsigned int dev, block, realcount;
block356drivers/scsi/sr.cblock = SCpnt->request.sector;  
block536drivers/scsi/sr.cstart = block % 4;
block558drivers/scsi/sr.cblock = block >> 2; /* These are the sectors that the cdrom uses */
block560drivers/scsi/sr.cblock = block & 0xfffffffc;
block566drivers/scsi/sr.cif (((realcount > 0xff) || (block > 0x1fffff)) && scsi_CDs[dev].ten) 
block575drivers/scsi/sr.ccmd[2] = (unsigned char) (block >> 24) & 0xff;
block576drivers/scsi/sr.ccmd[3] = (unsigned char) (block >> 16) & 0xff;
block577drivers/scsi/sr.ccmd[4] = (unsigned char) (block >> 8) & 0xff;
block578drivers/scsi/sr.ccmd[5] = (unsigned char) block & 0xff;
block591drivers/scsi/sr.ccmd[1] |= (unsigned char) ((block >> 16) & 0x1f);
block592drivers/scsi/sr.ccmd[2] = (unsigned char) ((block >> 8) & 0xff);
block593drivers/scsi/sr.ccmd[3] = (unsigned char) block & 0xff;
block601drivers/scsi/sr.cprintk("ReadCD: %d %d %d %d\n",block, realcount, buffer, this_count);
block77drivers/sound/opl3.cstatic void     freq_to_fnum (int freq, int *block, int *fnum);
block432drivers/sound/opl3.cint             block, fnum, freq, voice_mode;
block567drivers/sound/opl3.cfreq_to_fnum (freq, &block, &fnum);
block574drivers/sound/opl3.cdata = 0x20 | ((block & 0x7) << 2) | ((fnum >> 8) & 0x3);
block584drivers/sound/opl3.cfreq_to_fnum (int freq, int *block, int *fnum)
block618drivers/sound/opl3.c*block = octave;
block827drivers/sound/opl3.cint             block, fnum, freq;
block850drivers/sound/opl3.cfreq_to_fnum (freq, &block, &fnum);
block855drivers/sound/opl3.cdata = 0x20 | ((block & 0x7) << 2) | ((fnum >> 8) & 0x3);  /* KEYON|OCTAVE|MS bits
block20fs/block_dev.cint block;
block41fs/block_dev.cblock = filp->f_pos >> blocksize_bits;
block49fs/block_dev.cif (block >= size)
block55fs/block_dev.cbh = getblk(dev, block, blocksize);
block57fs/block_dev.cbh = breada(dev,block,block+1,block+2,-1);
block58fs/block_dev.cblock++;
block80fs/block_dev.cunsigned int block;
block121fs/block_dev.cblock = offset >> blocksize_bits;
block128fs/block_dev.cif (block + blocks > size)
block129fs/block_dev.cblocks = size - block;
block147fs/block_dev.c*bhb = getblk(dev, block++, blocksize);
block279fs/buffer.c#define _hashfn(dev,block) (((unsigned)(dev^block))%NR_HASH)
block280fs/buffer.c#define hash(dev,block) hash_table[_hashfn(dev,block)]
block357fs/buffer.cstatic struct buffer_head * find_buffer(dev_t dev, int block, int size)
block361fs/buffer.cfor (tmp = hash(dev,block) ; tmp != NULL ; tmp = tmp->b_next)
block362fs/buffer.cif (tmp->b_dev==dev && tmp->b_blocknr==block)
block380fs/buffer.cstruct buffer_head * get_hash_table(dev_t dev, int block, int size)
block385fs/buffer.cif (!(bh=find_buffer(dev,block,size)))
block389fs/buffer.cif (bh->b_dev == dev && bh->b_blocknr == block && bh->b_size == size)
block447fs/buffer.cstruct buffer_head * getblk(dev_t dev, int block, int size)
block454fs/buffer.cbh = get_hash_table(dev, block, size);
block507fs/buffer.cif (find_buffer(dev,block,size))
block517fs/buffer.cbh->b_blocknr=block;
block540fs/buffer.cstruct buffer_head * bread(dev_t dev, int block, int size)
block544fs/buffer.cif (!(bh = getblk(dev, block, size))) {
block707fs/buffer.cint block;
block719fs/buffer.cblock = *++b;
block720fs/buffer.cif (!block)
block722fs/buffer.cfirst = get_hash_table(dev, block, size);
block748fs/buffer.cint block;
block755fs/buffer.cblock = *(p++);
block756fs/buffer.cif (!block)
block758fs/buffer.ctmp = get_hash_table(dev, block, size);
block766fs/buffer.cblock = 0;
block768fs/buffer.carr[block++] = bh;
block784fs/buffer.cread_buffers(arr,block);
block785fs/buffer.cwhile (block-- > 0)
block786fs/buffer.cbrelse(arr[block]);
block812fs/buffer.cint block;
block814fs/buffer.cblock = b[0];
block815fs/buffer.cif (!block)
block817fs/buffer.cbh = get_hash_table(dev, block, size);
block75fs/ext/file.cint block, blocks, offset;
block101fs/ext/file.cblock = offset >> BLOCK_SIZE_BITS;
block108fs/ext/file.cif (block + blocks > size)
block109fs/ext/file.cblocks = size - block;
block127fs/ext/file.c*bhb = ext_getblk(inode, block++, 0);
block47fs/ext/freelists.cvoid ext_free_block(struct super_block * sb, int block)
block57fs/ext/freelists.cif (block < sb->u.ext_sb.s_firstdatazone ||
block58fs/ext/freelists.cblock >= sb->u.ext_sb.s_nzones) {
block62fs/ext/freelists.cbh = get_hash_table(sb->s_dev, block, sb->s_blocksize);
block70fs/ext/freelists.cprintk("ext_free_block: block full, skipping to %d\n", block);
block75fs/ext/freelists.cblock, sb->s_blocksize)))
block80fs/ext/freelists.csb->u.ext_sb.s_firstfreeblocknumber = block;
block82fs/ext/freelists.cefb->free[efb->count++] = block;
block152fs/ext/freelists.cunsigned long count, block;
block160fs/ext/freelists.cblock = efb->next;
block161fs/ext/freelists.cwhile (block) {
block162fs/ext/freelists.cif (!(bh = bread (sb->s_dev, block, sb->s_blocksize))) {
block164fs/ext/freelists.cblock = 0;
block168fs/ext/freelists.cblock = efb->next;
block187fs/ext/freelists.cunsigned long block;
block228fs/ext/freelists.cblock = 2 + (ino - 1) / EXT_INODES_PER_BLOCK;
block229fs/ext/freelists.cif (!(bh = bread(dev, block, sb->s_blocksize)))
block251fs/ext/freelists.cunsigned long block;
block277fs/ext/freelists.cblock = 2 + (((unsigned long) efi->next) - 1) / EXT_INODES_PER_BLOCK;
block283fs/ext/freelists.cbread(sb->s_dev, block, sb->s_blocksize)))
block312fs/ext/freelists.cunsigned long count, block, ino;
block328fs/ext/freelists.cblock = 2 + ((ino - 1) / EXT_INODES_PER_BLOCK);
block329fs/ext/freelists.cif (!(bh = bread (sb->s_dev, block, sb->s_blocksize))) {
block331fs/ext/freelists.cblock = 0;
block31fs/ext/fsync.cstatic int sync_block (struct inode * inode, unsigned long * block, int wait)
block36fs/ext/fsync.cif (!*block)
block38fs/ext/fsync.ctmp = *block;
block39fs/ext/fsync.cbh = get_hash_table(inode->i_dev, *block, blocksize);
block42fs/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];
block228fs/ext2/balloc.cvoid ext2_free_block (struct super_block * sb, unsigned long block)
block246fs/ext2/balloc.cif (block < es->s_first_data_block || block >= es->s_blocks_count) {
block252fs/ext2/balloc.cext2_debug ("freeing block %lu\n", block);
block255fs/ext2/balloc.cbh = get_hash_table (sb->s_dev, block, sb->s_blocksize);
block260fs/ext2/balloc.cblock_group = (block - es->s_first_data_block) /
block262fs/ext2/balloc.cbit = (block - es->s_first_data_block) % EXT2_BLOCKS_PER_GROUP(sb);
block271fs/ext2/balloc.c"bit already cleared for block %lu", block);
block77fs/ext2/file.cint block, blocks, offset;
block107fs/ext2/file.cblock = offset >> EXT2_BLOCK_SIZE_BITS(sb);
block115fs/ext2/file.cif (block + blocks > size)
block116fs/ext2/file.cblocks = size - block;
block134fs/ext2/file.c*bhb = ext2_getblk (inode, block++, 0, &err);
block28fs/ext2/fsync.cstatic int sync_block (struct inode * inode, unsigned long * block, int wait)
block33fs/ext2/fsync.cif (!*block)
block35fs/ext2/fsync.ctmp = *block;
block36fs/ext2/fsync.cbh = get_hash_table (inode->i_dev, *block, blocksize);
block39fs/ext2/fsync.cif (*block != tmp) {
block51fs/ext2/inode.cint ext2_bmap (struct inode * inode, int block)
block56fs/ext2/inode.cif (block < 0) {
block60fs/ext2/inode.cif (block >= EXT2_NDIR_BLOCKS + addr_per_block +
block66fs/ext2/inode.cif (block < EXT2_NDIR_BLOCKS)
block67fs/ext2/inode.creturn inode_bmap (inode, block);
block68fs/ext2/inode.cblock -= EXT2_NDIR_BLOCKS;
block69fs/ext2/inode.cif (block < addr_per_block) {
block74fs/ext2/inode.cinode->i_sb->s_blocksize), block);
block76fs/ext2/inode.cblock -= addr_per_block;
block77fs/ext2/inode.cif (block < addr_per_block * addr_per_block) {
block83fs/ext2/inode.cblock / addr_per_block);
block88fs/ext2/inode.cblock & (addr_per_block - 1));
block90fs/ext2/inode.cblock -= addr_per_block * addr_per_block;
block95fs/ext2/inode.cblock / (addr_per_block * addr_per_block));
block99fs/ext2/inode.c(block / addr_per_block) & (addr_per_block - 1));
block103fs/ext2/inode.cblock & (addr_per_block - 1));
block248fs/ext2/inode.cstruct buffer_head * ext2_getblk (struct inode * inode, long block,
block256fs/ext2/inode.cif (block < 0) {
block260fs/ext2/inode.cif (block > EXT2_NDIR_BLOCKS + addr_per_block  +
block270fs/ext2/inode.cext2_debug ("block %lu, next %lu, goal %lu.\n", block, 
block274fs/ext2/inode.cif (block == inode->u.ext2_i.i_next_alloc_block + 1) {
block280fs/ext2/inode.cb = block;
block281fs/ext2/inode.cif (block < EXT2_NDIR_BLOCKS)
block282fs/ext2/inode.creturn inode_getblk (inode, block, create, b, err);
block283fs/ext2/inode.cblock -= EXT2_NDIR_BLOCKS;
block284fs/ext2/inode.cif (block < addr_per_block) {
block286fs/ext2/inode.creturn block_getblk (inode, bh, block, create,
block289fs/ext2/inode.cblock -= addr_per_block;
block290fs/ext2/inode.cif (block < addr_per_block * addr_per_block) {
block292fs/ext2/inode.cbh = block_getblk (inode, bh, block / addr_per_block, create,
block294fs/ext2/inode.creturn block_getblk (inode, bh, block & (addr_per_block - 1),
block297fs/ext2/inode.cblock -= addr_per_block * addr_per_block;
block299fs/ext2/inode.cbh = block_getblk (inode, bh, block/(addr_per_block * addr_per_block),
block301fs/ext2/inode.cbh = block_getblk (inode, bh, (block/addr_per_block) & (addr_per_block - 1),
block303fs/ext2/inode.creturn block_getblk (inode, bh, block & (addr_per_block - 1), create,
block307fs/ext2/inode.cstruct buffer_head * ext2_bread (struct inode * inode, int block, 
block312fs/ext2/inode.cbh = ext2_getblk (inode, block, create, err);
block331fs/ext2/inode.cunsigned long block;
block352fs/ext2/inode.cblock = gdp[desc].bg_inode_table +
block355fs/ext2/inode.cif (!(bh = bread (inode->i_dev, block, inode->i_sb->s_blocksize)))
block358fs/ext2/inode.c"inode=%lu, block=%lu", inode->i_ino, block);
block384fs/ext2/inode.celse for (block = 0; block < EXT2_N_BLOCKS; block++)
block385fs/ext2/inode.cinode->u.ext2_i.i_data[block] = raw_inode->i_block[block];
block414fs/ext2/inode.cunsigned long block;
block434fs/ext2/inode.cblock = gdp[desc].bg_inode_table +
block437fs/ext2/inode.cif (!(bh = bread (inode->i_dev, block, inode->i_sb->s_blocksize)))
block440fs/ext2/inode.c"inode=%lu, block=%lu", inode->i_ino, block);
block462fs/ext2/inode.celse for (block = 0; block < EXT2_N_BLOCKS; block++)
block463fs/ext2/inode.craw_inode->i_block[block] = inode->u.ext2_i.i_data[block];
block867fs/hpfs/hpfs_fs.cchar *block;
block898fs/hpfs/hpfs_fs.cblock = map_sector(inode->i_dev, hpfs_bmap(inode, q), &bh);
block899fs/hpfs/hpfs_fs.cif (!block)
block907fs/hpfs/hpfs_fs.cinode->i_hpfs_conv = choose_conv(block + r, n);
block914fs/hpfs/hpfs_fs.cmemcpy_tofs(buf, block + r, n);
block921fs/hpfs/hpfs_fs.cn0 = convcpy_tofs(buf, block + r, n);
block258fs/inode.cint bmap(struct inode * inode, int block)
block261fs/inode.creturn inode->i_op->bmap(inode,block);
block19fs/ioctl.cint block;
block30fs/ioctl.cblock = get_fs_long((long *) arg);
block31fs/ioctl.cblock = filp->f_inode->i_op->bmap(filp->f_inode,block);
block32fs/ioctl.cput_fs_long(block,(long *) arg);
block69fs/isofs/dir.cunsigned int block,offset,i, j;
block83fs/isofs/dir.cblock = isofs_bmap(inode,filp->f_pos>>bufbits);
block84fs/isofs/dir.cif (!block || !(bh = bread(inode->i_dev,block,bufsize)))
block90fs/isofs/dir.cblock, offset, filp->f_pos);
block93fs/isofs/dir.cinode_number = (block << bufbits) + (offset & (bufsize - 1));
block104fs/isofs/dir.cblock = isofs_bmap(inode,(filp->f_pos)>>bufbits);
block105fs/isofs/dir.cif (!block
block106fs/isofs/dir.c|| !(bh = bread(inode->i_dev,block,bufsize)))
block127fs/isofs/dir.cblock = isofs_bmap(inode,(filp->f_pos)>> bufbits);
block128fs/isofs/dir.cif (!block
block129fs/isofs/dir.c|| !(bh = bread(inode->i_dev,block,bufsize))) {
block91fs/isofs/file.cint block;
block96fs/isofs/file.cblock = isofs_bmap(inode,0);
block97fs/isofs/file.cif (block && (bh = bread(inode->i_dev,block, ISOFS_BUFFER_SIZE(inode)))) {
block117fs/isofs/file.cint block, blocks, offset;
block143fs/isofs/file.cblock = filp->f_pos >> ISOFS_BUFFER_BITS(inode);
block167fs/isofs/file.c*bhb = getblk(inode->i_dev,isofs_bmap(inode, block++), ISOFS_BUFFER_SIZE(inode));
block190fs/isofs/file.cif (block >= max_block) break;
block193fs/isofs/file.c*bhb = getblk(inode->i_dev,isofs_bmap(inode, block++), ISOFS_BUFFER_SIZE(inode));
block312fs/isofs/inode.cint isofs_bmap(struct inode * inode,int block)
block315fs/isofs/inode.cif (block<0) {
block319fs/isofs/inode.creturn inode->u.isofs_i.i_first_extent + block;
block330fs/isofs/inode.cint block;
block333fs/isofs/inode.cblock = inode->i_ino >> ISOFS_BUFFER_BITS(inode);
block334fs/isofs/inode.cif (!(bh=bread(inode->i_dev,block, bufsize)))
block346fs/isofs/inode.cif (!(bh = bread(inode->i_dev,++block, bufsize)))
block426fs/isofs/inode.cprintk("Get inode %d: %d %d: %d\n",inode->i_ino, block, 
block507fs/isofs/inode.cunsigned int block,offset;
block516fs/isofs/inode.cblock = extent << (ISOFS_BLOCK_BITS - bufbits);
block517fs/isofs/inode.cif (!(bh = bread(parent->i_dev, block, bufsize)))  return -1;
block554fs/isofs/inode.cblock = parent_dir << (ISOFS_BLOCK_BITS - bufbits);
block555fs/isofs/inode.cif (!block || !(bh = bread(parent->i_dev,block, bufsize)))
block561fs/isofs/inode.cinode_number = (block << bufbits)+(offset & (bufsize - 1));
block571fs/isofs/inode.cblock++;
block572fs/isofs/inode.cif(block & 1) return -1;
block573fs/isofs/inode.cif (!block
block574fs/isofs/inode.c|| !(bh = bread(parent->i_dev,block, bufsize)))
block588fs/isofs/inode.cif((block & 1) != 0) return -1;
block595fs/isofs/inode.cblock++;
block596fs/isofs/inode.cif (!(bh = bread(parent->i_dev,block,bufsize))) {
block647fs/isofs/inode.cstruct buffer_head * leak_check_bread(int dev, int block, int size){
block649fs/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)))
block124fs/isofs/namei.cblock = isofs_bmap(dir,f_pos>>bufbits);
block125fs/isofs/namei.cif (!block || !(bh = bread(dir->i_dev,block,bufsize))) {
block56fs/isofs/rock.cint block, offset; \
block59fs/isofs/rock.cblock = cont_extent; \
block62fs/isofs/rock.cblock <<= 1;    \
block63fs/isofs/rock.cif (offset >= 1024) block++; \
block66fs/isofs/rock.cbh = bread(DEV->i_dev, block, ISOFS_BUFFER_SIZE(DEV)); \
block378fs/isofs/rock.cint block;
block390fs/isofs/rock.cblock = inode->i_ino >> bufbits;
block391fs/isofs/rock.cif (!(bh=bread(inode->i_dev,block, bufsize)))
block402fs/isofs/rock.cif (!(bh = bread(inode->i_dev,++block, bufsize)))
block68fs/minix/bitmap.cvoid minix_free_block(struct super_block * sb, int block)
block77fs/minix/bitmap.cif (block < sb->u.minix_sb.s_firstdatazone ||
block78fs/minix/bitmap.cblock >= sb->u.minix_sb.s_nzones) {
block82fs/minix/bitmap.cbh = get_hash_table(sb->s_dev,block,BLOCK_SIZE);
block86fs/minix/bitmap.czone = block - sb->u.minix_sb.s_firstdatazone + 1;
block95fs/minix/bitmap.cprintk("free_block (%04x:%d): bit already cleared\n",sb->s_dev,block);
block69fs/minix/file.cint block, blocks, offset;
block95fs/minix/file.cblock = offset >> BLOCK_SIZE_BITS;
block102fs/minix/file.cif (block + blocks > size)
block103fs/minix/file.cblocks = size - block;
block121fs/minix/file.c*bhb = minix_getblk(inode, block++, 0);
block28fs/minix/fsync.cstatic int sync_block (struct inode * inode, unsigned short * block, int wait)
block33fs/minix/fsync.cif (!*block)
block35fs/minix/fsync.ctmp = *block;
block36fs/minix/fsync.cbh = get_hash_table(inode->i_dev, *block, blocksize);
block39fs/minix/fsync.cif (*block != tmp) {
block58fs/minix/inode.cint i,dev=s->s_dev,block;
block99fs/minix/inode.cblock=2;
block101fs/minix/inode.cif ((s->u.minix_sb.s_imap[i]=bread(dev,block,BLOCK_SIZE)) != NULL)
block102fs/minix/inode.cblock++;
block106fs/minix/inode.cif ((s->u.minix_sb.s_zmap[i]=bread(dev,block,BLOCK_SIZE)) != NULL)
block107fs/minix/inode.cblock++;
block110fs/minix/inode.cif (block != 2+s->u.minix_sb.s_imap_blocks+s->u.minix_sb.s_zmap_blocks) {
block166fs/minix/inode.cint minix_bmap(struct inode * inode,int block)
block170fs/minix/inode.cif (block<0) {
block174fs/minix/inode.cif (block >= 7+512+512*512) {
block178fs/minix/inode.cif (block < 7)
block179fs/minix/inode.creturn inode_bmap(inode,block);
block180fs/minix/inode.cblock -= 7;
block181fs/minix/inode.cif (block < 512) {
block185fs/minix/inode.creturn block_bmap(bread(inode->i_dev,i,BLOCK_SIZE),block);
block187fs/minix/inode.cblock -= 512;
block191fs/minix/inode.ci = block_bmap(bread(inode->i_dev,i,BLOCK_SIZE),block>>9);
block194fs/minix/inode.creturn block_bmap(bread(inode->i_dev,i,BLOCK_SIZE),block & 511);
block280fs/minix/inode.cstruct buffer_head * minix_getblk(struct inode * inode, int block, int create)
block284fs/minix/inode.cif (block<0) {
block288fs/minix/inode.cif (block >= 7+512+512*512) {
block292fs/minix/inode.cif (block < 7)
block293fs/minix/inode.creturn inode_getblk(inode,block,create);
block294fs/minix/inode.cblock -= 7;
block295fs/minix/inode.cif (block < 512) {
block297fs/minix/inode.creturn block_getblk(inode, bh, block, create);
block299fs/minix/inode.cblock -= 512;
block301fs/minix/inode.cbh = block_getblk(inode, bh, block>>9, create);
block302fs/minix/inode.creturn block_getblk(inode, bh, block & 511, create);
block305fs/minix/inode.cstruct buffer_head * minix_bread(struct inode * inode, int block, int create)
block309fs/minix/inode.cbh = minix_getblk(inode,block,create);
block324fs/minix/inode.cint block, ino;
block334fs/minix/inode.cblock = 2 + inode->i_sb->u.minix_sb.s_imap_blocks +
block337fs/minix/inode.cif (!(bh=bread(inode->i_dev,block, BLOCK_SIZE))) {
block353fs/minix/inode.celse for (block = 0; block < 9; block++)
block354fs/minix/inode.cinode->u.minix_i.i_data[block] = raw_inode->i_zone[block];
block374fs/minix/inode.cint ino, block;
block383fs/minix/inode.cblock = 2 + inode->i_sb->u.minix_sb.s_imap_blocks + inode->i_sb->u.minix_sb.s_zmap_blocks +
block385fs/minix/inode.cif (!(bh=bread(inode->i_dev, block, BLOCK_SIZE))) {
block400fs/minix/inode.celse for (block = 0; block < 9; block++)
block401fs/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;
block207fs/minix/namei.cblock++;
block378fs/minix/namei.cunsigned int block, offset;
block386fs/minix/namei.cblock = 0;
block402fs/minix/namei.cwhile (block*BLOCK_SIZE+offset < inode->i_size) {
block404fs/minix/namei.cbh = minix_bread(inode,block,0);
block406fs/minix/namei.cblock++;
block421fs/minix/namei.cblock++;
block287fs/msdos/inode.cint msdos_bmap(struct inode *inode,int block)
block296fs/msdos/inode.creturn (sb->dir_start >> 1)+block;
block298fs/msdos/inode.ccluster = (block*2)/sb->cluster_size;
block299fs/msdos/inode.coffset = (block*2) % sb->cluster_size;
block30fs/xiafs/fsync.cstatic int sync_block (struct inode * inode, unsigned long * block, int wait)
block35fs/xiafs/fsync.cif (!*block)
block37fs/xiafs/fsync.ctmp = *block;
block38fs/xiafs/fsync.cbh = get_hash_table(inode->i_dev, *block, blocksize);
block41fs/xiafs/fsync.cif (*block != tmp) {
block81include/linux/ext_fs.hextern void ext_free_block(struct super_block * sb, int block);
block361include/linux/fs.hextern int bmap(struct inode * inode,int block);
block377include/linux/fs.hextern struct buffer_head * get_hash_table(dev_t dev, int block, int size);
block378include/linux/fs.hextern struct buffer_head * getblk(dev_t dev, int block, int size);
block384include/linux/fs.hextern struct buffer_head * bread(dev_t dev, int block, int size);
block386include/linux/fs.hextern struct buffer_head * breada(dev_t dev,int block,...);
block173include/linux/iso_fs.hextern int isofs_free_block(int dev, int block);
block211include/linux/iso_fs.hextern struct buffer_head * leak_check_bread(int dev, int block, int size);
block92include/linux/minix_fs.hextern void minix_free_block(struct super_block * sb, int block);
block174include/linux/msdos_fs.hextern int msdos_bmap(struct inode *inode,int block);
block118include/linux/xd.hstatic int xd_readwrite (u_char operation,u_char drive,char *buffer,u_int block,u_int count);
block85include/linux/xia_fs.hextern void xiafs_free_zone(struct super_block * sb, int block);
block1153mm/memory.cunsigned int block;
block1160mm/memory.cblock = address - area->vm_start + area->vm_offset;
block1161mm/memory.cblock >>= inode->i_sb->s_blocksize_bits;
block1175mm/memory.cfor (i=0, j=0; i< PAGE_SIZE ; j++, block++, i += inode->i_sb->s_blocksize)
block1176mm/memory.cnr[j] = bmap(inode,block);
block83mm/swap.cunsigned int block;
block86mm/swap.cblock = offset << (12 - p->swap_file->i_sb->s_blocksize_bits);
block89mm/swap.cif (!(zones[i] = bmap(p->swap_file,block++))) {