taglinefilesource code
block17fs/block_dev.cint block = filp->f_pos >> BLOCK_SIZE_BITS;
block32fs/block_dev.cif (block >= size)
block38fs/block_dev.cbh = getblk(dev, block, BLOCK_SIZE);
block40fs/block_dev.cbh = breada(dev,block,block+1,block+2,-1);
block41fs/block_dev.cblock++;
block61fs/block_dev.cunsigned int block = filp->f_pos >> BLOCK_SIZE_BITS;
block76fs/block_dev.cif (block >= size)
block81fs/block_dev.cif (!(bh = breada(dev,block,block+1,block+2,-1)))
block83fs/block_dev.cblock++;
block139fs/buffer.c#define _hashfn(dev,block) (((unsigned)(dev^block))%NR_HASH)
block140fs/buffer.c#define hash(dev,block) hash_table[_hashfn(dev,block)]
block217fs/buffer.cstatic struct buffer_head * find_buffer(int dev, int block, int size)
block221fs/buffer.cfor (tmp = hash(dev,block) ; tmp != NULL ; tmp = tmp->b_next)
block222fs/buffer.cif (tmp->b_dev==dev && tmp->b_blocknr==block)
block239fs/buffer.cstruct buffer_head * get_hash_table(int dev, int block, int size)
block244fs/buffer.cif (!(bh=find_buffer(dev,block,size)))
block248fs/buffer.cif (bh->b_dev == dev && bh->b_blocknr == block && bh->b_size == size) {
block267fs/buffer.cstruct buffer_head * getblk(int dev, int block, int size)
block273fs/buffer.cif (bh = get_hash_table(dev, block, size))
block315fs/buffer.cif (find_buffer(dev,block,size))
block324fs/buffer.cbh->b_blocknr=block;
block343fs/buffer.cstruct buffer_head * bread(int dev, int block, int size)
block347fs/buffer.cif (!(bh = getblk(dev, block, size))) {
block85fs/ext/bitmap.cint ext_free_block(int dev, int block)
block93fs/ext/bitmap.cif (block < sb->s_firstdatazone || block >= sb->s_nzones)
block95fs/ext/bitmap.cbh = get_hash_table(dev,block);
block106fs/ext/bitmap.czone = block - sb->s_firstdatazone + 1;
block111fs/ext/bitmap.cprintk("free_block (%04x:%d): bit already cleared\n",dev,block);
block58fs/ext/dir.cunsigned int block,offset,i;
block69fs/ext/dir.cblock = ext_bmap(inode,(filp->f_pos)>>BLOCK_SIZE_BITS);
block70fs/ext/dir.cif (!block || !(bh = bread(inode->i_dev, block, BLOCK_SIZE))) {
block79fs/ext/file.cint block, blocks, offset;
block100fs/ext/file.cblock = filp->f_pos >> BLOCK_SIZE_BITS;
block107fs/ext/file.cif (nr = ext_bmap(inode,block++)) {
block163fs/ext/file.cint written,block,c;
block185fs/ext/file.cif (!(block = ext_create_block(inode,pos/BLOCK_SIZE))) {
block194fs/ext/file.cbh = getblk(inode->i_dev, block, BLOCK_SIZE);
block196fs/ext/file.cbh = bread(inode->i_dev, block, BLOCK_SIZE);
block49fs/ext/freelists.cint ext_free_block(int dev, int block)
block58fs/ext/freelists.cif (block < sb->u.ext_sb.s_firstdatazone || block >= sb->u.ext_sb.s_nzones)
block60fs/ext/freelists.cbh = get_hash_table(dev, block, sb->s_blocksize);
block76fs/ext/freelists.cprintk("ext_free_block: block full, skipping to %d\n", block);
block80fs/ext/freelists.cif (!(sb->u.ext_sb.s_zmap[1] = bread (dev, block, sb->s_blocksize)))
block85fs/ext/freelists.csb->u.ext_sb.s_zmap[0] = (struct buffer_head *) block;
block87fs/ext/freelists.cefb->free[efb->count++] = block;
block153fs/ext/freelists.cunsigned long count, block;
block161fs/ext/freelists.cblock = efb->next;
block162fs/ext/freelists.cwhile (block) {
block163fs/ext/freelists.cif (!(bh = bread (sb->s_dev, block, sb->s_blocksize))) {
block165fs/ext/freelists.cblock = 0;
block169fs/ext/freelists.cblock = efb->next;
block187fs/ext/freelists.cunsigned long block;
block222fs/ext/freelists.cblock = 2 + (inode->i_ino - 1) / EXT_INODES_PER_BLOCK;
block223fs/ext/freelists.cif (!(bh = bread(inode->i_dev, block, inode->i_sb->s_blocksize)))
block245fs/ext/freelists.cunsigned long block;
block274fs/ext/freelists.cblock = 2 + (((unsigned long) efi->next) - 1) / EXT_INODES_PER_BLOCK;
block279fs/ext/freelists.cif (!(inode->i_sb->u.ext_sb.s_imap[1] = bread (dev, block, inode->i_sb->s_blocksize)))
block306fs/ext/freelists.cunsigned long count, block, ino;
block322fs/ext/freelists.cblock = 2 + ((ino - 1) / EXT_INODES_PER_BLOCK);
block323fs/ext/freelists.cif (!(bh = bread (sb->s_dev, block, sb->s_blocksize))) {
block325fs/ext/freelists.cblock = 0;
block69fs/ext/inode.cint dev = s->s_dev,block;
block113fs/ext/inode.cblock=2;
block115fs/ext/inode.cif (s->u.ext_sb.s_imap[i]=bread(dev, block, BLOCK_SIZE))
block116fs/ext/inode.cblock++;
block120fs/ext/inode.cif (s->u.ext_sb.s_zmap[i]=bread(dev, block, BLOCK_SIZE))
block121fs/ext/inode.cblock++;
block124fs/ext/inode.cif (block != 2+s->u.ext_sb.s_imap_blocks+s->u.ext_sb.s_zmap_blocks) {
block150fs/ext/inode.cblock = 2 + (((unsigned long) s->u.ext_sb.s_imap[0]) - 1) / EXT_INODES_PER_BLOCK;
block151fs/ext/inode.cif (!(s->u.ext_sb.s_imap[1] = bread(dev, block, BLOCK_SIZE))) {
block212fs/ext/inode.cstatic int _ext_bmap(struct inode * inode,int block,int create)
block217fs/ext/inode.cif (block<0) {
block221fs/ext/inode.cif (block >= 9+256+256*256+256*256*256) {
block225fs/ext/inode.cif (block<9) {
block226fs/ext/inode.cif (create && !inode->i_data[block])
block227fs/ext/inode.cif (inode->i_data[block]=ext_new_block(inode->i_dev)) {
block231fs/ext/inode.creturn inode->i_data[block];
block233fs/ext/inode.cblock -= 9;
block234fs/ext/inode.cif (block<256) {
block244fs/ext/inode.ci = ((unsigned long *) (bh->b_data))[block];
block247fs/ext/inode.c((unsigned long *) (bh->b_data))[block]=i;
block253fs/ext/inode.cblock -= 256;
block254fs/ext/inode.cif (block<256*256) {
block264fs/ext/inode.ci = ((unsigned long *)bh->b_data)[block>>8];
block267fs/ext/inode.c((unsigned long *) (bh->b_data))[block>>8]=i;
block275fs/ext/inode.ci = ((unsigned long *)bh->b_data)[block&255];
block278fs/ext/inode.c((unsigned long *) (bh->b_data))[block&255]=i;
block293fs/ext/inode.ci = ((unsigned long *) bh->b_data)[block >> 16];
block296fs/ext/inode.c((unsigned long *) bh->b_data)[block >> 16] = i;
block304fs/ext/inode.ci = ((unsigned long *) bh->b_data)[(block >> 8) & 255];
block307fs/ext/inode.c((unsigned long *) bh->b_data)[(block >> 8) & 255] = i;
block315fs/ext/inode.ci = ((unsigned long *) bh->b_data)[block & 255];
block318fs/ext/inode.c((unsigned long *) bh->b_data)[block & 255] = i;
block328fs/ext/inode.cint ext_bmap(struct inode * inode,int block)
block330fs/ext/inode.creturn _ext_bmap(inode,block,0);
block333fs/ext/inode.cint ext_create_block(struct inode * inode, int block)
block335fs/ext/inode.creturn _ext_bmap(inode,block,1);
block342fs/ext/inode.cint block;
block345fs/ext/inode.cblock = 2 + inode->i_sb->u.ext_sb.s_imap_blocks + inode->i_sb->u.ext_sb.s_zmap_blocks +
block349fs/ext/inode.cblock = 2 + (inode->i_ino-1)/EXT_INODES_PER_BLOCK;
block351fs/ext/inode.cif (!(bh=bread(inode->i_dev, block, BLOCK_SIZE)))
block363fs/ext/inode.celse for (block = 0; block < 12; block++)
block364fs/ext/inode.cinode->i_data[block] = raw_inode->i_zone[block];
block390fs/ext/inode.cint block;
block393fs/ext/inode.cblock = 2 + inode->i_sb->u.ext_sb.s_imap_blocks + inode->i_sb->u.ext_sb.s_zmap_blocks +
block397fs/ext/inode.cblock = 2 + (inode->i_ino-1)/EXT_INODES_PER_BLOCK;
block399fs/ext/inode.cif (!(bh=bread(inode->i_dev, block, BLOCK_SIZE)))
block411fs/ext/inode.celse for (block = 0; block < 12; block++)
block412fs/ext/inode.craw_inode->i_zone[block] = inode->i_data[block];
block96fs/ext/namei.cint block /* ,i */;
block112fs/ext/namei.cif (!(block = dir->i_data[0]))
block114fs/ext/namei.cif (!(bh = bread(dir->i_dev, block, BLOCK_SIZE)))
block127fs/ext/namei.cif (!(block = ext_bmap(dir,offset>>BLOCK_SIZE_BITS)) ||
block128fs/ext/namei.c!(bh = bread(dir->i_dev, block, BLOCK_SIZE))) {
block198fs/ext/namei.cint block,i;
block216fs/ext/namei.cif (!(block = dir->i_data[0]))
block218fs/ext/namei.cif (!(bh = bread(dir->i_dev, block, BLOCK_SIZE)))
block231fs/ext/namei.cblock = ext_create_block(dir,offset>>BLOCK_SIZE_BITS);
block232fs/ext/namei.cif (!block)
block234fs/ext/namei.cif (!(bh = bread(dir->i_dev, block, BLOCK_SIZE))) {
block261fs/ext/namei.cblock = ext_create_block (dir,offset>>BLOCK_SIZE_BITS);
block265fs/ext/namei.cif (!block)
block267fs/ext/namei.cif (!(bh = bread(dir->i_dev, block, BLOCK_SIZE)))
block477fs/ext/namei.cint /* nr, */ block;
block502fs/ext/namei.cblock = ext_bmap(inode, offset >> BLOCK_SIZE_BITS);
block503fs/ext/namei.cif (!block) {
block507fs/ext/namei.cif (!(bh=bread(inode->i_dev, block, BLOCK_SIZE)))
block70fs/inode.cint bmap(struct inode * inode, int block)
block73fs/inode.creturn inode->i_op->bmap(inode,block);
block17fs/ioctl.cint block;
block23fs/ioctl.cblock = get_fs_long((long *) arg);
block24fs/ioctl.cblock = filp->f_inode->i_op->bmap(filp->f_inode,block);
block25fs/ioctl.cput_fs_long(block,(long *) arg);
block76fs/minix/bitmap.cint minix_free_block(int dev, int block)
block84fs/minix/bitmap.cif (block < sb->u.minix_sb.s_firstdatazone || block >= sb->u.minix_sb.s_nzones)
block86fs/minix/bitmap.cbh = get_hash_table(dev,block,BLOCK_SIZE);
block97fs/minix/bitmap.czone = block - sb->u.minix_sb.s_firstdatazone + 1;
block102fs/minix/bitmap.cprintk("free_block (%04x:%d): bit already cleared\n",dev,block);
block52fs/minix/dir.cunsigned int block,offset,i;
block63fs/minix/dir.cblock = minix_bmap(inode,(filp->f_pos)>>BLOCK_SIZE_BITS);
block64fs/minix/dir.cif (!block || !(bh = bread(inode->i_dev,block,BLOCK_SIZE))) {
block79fs/minix/file.cint block, blocks, offset;
block100fs/minix/file.cblock = filp->f_pos >> BLOCK_SIZE_BITS;
block107fs/minix/file.cif (nr = minix_bmap(inode,block++)) {
block163fs/minix/file.cint written,block,c;
block185fs/minix/file.cif (!(block = minix_create_block(inode,pos/BLOCK_SIZE))) {
block194fs/minix/file.cbh = getblk(inode->i_dev, block, BLOCK_SIZE);
block196fs/minix/file.cbh = bread(inode->i_dev,block, BLOCK_SIZE);
block53fs/minix/inode.cint i,dev=s->s_dev,block;
block83fs/minix/inode.cblock=2;
block85fs/minix/inode.cif (s->u.minix_sb.s_imap[i]=bread(dev,block,BLOCK_SIZE))
block86fs/minix/inode.cblock++;
block90fs/minix/inode.cif (s->u.minix_sb.s_zmap[i]=bread(dev,block,BLOCK_SIZE))
block91fs/minix/inode.cblock++;
block94fs/minix/inode.cif (block != 2+s->u.minix_sb.s_imap_blocks+s->u.minix_sb.s_zmap_blocks) {
block133fs/minix/inode.cstatic int _minix_bmap(struct inode * inode,int block,int create)
block138fs/minix/inode.cif (block<0) {
block142fs/minix/inode.cif (block >= 7+512+512*512) {
block146fs/minix/inode.cif (block<7) {
block147fs/minix/inode.cif (create && !inode->i_data[block])
block148fs/minix/inode.cif (inode->i_data[block]=minix_new_block(inode->i_dev)) {
block152fs/minix/inode.creturn inode->i_data[block];
block154fs/minix/inode.cblock -= 7;
block155fs/minix/inode.cif (block<512) {
block165fs/minix/inode.ci = ((unsigned short *) (bh->b_data))[block];
block168fs/minix/inode.c((unsigned short *) (bh->b_data))[block]=i;
block174fs/minix/inode.cblock -= 512;
block184fs/minix/inode.ci = ((unsigned short *)bh->b_data)[block>>9];
block187fs/minix/inode.c((unsigned short *) (bh->b_data))[block>>9]=i;
block195fs/minix/inode.ci = ((unsigned short *)bh->b_data)[block&511];
block198fs/minix/inode.c((unsigned short *) (bh->b_data))[block&511]=i;
block205fs/minix/inode.cint minix_bmap(struct inode * inode,int block)
block207fs/minix/inode.creturn _minix_bmap(inode,block,0);
block210fs/minix/inode.cint minix_create_block(struct inode * inode, int block)
block212fs/minix/inode.creturn _minix_bmap(inode,block,1);
block219fs/minix/inode.cint block;
block221fs/minix/inode.cblock = 2 + inode->i_sb->u.minix_sb.s_imap_blocks + inode->i_sb->u.minix_sb.s_zmap_blocks +
block223fs/minix/inode.cif (!(bh=bread(inode->i_dev,block, BLOCK_SIZE)))
block235fs/minix/inode.celse for (block = 0; block < 9; block++)
block236fs/minix/inode.cinode->i_data[block] = raw_inode->i_zone[block];
block262fs/minix/inode.cint block;
block264fs/minix/inode.cblock = 2 + inode->i_sb->u.minix_sb.s_imap_blocks + inode->i_sb->u.minix_sb.s_zmap_blocks +
block266fs/minix/inode.cif (!(bh=bread(inode->i_dev, block, BLOCK_SIZE)))
block278fs/minix/inode.celse for (block = 0; block < 9; block++)
block279fs/minix/inode.craw_inode->i_zone[block] = inode->i_data[block];
block64fs/minix/namei.cint block,i;
block79fs/minix/namei.cif (!(block = dir->i_data[0]))
block81fs/minix/namei.cif (!(bh = bread(dir->i_dev, block, BLOCK_SIZE)))
block89fs/minix/namei.cif (!(block = minix_bmap(dir,i/MINIX_DIR_ENTRIES_PER_BLOCK)) ||
block90fs/minix/namei.c!(bh = bread(dir->i_dev, block, BLOCK_SIZE))) {
block148fs/minix/namei.cint block,i;
block164fs/minix/namei.cif (!(block = dir->i_data[0]))
block166fs/minix/namei.cif (!(bh = bread(dir->i_dev, block, BLOCK_SIZE)))
block174fs/minix/namei.cblock = minix_create_block(dir,i/MINIX_DIR_ENTRIES_PER_BLOCK);
block175fs/minix/namei.cif (!block)
block177fs/minix/namei.cif (!(bh = bread(dir->i_dev, block, BLOCK_SIZE))) {
block365fs/minix/namei.cint nr,block;
block387fs/minix/namei.cblock = minix_bmap(inode,nr/MINIX_DIR_ENTRIES_PER_BLOCK);
block388fs/minix/namei.cif (!block) {
block392fs/minix/namei.cif (!(bh=bread(inode->i_dev, block, BLOCK_SIZE)))
block176fs/msdos/inode.cint msdos_bmap(struct inode *inode,int block)
block185fs/msdos/inode.creturn (sb->dir_start >> 1)+block;
block187fs/msdos/inode.ccluster = (block*2)/sb->cluster_size;
block188fs/msdos/inode.coffset = (block*2) % sb->cluster_size;
block99include/linux/ext_fs.hextern int ext_free_block(int dev, int block);
block241include/linux/fs.hextern int bmap(struct inode * inode,int block);
block255include/linux/fs.hextern struct buffer_head * get_hash_table(int dev, int block, int size);
block256include/linux/fs.hextern struct buffer_head * getblk(int dev, int block, int size);
block261include/linux/fs.hextern struct buffer_head * bread(int dev, int block, int size);
block263include/linux/fs.hextern struct buffer_head * breada(int dev,int block,...);
block66include/linux/minix_fs.hextern int minix_free_block(int dev, int block);
block155include/linux/msdos_fs.hextern int msdos_bmap(struct inode *inode,int block);
block63kernel/blk_drv/blk.h#define SUBSECTOR(block) ((block) & SECTOR_MASK)
block895kernel/blk_drv/floppy.cunsigned int block;
block939kernel/blk_drv/floppy.cblock = CURRENT->sector;
block940kernel/blk_drv/floppy.cif (block+2 > floppy->size) {
block944kernel/blk_drv/floppy.csector = block % floppy->sect;
block945kernel/blk_drv/floppy.cblock /= floppy->sect;
block946kernel/blk_drv/floppy.chead = block % floppy->head;
block947kernel/blk_drv/floppy.ctrack = block / floppy->head;
block380kernel/blk_drv/hd.cunsigned int block,dev;
block390kernel/blk_drv/hd.cblock = CURRENT->sector;
block392kernel/blk_drv/hd.cif (dev >= (NR_HD<<6) || block >= hd[dev].nr_sects) {
block395kernel/blk_drv/hd.cblock, hd[dev].nr_sects);
block400kernel/blk_drv/hd.cblock += hd[dev].start_sect;
block402kernel/blk_drv/hd.csec = block % hd_info[dev].sect;
block403kernel/blk_drv/hd.cblock /= hd_info[dev].sect;
block404kernel/blk_drv/hd.chead = block % hd_info[dev].head;
block405kernel/blk_drv/hd.ccyl = block / hd_info[dev].head;
block90kernel/blk_drv/ramdisk.cint    block = 256;  /* Start at block 256 */
block101kernel/blk_drv/ramdisk.cbh = breada(ROOT_DEV,block+1,block,block+2,-1);
block122kernel/blk_drv/ramdisk.cbh = breada(ROOT_DEV, block, block+1, block+2, -1);
block124kernel/blk_drv/ramdisk.cbh = bread(ROOT_DEV, block, BLOCK_SIZE);
block127kernel/blk_drv/ramdisk.cblock);
block135kernel/blk_drv/ramdisk.cblock++;
block223kernel/blk_drv/scsi/sd.cint dev, block;
block229kernel/blk_drv/scsi/sd.cblock = CURRENT->sector;
block232kernel/blk_drv/scsi/sd.cprintk("Doing sd request, dev = %d, block = %d\n", dev, block);
block235kernel/blk_drv/scsi/sd.cif (dev >= (NR_SD << 4) || block + CURRENT->nr_sectors > sd[dev].nr_sects) 
block241kernel/blk_drv/scsi/sd.cblock += sd[dev].start_sect;
block245kernel/blk_drv/scsi/sd.cprintk("sd%d : real dev = /dev/sd%d, block = %d\n", MINOR(CURRENT->dev), dev, block);
block280kernel/blk_drv/scsi/sd.cif (((this_count > 0xff) ||  (block > 0x1fffff)) && rscsi_disks[dev].ten) 
block286kernel/blk_drv/scsi/sd.ccmd[2] = (unsigned char) (block >> 24) & 0xff;
block287kernel/blk_drv/scsi/sd.ccmd[3] = (unsigned char) (block >> 16) & 0xff;
block288kernel/blk_drv/scsi/sd.ccmd[4] = (unsigned char) (block >> 8) & 0xff;
block289kernel/blk_drv/scsi/sd.ccmd[5] = (unsigned char) block & 0xff;
block299kernel/blk_drv/scsi/sd.ccmd[1] |= (unsigned char) ((block >> 16) & 0x1f);
block300kernel/blk_drv/scsi/sd.ccmd[2] = (unsigned char) ((block >> 8) & 0xff);
block301kernel/blk_drv/scsi/sd.ccmd[3] = (unsigned char) block & 0xff;
block669mm/memory.cunsigned int block,i;
block699mm/memory.cblock = 0;
block702mm/memory.cblock = 1 + tmp / BLOCK_SIZE;
block708mm/memory.cblock = tmp - tsk->libraries[i].start;
block709mm/memory.cif (block >= tsk->libraries[i].length)
block712mm/memory.cblock = 1 + block / BLOCK_SIZE;
block740mm/memory.cfor (i=0 ; i<4 ; block++,i++)
block741mm/memory.cnr[i] = bmap(inode,block);
block64mm/swap.cunsigned int block = nr << 2;
block68mm/swap.cif (!(zones[i] = bmap(swap_file,block++))) {