tag | line | file | source code |
block | 43 | drivers/block/blk.h | #define SUBSECTOR(block) (CURRENT->current_nr_sectors > 0) |
block | 1147 | drivers/block/cdu31a.c | unsigned int block, |
block | 1166 | drivers/block/cdu31a.c | if (((block % 4) * 512) != ((2048 - readahead_dataleft) % 2048)) |
block | 1168 | drivers/block/cdu31a.c | sony_next_block += block % 4; |
block | 1169 | drivers/block/cdu31a.c | sony_blocks_left -= block % 4; |
block | 1170 | drivers/block/cdu31a.c | skip = (block % 4) * 512; |
block | 1354 | drivers/block/cdu31a.c | int block; |
block | 1420 | drivers/block/cdu31a.c | block = CURRENT->sector; |
block | 1434 | drivers/block/cdu31a.c | if (block < 80) |
block | 1437 | drivers/block/cdu31a.c | block += (sony_toc->start_track_lba * 4); |
block | 1448 | drivers/block/cdu31a.c | if ((block / 4) < sony_toc->start_track_lba) |
block | 1455 | drivers/block/cdu31a.c | if ((block / 4) >= sony_toc->lead_out_start_lba) |
block | 1461 | drivers/block/cdu31a.c | if (((block + nblock) / 4) >= sony_toc->lead_out_start_lba) |
block | 1485 | drivers/block/cdu31a.c | if (start_request(block / 4, CDU31A_READAHEAD / 4, 0)) |
block | 1494 | drivers/block/cdu31a.c | else if (block != sony_next_block) |
block | 1498 | drivers/block/cdu31a.c | block, |
block | 1508 | drivers/block/cdu31a.c | if (start_request(block / 4, CDU31A_READAHEAD / 4, 0)) |
block | 1515 | drivers/block/cdu31a.c | read_data_block(CURRENT->buffer, block, nblock, res_reg, &res_size); |
block | 1920 | drivers/block/floppy.c | int block; |
block | 1932 | drivers/block/floppy.c | block = current_count_sectors + CURRENT->sector; |
block | 1933 | drivers/block/floppy.c | if (block > DRS->maxblock) |
block | 1934 | drivers/block/floppy.c | DRS->maxblock=block; |
block | 1935 | drivers/block/floppy.c | if ( block > floppy->sect) |
block | 2946 | drivers/block/floppy.c | int block; |
block | 2957 | drivers/block/floppy.c | block = (filp->f_pos + count) >> 9; |
block | 2958 | drivers/block/floppy.c | if(block > UDRS->maxblock) |
block | 2959 | drivers/block/floppy.c | UDRS->maxblock = block; |
block | 698 | drivers/block/hd.c | unsigned int dev, block, nsect, sec, track, head, cyl; |
block | 713 | drivers/block/hd.c | block = CURRENT->sector; |
block | 715 | drivers/block/hd.c | if (dev >= (NR_HD<<6) || block >= hd[dev].nr_sects || ((block+nsect) > hd[dev].nr_sects)) { |
block | 721 | drivers/block/hd.c | (CURRENT->dev>>6)+'a', block, nsect); |
block | 726 | drivers/block/hd.c | block += hd[dev].start_sect; |
block | 733 | drivers/block/hd.c | sec = block % hd_info[dev].sect + 1; |
block | 734 | drivers/block/hd.c | track = block / hd_info[dev].sect; |
block | 677 | drivers/block/ide-cd.c | static int cdrom_start_read (ide_dev_t *dev, unsigned int block) |
block | 915 | drivers/block/ide-cd.c | static int do_rw_cdrom (ide_dev_t *dev, unsigned long block) |
block | 929 | drivers/block/ide-cd.c | return cdrom_start_read (dev, block); |
block | 940 | drivers/block/ide.c | static inline int do_rw_disk (ide_dev_t *dev, struct request *rq, unsigned long block) |
block | 948 | drivers/block/ide.c | block, rq->nr_sectors, (unsigned long) rq->buffer); |
block | 950 | drivers/block/ide.c | OUT_BYTE(block,HD_SECTOR); |
block | 951 | drivers/block/ide.c | OUT_BYTE(block>>=8,HD_LCYL); |
block | 952 | drivers/block/ide.c | OUT_BYTE(block>>=8,HD_HCYL); |
block | 953 | drivers/block/ide.c | OUT_BYTE(((block>>8)&0x0f)|dev->select.all,HD_CURRENT); |
block | 956 | drivers/block/ide.c | track = block / dev->sect; |
block | 957 | drivers/block/ide.c | sect = block % dev->sect + 1; |
block | 1029 | drivers/block/ide.c | unsigned long block, blockend; |
block | 1070 | drivers/block/ide.c | block = rq->sector; |
block | 1071 | drivers/block/ide.c | blockend = block + rq->nr_sectors; |
block | 1072 | drivers/block/ide.c | if ((blockend < block) || (blockend > ide_hd[HWIF][minor].nr_sects)) { |
block | 1074 | drivers/block/ide.c | dev->name, block, rq->nr_sectors); |
block | 1078 | drivers/block/ide.c | block += ide_hd[HWIF][minor].start_sect; |
block | 1093 | drivers/block/ide.c | if (do_rw_disk(dev, rq, block)) |
block | 1097 | drivers/block/ide.c | if (do_rw_cdrom(dev, block)) |
block | 114 | drivers/block/ramdisk.c | int block, tries; |
block | 128 | drivers/block/ramdisk.c | block = tries; |
block | 129 | drivers/block/ramdisk.c | bh = breada(ROOT_DEV,block+1,BLOCK_SIZE, 0, PAGE_SIZE); |
block | 146 | drivers/block/ramdisk.c | block); |
block | 156 | drivers/block/ramdisk.c | block); |
block | 177 | drivers/block/ramdisk.c | bh = breada(ROOT_DEV, block, BLOCK_SIZE, 0, PAGE_SIZE); |
block | 179 | drivers/block/ramdisk.c | bh = bread(ROOT_DEV, block, BLOCK_SIZE); |
block | 182 | drivers/block/ramdisk.c | block); |
block | 189 | drivers/block/ramdisk.c | block++; |
block | 2197 | drivers/block/sbpcd.c | int block, checksum; |
block | 2202 | drivers/block/sbpcd.c | for (block=CD_BLOCK_OFFSET+1;block<CD_BLOCK_OFFSET+200;block++) |
block | 2210 | drivers/block/sbpcd.c | drvcmd[1]=(block>>16)&0xFF; |
block | 2211 | drivers/block/sbpcd.c | drvcmd[2]=(block>>8)&0xFF; |
block | 2212 | drivers/block/sbpcd.c | drvcmd[3]=block&0xFF; |
block | 2221 | drivers/block/sbpcd.c | drvcmd[2]=(block>>16)&0xFF; |
block | 2222 | drivers/block/sbpcd.c | drvcmd[3]=(block>>8)&0xFF; |
block | 2223 | drivers/block/sbpcd.c | drvcmd[4]=block&0xFF; |
block | 3484 | drivers/block/sbpcd.c | int i=0, j=0, frame, block; |
block | 3509 | drivers/block/sbpcd.c | block=msf2lba(&read_audio.addr.msf.minute); |
block | 3511 | drivers/block/sbpcd.c | block=read_audio.addr.lba; |
block | 3516 | drivers/block/sbpcd.c | block, blk2msf(block))); |
block | 3547 | drivers/block/sbpcd.c | drvcmd[1]=(block>>16)&0x000000ff; |
block | 3548 | drivers/block/sbpcd.c | drvcmd[2]=(block>>8)&0x000000ff; |
block | 3549 | drivers/block/sbpcd.c | drvcmd[3]=block&0x000000ff; |
block | 3557 | drivers/block/sbpcd.c | lba2msf(block,&drvcmd[1]); /* msf-bin format required */ |
block | 3741 | drivers/block/sbpcd.c | u_int block; |
block | 3761 | drivers/block/sbpcd.c | block = CURRENT->sector; /* always numbered as 512-byte-pieces */ |
block | 3770 | drivers/block/sbpcd.c | DPRINTF((DBG_BSZ,"SBPCD: read sector %d (%d sectors)\n", block, nsect)); |
block | 3772 | drivers/block/sbpcd.c | DPRINTF((DBG_MUL,"SBPCD: read LBA %d\n", block/4)); |
block | 3841 | drivers/block/sbpcd.c | int block; |
block | 3844 | drivers/block/sbpcd.c | block=CURRENT->sector/4; |
block | 3850 | drivers/block/sbpcd.c | DPRINTF((DBG_MUL,"SBPCD: read MSF %08X\n", blk2msf(block))); |
block | 3854 | drivers/block/sbpcd.c | blk2msf(DriveStruct[d].lba_multi+block), |
block | 3855 | drivers/block/sbpcd.c | blk2msf(block))); |
block | 3856 | drivers/block/sbpcd.c | block=DriveStruct[d].lba_multi+block; |
block | 3859 | drivers/block/sbpcd.c | if ((block<=DriveStruct[d].last_redirect) |
block | 3863 | drivers/block/sbpcd.c | blk2msf(DriveStruct[d].lba_multi+block), |
block | 3864 | drivers/block/sbpcd.c | blk2msf(block))); |
block | 3865 | drivers/block/sbpcd.c | block=DriveStruct[d].lba_multi+block; |
block | 3871 | drivers/block/sbpcd.c | if (block+SBP_BUFFER_FRAMES <= DriveStruct[d].CDsize_frm) |
block | 3875 | drivers/block/sbpcd.c | DriveStruct[d].sbp_read_frames=DriveStruct[d].CDsize_frm-block; |
block | 3880 | drivers/block/sbpcd.c | block, DriveStruct[d].CDsize_frm)); |
block | 3898 | drivers/block/sbpcd.c | drvcmd[1]=(block>>16)&0x000000ff; |
block | 3899 | drivers/block/sbpcd.c | drvcmd[2]=(block>>8)&0x000000ff; |
block | 3900 | drivers/block/sbpcd.c | drvcmd[3]=block&0x000000ff; |
block | 3911 | drivers/block/sbpcd.c | lba2msf(block,&drvcmd[1]); /* msf-bcd format required */ |
block | 3918 | drivers/block/sbpcd.c | drvcmd[1]=(block>>16)&0x000000ff; |
block | 3919 | drivers/block/sbpcd.c | drvcmd[2]=(block>>8)&0x000000ff; |
block | 3920 | drivers/block/sbpcd.c | drvcmd[3]=block&0x000000ff; |
block | 3930 | drivers/block/sbpcd.c | lba2msf(block,&drvcmd[1]); /* msf-bin format required */ |
block | 3938 | drivers/block/sbpcd.c | lba2msf(block,&drvcmd[1]); /* msf-bin format required */ |
block | 212 | drivers/block/xd.c | u_int block,count,retry; |
block | 220 | drivers/block/xd.c | block = CURRENT->sector + xd[MINOR(CURRENT->dev)].start_sect; |
block | 227 | drivers/block/xd.c | code = xd_readwrite(CURRENT->cmd,CURRENT_DEV,CURRENT->buffer,block,count); |
block | 324 | drivers/block/xd.c | static int xd_readwrite (u_char operation,u_char drive,char *buffer,u_int block,u_int count) |
block | 331 | drivers/block/xd.c | printk("xd_readwrite: operation = %s, drive = %d, buffer = 0x%X, block = %d, count = %d\n",operation == READ ? "read" : "write",drive,buffer,block,count); |
block | 338 | drivers/block/xd.c | track = block / xd_info[drive].sectors; |
block | 341 | drivers/block/xd.c | sector = block % xd_info[drive].sectors; |
block | 368 | drivers/block/xd.c | count -= temp, buffer += temp * 0x200, block += temp; |
block | 469 | drivers/scsi/eata.c | sh[j]->block = sh[j]; |
block | 243 | drivers/scsi/hosts.c | retval->block = NULL; |
block | 245 | drivers/scsi/hosts.h | struct Scsi_Host * block; |
block | 52 | drivers/scsi/scsi.c | #define SCSI_BLOCK(HOST) ((HOST->block && host_active && HOST != host_active) \ |
block | 246 | drivers/scsi/scsi.c | if (shpnt->unchecked_isa_dma) shpnt->block = shpnt; |
block | 249 | drivers/scsi/scsi.c | if (shpnt->block) sh[block_count++] = shpnt; |
block | 252 | drivers/scsi/scsi.c | if (block_count == 1) sh[0]->block = NULL; |
block | 257 | drivers/scsi/scsi.c | sh[index]->block = sh[index + 1]; |
block | 262 | drivers/scsi/scsi.c | sh[block_count - 1]->block = sh[0]; |
block | 1025 | drivers/scsi/scsi.c | if (host->block) host_active = host; |
block | 1488 | drivers/scsi/scsi.c | if (host->block && host->host_busy == 0) { |
block | 1496 | drivers/scsi/scsi.c | for (next = host->block; next != host; next = next->block) |
block | 1676 | drivers/scsi/scsi.c | if (!host->block) host->host_busy++; |
block | 1681 | drivers/scsi/scsi.c | if (!host->block) host->host_busy--; |
block | 572 | drivers/scsi/scsi.h | if (SCpnt->host->block) { |
block | 575 | drivers/scsi/scsi.h | for (next = SCpnt->host->block; next != SCpnt->host; |
block | 576 | drivers/scsi/scsi.h | next = next->block) |
block | 70 | drivers/scsi/scsi_debug.c | if ((bh->b_blocknr << 1) + start != block) \ |
block | 71 | drivers/scsi/scsi_debug.c | { printk("Wrong bh block# %d %d ",bh->b_blocknr, block); \ |
block | 91 | drivers/scsi/scsi_debug.c | if (SCpnt->request.sector + start != block) panic("Wrong block."); \ |
block | 95 | drivers/scsi/scsi_debug.c | if ((SCpnt->request.bh->b_blocknr << 1) + start != block) \ |
block | 96 | drivers/scsi/scsi_debug.c | { printk("Wrong bh block# %d %d ",SCpnt->request.bh->b_blocknr, block); \ |
block | 159 | drivers/scsi/scsi_debug.c | int block, start; |
block | 238 | drivers/scsi/scsi_debug.c | block = cmd[5] + (cmd[4] << 8) + (cmd[3] << 16) + (cmd[2] << 24); |
block | 240 | drivers/scsi/scsi_debug.c | block = cmd[3] + (cmd[2] << 8) + ((cmd[1] & 0x1f) << 16); |
block | 274 | drivers/scsi/scsi_debug.c | if(block == 0 && target == 0) { |
block | 289 | drivers/scsi/scsi_debug.c | if (SCpnt->use_sg) printk("Block %x (%d %d)\n",block, SCpnt->request.nr_sectors, |
block | 295 | drivers/scsi/scsi_debug.c | if(block == 0xfff0) { |
block | 317 | drivers/scsi/scsi_debug.c | memcpy(buff+60, &block, sizeof(block)); |
block | 325 | drivers/scsi/scsi_debug.c | block += bufflen >> 9; |
block | 349 | drivers/scsi/scsi_debug.c | block = cmd[5] + (cmd[4] << 8) + (cmd[3] << 16) + (cmd[2] << 24); |
block | 351 | drivers/scsi/scsi_debug.c | block = cmd[3] + (cmd[2] << 8) + ((cmd[1] & 0x1f) << 16); |
block | 361 | drivers/scsi/scsi_debug.c | if (block != *((unsigned long *) (buff+60))) { |
block | 362 | drivers/scsi/scsi_debug.c | printk("%x %x :",block, *((unsigned long *) (buff+60))); |
block | 427 | drivers/scsi/sd.c | int dev, block, this_count; |
block | 442 | drivers/scsi/sd.c | block = SCpnt->request.sector; |
block | 446 | drivers/scsi/sd.c | printk("Doing sd request, dev = %d, block = %d\n", dev, block); |
block | 451 | drivers/scsi/sd.c | block + SCpnt->request.nr_sectors > sd[dev].nr_sects) |
block | 457 | drivers/scsi/sd.c | block += sd[dev].start_sect; |
block | 471 | drivers/scsi/sd.c | printk("sd%c : real dev = /dev/sd%c, block = %d\n", 'a' + MINOR(SCpnt->request.dev), dev, block); |
block | 486 | drivers/scsi/sd.c | if((block & 1) || (SCpnt->request.nr_sectors & 1)) { |
block | 745 | drivers/scsi/sd.c | if(block & 1) panic("sd.c:Bad block number requested"); |
block | 747 | drivers/scsi/sd.c | block = block >> 1; |
block | 752 | drivers/scsi/sd.c | block = block << 1; |
block | 756 | drivers/scsi/sd.c | if (((this_count > 0xff) || (block > 0x1fffff)) && rscsi_disks[dev].ten) |
block | 762 | drivers/scsi/sd.c | cmd[2] = (unsigned char) (block >> 24) & 0xff; |
block | 763 | drivers/scsi/sd.c | cmd[3] = (unsigned char) (block >> 16) & 0xff; |
block | 764 | drivers/scsi/sd.c | cmd[4] = (unsigned char) (block >> 8) & 0xff; |
block | 765 | drivers/scsi/sd.c | cmd[5] = (unsigned char) block & 0xff; |
block | 775 | drivers/scsi/sd.c | cmd[1] |= (unsigned char) ((block >> 16) & 0x1f); |
block | 776 | drivers/scsi/sd.c | cmd[2] = (unsigned char) ((block >> 8) & 0xff); |
block | 777 | drivers/scsi/sd.c | cmd[3] = (unsigned char) block & 0xff; |
block | 546 | drivers/scsi/sr.c | unsigned int dev, block, realcount; |
block | 559 | drivers/scsi/sr.c | block = SCpnt->request.sector; |
block | 739 | drivers/scsi/sr.c | start = block % 4; |
block | 761 | drivers/scsi/sr.c | block = block >> 2; /* These are the sectors that the cdrom uses */ |
block | 763 | drivers/scsi/sr.c | block = block & 0xfffffffc; |
block | 769 | drivers/scsi/sr.c | if (((realcount > 0xff) || (block > 0x1fffff)) && scsi_CDs[dev].ten) |
block | 778 | drivers/scsi/sr.c | cmd[2] = (unsigned char) (block >> 24) & 0xff; |
block | 779 | drivers/scsi/sr.c | cmd[3] = (unsigned char) (block >> 16) & 0xff; |
block | 780 | drivers/scsi/sr.c | cmd[4] = (unsigned char) (block >> 8) & 0xff; |
block | 781 | drivers/scsi/sr.c | cmd[5] = (unsigned char) block & 0xff; |
block | 794 | drivers/scsi/sr.c | cmd[1] |= (unsigned char) ((block >> 16) & 0x1f); |
block | 795 | drivers/scsi/sr.c | cmd[2] = (unsigned char) ((block >> 8) & 0xff); |
block | 796 | drivers/scsi/sr.c | cmd[3] = (unsigned char) block & 0xff; |
block | 804 | drivers/scsi/sr.c | printk("ReadCD: %d %d %d %d\n",block, realcount, buffer, this_count); |
block | 431 | drivers/scsi/u14-34f.c | sh[j]->block = sh[j]; |
block | 87 | drivers/sound/opl3.c | static void freq_to_fnum (int freq, int *block, int *fnum); |
block | 543 | drivers/sound/opl3.c | int block, fnum, freq, voice_mode; |
block | 720 | drivers/sound/opl3.c | freq_to_fnum (freq, &block, &fnum); |
block | 731 | drivers/sound/opl3.c | data = 0x20 | ((block & 0x7) << 2) | ((fnum >> 8) & 0x3); |
block | 741 | drivers/sound/opl3.c | freq_to_fnum (int freq, int *block, int *fnum) |
block | 779 | drivers/sound/opl3.c | *block = octave; |
block | 1005 | drivers/sound/opl3.c | int block, fnum, freq; |
block | 1024 | drivers/sound/opl3.c | freq_to_fnum (freq, &block, &fnum); |
block | 1031 | drivers/sound/opl3.c | data = 0x20 | ((block & 0x7) << 2) | ((fnum >> 8) & 0x3); /* |
block | 100 | drivers/sound/pss.c | static int pss_download_boot (unsigned char *block, int size); |
block | 643 | drivers/sound/pss.c | pss_download_boot (unsigned char *block, int size) |
block | 658 | drivers/sound/pss.c | pss_outpw (pss_base + PSS_DATA, *block++); |
block | 688 | drivers/sound/pss.c | pss_outpw (pss_base + PSS_DATA, *block++); |
block | 26 | fs/block_dev.c | int block, blocks; |
block | 56 | fs/block_dev.c | block = filp->f_pos >> blocksize_bits; |
block | 64 | fs/block_dev.c | if (block >= size) |
block | 72 | fs/block_dev.c | bh = getblk(dev, block, blocksize); |
block | 74 | fs/block_dev.c | bh = breada(dev,block,block+1,block+2,-1); |
block | 77 | fs/block_dev.c | for(i=0; i<blocks_per_cluster; i++) cluster_list[i] = block+i; |
block | 78 | fs/block_dev.c | if((block % blocks_per_cluster) == 0) |
block | 80 | fs/block_dev.c | bh = getblk(dev, block, blocksize); |
block | 87 | fs/block_dev.c | bh = bread(dev,block,blocksize); |
block | 91 | fs/block_dev.c | if (block + blocks > size) blocks = size - block; |
block | 93 | fs/block_dev.c | excess = (block + blocks) % blocks_per_cluster; |
block | 98 | fs/block_dev.c | if(((i+block) % blocks_per_cluster) == 0) { |
block | 99 | fs/block_dev.c | for(j=0; j<blocks_per_cluster; j++) cluster_list[j] = block+i+j; |
block | 102 | fs/block_dev.c | bhlist[i] = getblk (dev, block+i, blocksize); |
block | 115 | fs/block_dev.c | block++; |
block | 162 | fs/block_dev.c | unsigned int block; |
block | 207 | fs/block_dev.c | block = offset >> blocksize_bits; |
block | 215 | fs/block_dev.c | excess = (block + blocks) % blocks_per_cluster; |
block | 222 | fs/block_dev.c | if (block + blocks > size) |
block | 223 | fs/block_dev.c | blocks = size - block; |
block | 241 | fs/block_dev.c | if((block % blocks_per_cluster) == 0) { |
block | 242 | fs/block_dev.c | for(i=0; i<blocks_per_cluster; i++) cluster_list[i] = block+i; |
block | 246 | fs/block_dev.c | *bhb = getblk(dev, block++, blocksize); |
block | 276 | fs/buffer.c | #define _hashfn(dev,block) (((unsigned)(dev^block))%nr_hash) |
block | 277 | fs/buffer.c | #define hash(dev,block) hash_table[_hashfn(dev,block)] |
block | 413 | fs/buffer.c | static struct buffer_head * find_buffer(dev_t dev, int block, int size) |
block | 417 | fs/buffer.c | for (tmp = hash(dev,block) ; tmp != NULL ; tmp = tmp->b_next) |
block | 418 | fs/buffer.c | if (tmp->b_dev==dev && tmp->b_blocknr==block) |
block | 436 | fs/buffer.c | struct buffer_head * get_hash_table(dev_t dev, int block, int size) |
block | 441 | fs/buffer.c | if (!(bh=find_buffer(dev,block,size))) |
block | 445 | fs/buffer.c | if (bh->b_dev == dev && bh->b_blocknr == block && bh->b_size == size) |
block | 689 | fs/buffer.c | struct buffer_head * getblk(dev_t dev, int block, int size) |
block | 701 | fs/buffer.c | bh = get_hash_table(dev, block, size); |
block | 711 | fs/buffer.c | if (find_buffer(dev,block,size)) |
block | 726 | fs/buffer.c | bh->b_blocknr=block; |
block | 800 | fs/buffer.c | struct buffer_head * bread(dev_t dev, int block, int size) |
block | 804 | fs/buffer.c | if (!(bh = getblk(dev, block, size))) { |
block | 827 | fs/buffer.c | struct buffer_head * breada(dev_t dev, int block, int bufsize, |
block | 839 | fs/buffer.c | if (block < 0 || !(bh = getblk(dev,block,bufsize))) |
block | 857 | fs/buffer.c | bh = getblk(dev,block+i,bufsize); |
block | 1005 | fs/buffer.c | int block; |
block | 1015 | fs/buffer.c | block = *++b; |
block | 1016 | fs/buffer.c | if (!block) |
block | 1018 | fs/buffer.c | first = get_hash_table(dev, block, size); |
block | 1047 | fs/buffer.c | int block; |
block | 1055 | fs/buffer.c | block = *(p++); |
block | 1056 | fs/buffer.c | if (!block) |
block | 1058 | fs/buffer.c | if (find_buffer(dev, block, size)) |
block | 1063 | fs/buffer.c | block = 0; |
block | 1065 | fs/buffer.c | arr[block++] = bh; |
block | 1086 | fs/buffer.c | read_buffers(arr,block); |
block | 1087 | fs/buffer.c | while (block-- > 0) |
block | 1088 | fs/buffer.c | brelse(arr[block]); |
block | 1114 | fs/buffer.c | int block; |
block | 1116 | fs/buffer.c | block = b[0]; |
block | 1117 | fs/buffer.c | if (!block) |
block | 1119 | fs/buffer.c | bh = get_hash_table(dev, block, size); |
block | 1522 | fs/buffer.c | static unsigned long try_to_generate_cluster(dev_t dev, int block, int size) |
block | 1538 | fs/buffer.c | nblock = block; |
block | 1555 | fs/buffer.c | bh->b_blocknr = block++; |
block | 75 | fs/ext/file.c | int block, blocks, offset; |
block | 101 | fs/ext/file.c | block = offset >> BLOCK_SIZE_BITS; |
block | 109 | fs/ext/file.c | if (block + blocks > size) |
block | 110 | fs/ext/file.c | blocks = size - block; |
block | 128 | fs/ext/file.c | *bhb = ext_getblk(inode, block++, 0); |
block | 40 | fs/ext/freelists.c | void ext_free_block(struct super_block * sb, int block) |
block | 50 | fs/ext/freelists.c | if (block < sb->u.ext_sb.s_firstdatazone || |
block | 51 | fs/ext/freelists.c | block >= sb->u.ext_sb.s_nzones) { |
block | 55 | fs/ext/freelists.c | bh = get_hash_table(sb->s_dev, block, sb->s_blocksize); |
block | 63 | fs/ext/freelists.c | printk("ext_free_block: block full, skipping to %d\n", block); |
block | 68 | fs/ext/freelists.c | block, sb->s_blocksize))) |
block | 73 | fs/ext/freelists.c | sb->u.ext_sb.s_firstfreeblocknumber = block; |
block | 75 | fs/ext/freelists.c | efb->free[efb->count++] = block; |
block | 145 | fs/ext/freelists.c | unsigned long count, block; |
block | 153 | fs/ext/freelists.c | block = efb->next; |
block | 154 | fs/ext/freelists.c | while (block) { |
block | 155 | fs/ext/freelists.c | if (!(bh = bread (sb->s_dev, block, sb->s_blocksize))) { |
block | 157 | fs/ext/freelists.c | block = 0; |
block | 161 | fs/ext/freelists.c | block = efb->next; |
block | 180 | fs/ext/freelists.c | unsigned long block; |
block | 221 | fs/ext/freelists.c | block = 2 + (ino - 1) / EXT_INODES_PER_BLOCK; |
block | 222 | fs/ext/freelists.c | if (!(bh = bread(dev, block, sb->s_blocksize))) |
block | 244 | fs/ext/freelists.c | unsigned long block; |
block | 270 | fs/ext/freelists.c | block = 2 + (((unsigned long) efi->next) - 1) / EXT_INODES_PER_BLOCK; |
block | 276 | fs/ext/freelists.c | bread(sb->s_dev, block, sb->s_blocksize))) |
block | 305 | fs/ext/freelists.c | unsigned long count, block, ino; |
block | 321 | fs/ext/freelists.c | block = 2 + ((ino - 1) / EXT_INODES_PER_BLOCK); |
block | 322 | fs/ext/freelists.c | if (!(bh = bread (sb->s_dev, block, sb->s_blocksize))) { |
block | 324 | fs/ext/freelists.c | block = 0; |
block | 30 | fs/ext/fsync.c | static int sync_block (struct inode * inode, unsigned long * block, int wait) |
block | 35 | fs/ext/fsync.c | if (!*block) |
block | 37 | fs/ext/fsync.c | tmp = *block; |
block | 38 | fs/ext/fsync.c | bh = get_hash_table(inode->i_dev, *block, blocksize); |
block | 41 | fs/ext/fsync.c | if (*block != tmp) { |
block | 62 | fs/ext/inode.c | int dev = s->s_dev,block; |
block | 107 | fs/ext/inode.c | block = 2 + (s->u.ext_sb.s_firstfreeinodenumber - 1) / EXT_INODES_PER_BLOCK; |
block | 108 | fs/ext/inode.c | if (!(s->u.ext_sb.s_firstfreeinodeblock = bread(dev, block, BLOCK_SIZE))) { |
block | 177 | fs/ext/inode.c | int ext_bmap(struct inode * inode,int block) |
block | 181 | fs/ext/inode.c | if (block<0) { |
block | 185 | fs/ext/inode.c | if (block >= 9+256+256*256+256*256*256) { |
block | 189 | fs/ext/inode.c | if (block<9) |
block | 190 | fs/ext/inode.c | return inode_bmap(inode,block); |
block | 191 | fs/ext/inode.c | block -= 9; |
block | 192 | fs/ext/inode.c | if (block<256) { |
block | 196 | fs/ext/inode.c | return block_bmap(bread(inode->i_dev,i,BLOCK_SIZE),block); |
block | 198 | fs/ext/inode.c | block -= 256; |
block | 199 | fs/ext/inode.c | if (block<256*256) { |
block | 203 | fs/ext/inode.c | i = block_bmap(bread(inode->i_dev,i,BLOCK_SIZE),block>>8); |
block | 206 | fs/ext/inode.c | return block_bmap(bread(inode->i_dev,i,BLOCK_SIZE),block & 255); |
block | 208 | fs/ext/inode.c | block -= 256*256; |
block | 212 | fs/ext/inode.c | i = block_bmap(bread(inode->i_dev,i,BLOCK_SIZE),block>>16); |
block | 215 | fs/ext/inode.c | i = block_bmap(bread(inode->i_dev,i,BLOCK_SIZE),(block>>8) & 255); |
block | 218 | fs/ext/inode.c | return block_bmap(bread(inode->i_dev,i,BLOCK_SIZE),block & 255); |
block | 304 | fs/ext/inode.c | struct buffer_head * ext_getblk(struct inode * inode, int block, int create) |
block | 308 | fs/ext/inode.c | if (block<0) { |
block | 312 | fs/ext/inode.c | if (block >= 9+256+256*256+256*256*256) { |
block | 316 | fs/ext/inode.c | if (block<9) |
block | 317 | fs/ext/inode.c | return inode_getblk(inode,block,create); |
block | 318 | fs/ext/inode.c | block -= 9; |
block | 319 | fs/ext/inode.c | if (block<256) { |
block | 321 | fs/ext/inode.c | return block_getblk(inode,bh,block,create); |
block | 323 | fs/ext/inode.c | block -= 256; |
block | 324 | fs/ext/inode.c | if (block<256*256) { |
block | 326 | fs/ext/inode.c | bh = block_getblk(inode,bh,block>>8,create); |
block | 327 | fs/ext/inode.c | return block_getblk(inode,bh,block & 255,create); |
block | 329 | fs/ext/inode.c | block -= 256*256; |
block | 331 | fs/ext/inode.c | bh = block_getblk(inode,bh,block>>16,create); |
block | 332 | fs/ext/inode.c | bh = block_getblk(inode,bh,(block>>8) & 255,create); |
block | 333 | fs/ext/inode.c | return block_getblk(inode,bh,block & 255,create); |
block | 336 | fs/ext/inode.c | struct buffer_head * ext_bread(struct inode * inode, int block, int create) |
block | 340 | fs/ext/inode.c | bh = ext_getblk(inode,block,create); |
block | 355 | fs/ext/inode.c | int block; |
block | 357 | fs/ext/inode.c | block = 2 + (inode->i_ino-1)/EXT_INODES_PER_BLOCK; |
block | 358 | fs/ext/inode.c | if (!(bh=bread(inode->i_dev, block, BLOCK_SIZE))) |
block | 371 | fs/ext/inode.c | else for (block = 0; block < 12; block++) |
block | 372 | fs/ext/inode.c | inode->u.ext_i.i_data[block] = raw_inode->i_zone[block]; |
block | 393 | fs/ext/inode.c | int block; |
block | 395 | fs/ext/inode.c | block = 2 + (inode->i_ino-1)/EXT_INODES_PER_BLOCK; |
block | 396 | fs/ext/inode.c | if (!(bh=bread(inode->i_dev, block, BLOCK_SIZE))) |
block | 408 | fs/ext/inode.c | else for (block = 0; block < 12; block++) |
block | 409 | fs/ext/inode.c | raw_inode->i_zone[block] = inode->u.ext_i.i_data[block]; |
block | 167 | fs/ext2/balloc.c | void ext2_free_blocks (struct super_block * sb, unsigned long block, |
block | 185 | fs/ext2/balloc.c | if (block < es->s_first_data_block || |
block | 186 | fs/ext2/balloc.c | (block + count) > es->s_blocks_count) { |
block | 189 | fs/ext2/balloc.c | "block = %lu, count = %lu", block, count); |
block | 194 | fs/ext2/balloc.c | ext2_debug ("freeing block %lu\n", block); |
block | 196 | fs/ext2/balloc.c | block_group = (block - es->s_first_data_block) / |
block | 198 | fs/ext2/balloc.c | bit = (block - es->s_first_data_block) % EXT2_BLOCKS_PER_GROUP(sb); |
block | 203 | fs/ext2/balloc.c | block, count); |
block | 209 | fs/ext2/balloc.c | (in_range (gdp->bg_block_bitmap, block, count) || |
block | 210 | fs/ext2/balloc.c | in_range (gdp->bg_inode_bitmap, block, count) || |
block | 211 | fs/ext2/balloc.c | in_range (block, gdp->bg_inode_table, |
block | 213 | fs/ext2/balloc.c | in_range (block + count - 1, gdp->bg_inode_table, |
block | 218 | fs/ext2/balloc.c | block, count); |
block | 224 | fs/ext2/balloc.c | block); |
block | 511 | fs/ext2/balloc.c | static inline int block_in_use (unsigned long block, |
block | 515 | fs/ext2/balloc.c | return test_bit ((block - sb->u.ext2_sb.s_es->s_first_data_block) % |
block | 83 | fs/ext2/file.c | int block, blocks, offset; |
block | 114 | fs/ext2/file.c | block = offset >> EXT2_BLOCK_SIZE_BITS(sb); |
block | 122 | fs/ext2/file.c | if (block + blocks > size) |
block | 123 | fs/ext2/file.c | blocks = size - block; |
block | 146 | fs/ext2/file.c | if(!clusterblocks) clusterblocks = ext2_getcluster(inode, block); |
block | 150 | fs/ext2/file.c | *bhb = ext2_getblk (inode, block++, 0, &err); |
block | 30 | fs/ext2/fsync.c | static int sync_block (struct inode * inode, unsigned long * block, int wait) |
block | 35 | fs/ext2/fsync.c | if (!*block) |
block | 37 | fs/ext2/fsync.c | tmp = *block; |
block | 38 | fs/ext2/fsync.c | bh = get_hash_table (inode->i_dev, *block, blocksize); |
block | 41 | fs/ext2/fsync.c | if (*block != tmp) { |
block | 127 | fs/ext2/inode.c | int ext2_bmap (struct inode * inode, int block) |
block | 132 | fs/ext2/inode.c | if (block < 0) { |
block | 136 | fs/ext2/inode.c | if (block >= EXT2_NDIR_BLOCKS + addr_per_block + |
block | 142 | fs/ext2/inode.c | if (block < EXT2_NDIR_BLOCKS) |
block | 143 | fs/ext2/inode.c | return inode_bmap (inode, block); |
block | 144 | fs/ext2/inode.c | block -= EXT2_NDIR_BLOCKS; |
block | 145 | fs/ext2/inode.c | if (block < addr_per_block) { |
block | 150 | fs/ext2/inode.c | inode->i_sb->s_blocksize), block); |
block | 152 | fs/ext2/inode.c | block -= addr_per_block; |
block | 153 | fs/ext2/inode.c | if (block < addr_per_block * addr_per_block) { |
block | 159 | fs/ext2/inode.c | block / addr_per_block); |
block | 164 | fs/ext2/inode.c | block & (addr_per_block - 1)); |
block | 166 | fs/ext2/inode.c | block -= addr_per_block * addr_per_block; |
block | 171 | fs/ext2/inode.c | block / (addr_per_block * addr_per_block)); |
block | 175 | fs/ext2/inode.c | (block / addr_per_block) & (addr_per_block - 1)); |
block | 179 | fs/ext2/inode.c | block & (addr_per_block - 1)); |
block | 359 | fs/ext2/inode.c | struct buffer_head * ext2_getblk (struct inode * inode, long block, |
block | 367 | fs/ext2/inode.c | if (block < 0) { |
block | 371 | fs/ext2/inode.c | if (block > EXT2_NDIR_BLOCKS + addr_per_block + |
block | 383 | fs/ext2/inode.c | ext2_debug ("block %lu, next %lu, goal %lu.\n", block, |
block | 387 | fs/ext2/inode.c | if (block == inode->u.ext2_i.i_next_alloc_block + 1) { |
block | 393 | fs/ext2/inode.c | b = block; |
block | 394 | fs/ext2/inode.c | if (block < EXT2_NDIR_BLOCKS) |
block | 395 | fs/ext2/inode.c | return inode_getblk (inode, block, create, b, err); |
block | 396 | fs/ext2/inode.c | block -= EXT2_NDIR_BLOCKS; |
block | 397 | fs/ext2/inode.c | if (block < addr_per_block) { |
block | 399 | fs/ext2/inode.c | return block_getblk (inode, bh, block, create, |
block | 402 | fs/ext2/inode.c | block -= addr_per_block; |
block | 403 | fs/ext2/inode.c | if (block < addr_per_block * addr_per_block) { |
block | 405 | fs/ext2/inode.c | bh = block_getblk (inode, bh, block / addr_per_block, create, |
block | 407 | fs/ext2/inode.c | return block_getblk (inode, bh, block & (addr_per_block - 1), |
block | 410 | fs/ext2/inode.c | block -= addr_per_block * addr_per_block; |
block | 412 | fs/ext2/inode.c | bh = block_getblk (inode, bh, block/(addr_per_block * addr_per_block), |
block | 414 | fs/ext2/inode.c | bh = block_getblk (inode, bh, (block/addr_per_block) & (addr_per_block - 1), |
block | 416 | fs/ext2/inode.c | return block_getblk (inode, bh, block & (addr_per_block - 1), create, |
block | 420 | fs/ext2/inode.c | int ext2_getcluster (struct inode * inode, long block) |
block | 429 | fs/ext2/inode.c | if (block < 0) { |
block | 433 | fs/ext2/inode.c | if (block > EXT2_NDIR_BLOCKS + addr_per_block + |
block | 441 | fs/ext2/inode.c | b = block; |
block | 442 | fs/ext2/inode.c | if (block < EXT2_NDIR_BLOCKS) return 0; |
block | 444 | fs/ext2/inode.c | block -= EXT2_NDIR_BLOCKS; |
block | 446 | fs/ext2/inode.c | if (block < addr_per_block) { |
block | 448 | fs/ext2/inode.c | return block_getcluster (inode, bh, block, |
block | 451 | fs/ext2/inode.c | block -= addr_per_block; |
block | 452 | fs/ext2/inode.c | if (block < addr_per_block * addr_per_block) { |
block | 454 | fs/ext2/inode.c | bh = block_getblk (inode, bh, block / addr_per_block, create, |
block | 456 | fs/ext2/inode.c | return block_getcluster (inode, bh, block & (addr_per_block - 1), |
block | 459 | fs/ext2/inode.c | block -= addr_per_block * addr_per_block; |
block | 461 | fs/ext2/inode.c | bh = block_getblk (inode, bh, block/(addr_per_block * addr_per_block), |
block | 463 | fs/ext2/inode.c | bh = block_getblk (inode, bh, (block/addr_per_block) & (addr_per_block - 1), |
block | 465 | fs/ext2/inode.c | return block_getcluster (inode, bh, block & (addr_per_block - 1), |
block | 469 | fs/ext2/inode.c | struct buffer_head * ext2_bread (struct inode * inode, int block, |
block | 474 | fs/ext2/inode.c | bh = ext2_getblk (inode, block, create, err); |
block | 493 | fs/ext2/inode.c | unsigned long block; |
block | 514 | fs/ext2/inode.c | block = gdp[desc].bg_inode_table + |
block | 517 | fs/ext2/inode.c | if (!(bh = bread (inode->i_dev, block, inode->i_sb->s_blocksize))) |
block | 520 | fs/ext2/inode.c | "inode=%lu, block=%lu", inode->i_ino, block); |
block | 551 | fs/ext2/inode.c | else for (block = 0; block < EXT2_N_BLOCKS; block++) |
block | 552 | fs/ext2/inode.c | inode->u.ext2_i.i_data[block] = raw_inode->i_block[block]; |
block | 585 | fs/ext2/inode.c | unsigned long block; |
block | 605 | fs/ext2/inode.c | block = gdp[desc].bg_inode_table + |
block | 608 | fs/ext2/inode.c | if (!(bh = bread (inode->i_dev, block, inode->i_sb->s_blocksize))) |
block | 611 | fs/ext2/inode.c | "inode=%lu, block=%lu", inode->i_ino, block); |
block | 633 | fs/ext2/inode.c | else for (block = 0; block < EXT2_N_BLOCKS; block++) |
block | 634 | fs/ext2/inode.c | raw_inode->i_block[block] = inode->u.ext2_i.i_data[block]; |
block | 75 | fs/ext2/namei.c | int block, toread, i, err; |
block | 92 | fs/ext2/namei.c | for (block = 0; block < NAMEI_RA_SIZE; ++block) { |
block | 95 | fs/ext2/namei.c | if ((block << EXT2_BLOCK_SIZE_BITS (sb)) >= dir->i_size) |
block | 97 | fs/ext2/namei.c | bh = ext2_getblk (dir, block, 0, &err); |
block | 98 | fs/ext2/namei.c | bh_use[block] = bh; |
block | 103 | fs/ext2/namei.c | block = 0; |
block | 110 | fs/ext2/namei.c | if ((block % NAMEI_RA_BLOCKS) == 0 && toread) { |
block | 114 | fs/ext2/namei.c | bh = bh_use[block % NAMEI_RA_SIZE]; |
block | 146 | fs/ext2/namei.c | if (((block + NAMEI_RA_SIZE) << EXT2_BLOCK_SIZE_BITS (sb)) >= |
block | 150 | fs/ext2/namei.c | bh = ext2_getblk (dir, block + NAMEI_RA_SIZE, 0, &err); |
block | 151 | fs/ext2/namei.c | bh_use[block++ % NAMEI_RA_SIZE] = bh; |
block | 348 | fs/ext2/super.c | unsigned long block = sb->u.ext2_sb.s_es->s_first_data_block; |
block | 357 | fs/ext2/super.c | if (gdp->bg_block_bitmap < block || |
block | 358 | fs/ext2/super.c | gdp->bg_block_bitmap >= block + EXT2_BLOCKS_PER_GROUP(sb)) |
block | 366 | fs/ext2/super.c | if (gdp->bg_inode_bitmap < block || |
block | 367 | fs/ext2/super.c | gdp->bg_inode_bitmap >= block + EXT2_BLOCKS_PER_GROUP(sb)) |
block | 375 | fs/ext2/super.c | if (gdp->bg_inode_table < block || |
block | 377 | fs/ext2/super.c | block + EXT2_BLOCKS_PER_GROUP(sb)) |
block | 385 | fs/ext2/super.c | block += EXT2_BLOCKS_PER_GROUP(sb); |
block | 872 | fs/hpfs/hpfs_fs.c | char *block; |
block | 903 | fs/hpfs/hpfs_fs.c | block = map_sector(inode->i_dev, hpfs_bmap(inode, q), &bh); |
block | 904 | fs/hpfs/hpfs_fs.c | if (!block) |
block | 912 | fs/hpfs/hpfs_fs.c | inode->i_hpfs_conv = choose_conv(block + r, n); |
block | 919 | fs/hpfs/hpfs_fs.c | memcpy_tofs(buf, block + r, n); |
block | 926 | fs/hpfs/hpfs_fs.c | n0 = convcpy_tofs(buf, block + r, n); |
block | 332 | fs/inode.c | int bmap(struct inode * inode, int block) |
block | 335 | fs/inode.c | return inode->i_op->bmap(inode,block); |
block | 20 | fs/ioctl.c | int block; |
block | 31 | fs/ioctl.c | block = get_fs_long((long *) arg); |
block | 32 | fs/ioctl.c | block = filp->f_inode->i_op->bmap(filp->f_inode,block); |
block | 33 | fs/ioctl.c | put_fs_long(block,(long *) arg); |
block | 72 | fs/isofs/dir.c | unsigned int block,offset,i, j; |
block | 88 | fs/isofs/dir.c | block = isofs_bmap(inode,filp->f_pos>>bufbits); |
block | 90 | fs/isofs/dir.c | if(!block) return 0; |
block | 92 | fs/isofs/dir.c | if(!(bh = breada(inode->i_dev, block, bufsize, filp->f_pos, inode->i_size))) |
block | 98 | fs/isofs/dir.c | block, offset, filp->f_pos); |
block | 101 | fs/isofs/dir.c | inode_number = (block << bufbits) + (offset & (bufsize - 1)); |
block | 112 | fs/isofs/dir.c | block = isofs_bmap(inode,(filp->f_pos)>>bufbits); |
block | 113 | fs/isofs/dir.c | if (!block |
block | 114 | fs/isofs/dir.c | || !(bh = breada(inode->i_dev, block, bufsize, filp->f_pos, |
block | 138 | fs/isofs/dir.c | block = isofs_bmap(inode,(filp->f_pos)>> bufbits); |
block | 139 | fs/isofs/dir.c | if (!block |
block | 140 | fs/isofs/dir.c | || !(bh = breada(inode->i_dev, block, bufsize, |
block | 100 | fs/isofs/file.c | int block; |
block | 105 | fs/isofs/file.c | block = isofs_bmap(inode,0); |
block | 106 | fs/isofs/file.c | if (block && (bh = bread(inode->i_dev,block, ISOFS_BUFFER_SIZE(inode)))) { |
block | 126 | fs/isofs/file.c | int block, blocks, offset, total_blocks; |
block | 152 | fs/isofs/file.c | block = filp->f_pos >> ISOFS_BUFFER_BITS(inode); |
block | 170 | fs/isofs/file.c | if (block + blocks > total_blocks) |
block | 171 | fs/isofs/file.c | blocks = total_blocks - block; |
block | 191 | fs/isofs/file.c | *bhb = getblk(inode->i_dev,isofs_bmap(inode, block++), ISOFS_BUFFER_SIZE(inode)); |
block | 399 | fs/isofs/inode.c | int isofs_bmap(struct inode * inode,int block) |
block | 402 | fs/isofs/inode.c | if (block<0) { |
block | 406 | fs/isofs/inode.c | return (inode->u.isofs_i.i_first_extent >> ISOFS_BUFFER_BITS(inode)) + block; |
block | 417 | fs/isofs/inode.c | int block; |
block | 420 | fs/isofs/inode.c | block = inode->i_ino >> ISOFS_BUFFER_BITS(inode); |
block | 421 | fs/isofs/inode.c | if (!(bh=bread(inode->i_dev,block, bufsize))) { |
block | 444 | fs/isofs/inode.c | if (!(bh = bread(inode->i_dev,++block, bufsize))) { |
block | 516 | fs/isofs/inode.c | printk("Get inode %d: %d %d: %d\n",inode->i_ino, block, |
block | 622 | fs/isofs/inode.c | unsigned int block,offset; |
block | 632 | fs/isofs/inode.c | block = extent << (ISOFS_BLOCK_BITS - bufbits); |
block | 633 | fs/isofs/inode.c | if (!(bh = bread(parent->i_dev, block, bufsize))) return -1; |
block | 669 | fs/isofs/inode.c | block = parent_dir << (ISOFS_BLOCK_BITS - bufbits); |
block | 670 | fs/isofs/inode.c | if (!block || !(bh = bread(parent->i_dev,block, bufsize))) |
block | 676 | fs/isofs/inode.c | inode_number = (block << bufbits)+(offset & (bufsize - 1)); |
block | 686 | fs/isofs/inode.c | block++; |
block | 689 | fs/isofs/inode.c | if((block & 1) && (ISOFS_BLOCK_BITS - bufbits)) |
block | 691 | fs/isofs/inode.c | if (!block |
block | 692 | fs/isofs/inode.c | || !(bh = bread(parent->i_dev,block, bufsize))) |
block | 716 | fs/isofs/inode.c | block++; |
block | 717 | fs/isofs/inode.c | if(!(bh = bread(parent->i_dev,block,bufsize))) { |
block | 768 | fs/isofs/inode.c | struct buffer_head * leak_check_bread(int dev, int block, int size){ |
block | 770 | fs/isofs/inode.c | return bread(dev, block, size); |
block | 70 | fs/isofs/namei.c | unsigned int block, i, f_pos, offset, inode_number; |
block | 84 | fs/isofs/namei.c | if (!(block = dir->u.isofs_i.i_first_extent)) return NULL; |
block | 89 | fs/isofs/namei.c | block = isofs_bmap(dir,f_pos >> bufbits); |
block | 91 | fs/isofs/namei.c | if (!block || !(bh = bread(dir->i_dev,block,bufsize))) return NULL; |
block | 96 | fs/isofs/namei.c | inode_number = (block << bufbits) + (offset & (bufsize - 1)); |
block | 106 | fs/isofs/namei.c | block = isofs_bmap(dir,f_pos>>bufbits); |
block | 107 | fs/isofs/namei.c | if (!block || !(bh = bread(dir->i_dev,block,bufsize))) |
block | 128 | fs/isofs/namei.c | block = isofs_bmap(dir,f_pos>>bufbits); |
block | 129 | fs/isofs/namei.c | if (!block || !(bh = bread(dir->i_dev,block,bufsize))) { |
block | 59 | fs/isofs/rock.c | int block, offset, offset1; \ |
block | 63 | fs/isofs/rock.c | block = cont_extent; \ |
block | 67 | fs/isofs/rock.c | block <<= 1; \ |
block | 68 | fs/isofs/rock.c | if (offset >= 1024) block++; \ |
block | 71 | fs/isofs/rock.c | bh = bread(DEV->i_dev, block++, ISOFS_BUFFER_SIZE(DEV)); \ |
block | 82 | fs/isofs/rock.c | bh = bread(DEV->i_dev, block, ISOFS_BUFFER_SIZE(DEV)); \ |
block | 404 | fs/isofs/rock.c | int block; |
block | 416 | fs/isofs/rock.c | block = inode->i_ino >> bufbits; |
block | 417 | fs/isofs/rock.c | if (!(bh=bread(inode->i_dev,block, bufsize))) { |
block | 435 | fs/isofs/rock.c | if (!(bh = bread(inode->i_dev,++block, bufsize))) { |
block | 50 | fs/minix/bitmap.c | void minix_free_block(struct super_block * sb, int block) |
block | 59 | fs/minix/bitmap.c | if (block < sb->u.minix_sb.s_firstdatazone || |
block | 60 | fs/minix/bitmap.c | block >= sb->u.minix_sb.s_nzones) { |
block | 64 | fs/minix/bitmap.c | bh = get_hash_table(sb->s_dev,block,BLOCK_SIZE); |
block | 68 | fs/minix/bitmap.c | zone = block - sb->u.minix_sb.s_firstdatazone + 1; |
block | 77 | fs/minix/bitmap.c | printk("free_block (%04x:%d): bit already cleared\n",sb->s_dev,block); |
block | 73 | fs/minix/file.c | int block, blocks, offset; |
block | 99 | fs/minix/file.c | block = offset >> BLOCK_SIZE_BITS; |
block | 107 | fs/minix/file.c | if (block + blocks > size) |
block | 108 | fs/minix/file.c | blocks = size - block; |
block | 126 | fs/minix/file.c | *bhb = minix_getblk(inode, block++, 0); |
block | 31 | fs/minix/fsync.c | static int sync_block (struct inode * inode, unsigned short * block, int wait) |
block | 36 | fs/minix/fsync.c | if (!*block) |
block | 38 | fs/minix/fsync.c | tmp = *block; |
block | 39 | fs/minix/fsync.c | bh = get_hash_table(inode->i_dev, *block, blocksize); |
block | 42 | fs/minix/fsync.c | if (*block != tmp) { |
block | 129 | fs/minix/inode.c | int i,dev=s->s_dev,block; |
block | 176 | fs/minix/inode.c | block=2; |
block | 178 | fs/minix/inode.c | if ((s->u.minix_sb.s_imap[i]=bread(dev,block,BLOCK_SIZE)) != NULL) |
block | 179 | fs/minix/inode.c | block++; |
block | 183 | fs/minix/inode.c | if ((s->u.minix_sb.s_zmap[i]=bread(dev,block,BLOCK_SIZE)) != NULL) |
block | 184 | fs/minix/inode.c | block++; |
block | 187 | fs/minix/inode.c | if (block != 2+s->u.minix_sb.s_imap_blocks+s->u.minix_sb.s_zmap_blocks) { |
block | 258 | fs/minix/inode.c | int minix_bmap(struct inode * inode,int block) |
block | 262 | fs/minix/inode.c | if (block<0) { |
block | 266 | fs/minix/inode.c | if (block >= 7+512+512*512) { |
block | 270 | fs/minix/inode.c | if (block < 7) |
block | 271 | fs/minix/inode.c | return inode_bmap(inode,block); |
block | 272 | fs/minix/inode.c | block -= 7; |
block | 273 | fs/minix/inode.c | if (block < 512) { |
block | 277 | fs/minix/inode.c | return block_bmap(bread(inode->i_dev,i,BLOCK_SIZE),block); |
block | 279 | fs/minix/inode.c | block -= 512; |
block | 283 | fs/minix/inode.c | i = block_bmap(bread(inode->i_dev,i,BLOCK_SIZE),block>>9); |
block | 286 | fs/minix/inode.c | return block_bmap(bread(inode->i_dev,i,BLOCK_SIZE),block & 511); |
block | 372 | fs/minix/inode.c | struct buffer_head * minix_getblk(struct inode * inode, int block, int create) |
block | 376 | fs/minix/inode.c | if (block<0) { |
block | 380 | fs/minix/inode.c | if (block >= 7+512+512*512) { |
block | 384 | fs/minix/inode.c | if (block < 7) |
block | 385 | fs/minix/inode.c | return inode_getblk(inode,block,create); |
block | 386 | fs/minix/inode.c | block -= 7; |
block | 387 | fs/minix/inode.c | if (block < 512) { |
block | 389 | fs/minix/inode.c | return block_getblk(inode, bh, block, create); |
block | 391 | fs/minix/inode.c | block -= 512; |
block | 393 | fs/minix/inode.c | bh = block_getblk(inode, bh, block>>9, create); |
block | 394 | fs/minix/inode.c | return block_getblk(inode, bh, block & 511, create); |
block | 397 | fs/minix/inode.c | struct buffer_head * minix_bread(struct inode * inode, int block, int create) |
block | 401 | fs/minix/inode.c | bh = minix_getblk(inode,block,create); |
block | 416 | fs/minix/inode.c | int block, ino; |
block | 426 | fs/minix/inode.c | block = 2 + inode->i_sb->u.minix_sb.s_imap_blocks + |
block | 429 | fs/minix/inode.c | if (!(bh=bread(inode->i_dev,block, BLOCK_SIZE))) { |
block | 445 | fs/minix/inode.c | else for (block = 0; block < 9; block++) |
block | 446 | fs/minix/inode.c | inode->u.minix_i.i_data[block] = raw_inode->i_zone[block]; |
block | 466 | fs/minix/inode.c | int ino, block; |
block | 475 | fs/minix/inode.c | block = 2 + inode->i_sb->u.minix_sb.s_imap_blocks + inode->i_sb->u.minix_sb.s_zmap_blocks + |
block | 477 | fs/minix/inode.c | if (!(bh=bread(inode->i_dev, block, BLOCK_SIZE))) { |
block | 492 | fs/minix/inode.c | else for (block = 0; block < 9; block++) |
block | 493 | fs/minix/inode.c | raw_inode->i_zone[block] = inode->u.minix_i.i_data[block]; |
block | 71 | fs/minix/namei.c | unsigned long block, offset; |
block | 87 | fs/minix/namei.c | block = offset = 0; |
block | 88 | fs/minix/namei.c | while (block*BLOCK_SIZE+offset < dir->i_size) { |
block | 90 | fs/minix/namei.c | bh = minix_bread(dir,block,0); |
block | 92 | fs/minix/namei.c | block++; |
block | 104 | fs/minix/namei.c | block++; |
block | 155 | fs/minix/namei.c | unsigned long block, offset; |
block | 175 | fs/minix/namei.c | block = offset = 0; |
block | 178 | fs/minix/namei.c | bh = minix_bread(dir,block,1); |
block | 184 | fs/minix/namei.c | if (block*bh->b_size + offset > dir->i_size) { |
block | 186 | fs/minix/namei.c | dir->i_size = block*bh->b_size + offset; |
block | 209 | fs/minix/namei.c | block++; |
block | 380 | fs/minix/namei.c | unsigned int block, offset; |
block | 388 | fs/minix/namei.c | block = 0; |
block | 404 | fs/minix/namei.c | while (block*BLOCK_SIZE+offset < inode->i_size) { |
block | 406 | fs/minix/namei.c | bh = minix_bread(inode,block,0); |
block | 408 | fs/minix/namei.c | block++; |
block | 423 | fs/minix/namei.c | block++; |
block | 13 | fs/msdos/buffer.c | int block) |
block | 17 | fs/msdos/buffer.c | ret = bread (sb->s_dev,block,512); |
block | 19 | fs/msdos/buffer.c | struct buffer_head *real = bread (sb->s_dev,block>>1,1024); |
block | 55 | fs/msdos/buffer.c | if (block & 1) ret->b_data += 512; |
block | 66 | fs/msdos/buffer.c | int block) |
block | 70 | fs/msdos/buffer.c | ret = getblk (sb->s_dev,block,512); |
block | 78 | fs/msdos/buffer.c | ret = msdos_bread (sb,block); |
block | 337 | fs/msdos/inode.c | int msdos_bmap(struct inode *inode,int block) |
block | 344 | fs/msdos/inode.c | return sb->dir_start + block; |
block | 346 | fs/msdos/inode.c | cluster = block/sb->cluster_size; |
block | 347 | fs/msdos/inode.c | offset = block % sb->cluster_size; |
block | 2 | fs/msdos/msbuffer.h | struct buffer_head *msdos_bread (struct super_block *sb, int block); |
block | 3 | fs/msdos/msbuffer.h | struct buffer_head *msdos_getblk (struct super_block *sb, int block); |
block | 36 | fs/sysv/balloc.c | void sysv_free_block(struct super_block * sb, unsigned int block) |
block | 45 | fs/sysv/balloc.c | if (block < sb->sv_firstdatazone || block >= sb->sv_nzones) { |
block | 62 | fs/sysv/balloc.c | bh = sv_getblk(sb, sb->s_dev, block); |
block | 99 | fs/sysv/balloc.c | bh = sv_getblk(sb, sb->s_dev, block); |
block | 113 | fs/sysv/balloc.c | bh = sv_get_hash_table(sb, sb->s_dev, block); |
block | 119 | fs/sysv/balloc.c | block = to_coh_ulong(block); |
block | 120 | fs/sysv/balloc.c | sb->sv_sb_flc_blocks[(*sb->sv_sb_flc_count)++] = block; |
block | 134 | fs/sysv/balloc.c | unsigned int block; |
block | 147 | fs/sysv/balloc.c | block = sb->sv_sb_flc_blocks[(*sb->sv_sb_flc_count)-1]; |
block | 149 | fs/sysv/balloc.c | block = from_coh_ulong(block); |
block | 150 | fs/sysv/balloc.c | if (block == 0) { /* Applies only to Xenix FS, SystemV FS */ |
block | 155 | fs/sysv/balloc.c | if (block < sb->sv_firstdatazone || block >= sb->sv_nzones) { |
block | 156 | fs/sysv/balloc.c | printk("sysv_new_block: new block %d is not in data zone\n",block); |
block | 164 | fs/sysv/balloc.c | if (!(bh = sv_bread(sb, sb->s_dev, block))) { |
block | 202 | fs/sysv/balloc.c | bh = sv_getblk(sb, sb->s_dev, block); |
block | 226 | fs/sysv/balloc.c | return block; |
block | 233 | fs/sysv/balloc.c | unsigned int block; |
block | 243 | fs/sysv/balloc.c | block = sb->sv_sb_flc_blocks[--i]; |
block | 245 | fs/sysv/balloc.c | block = from_coh_ulong(block); |
block | 246 | fs/sysv/balloc.c | if (block == 0) /* block 0 terminates list */ |
block | 257 | fs/sysv/balloc.c | if (block < sb->sv_firstdatazone || block >= sb->sv_nzones) { |
block | 258 | fs/sysv/balloc.c | printk("sysv_count_free_blocks: new block %d is not in data zone\n",block); |
block | 261 | fs/sysv/balloc.c | if (!(bh = sv_bread(sb, sb->s_dev, block))) { |
block | 295 | fs/sysv/balloc.c | block = flc_blocks[--i]; |
block | 297 | fs/sysv/balloc.c | block = from_coh_ulong(block); |
block | 298 | fs/sysv/balloc.c | if (block == 0) /* block 0 terminates list */ |
block | 306 | fs/sysv/balloc.c | if (block == 0) /* Applies only to Xenix FS and SystemV FS */ |
block | 80 | fs/sysv/file.c | unsigned int block; |
block | 107 | fs/sysv/file.c | block = offset >> sb->sv_block_size_bits; |
block | 114 | fs/sysv/file.c | if (block + blocks > size) |
block | 115 | fs/sysv/file.c | blocks = size - block; |
block | 134 | fs/sysv/file.c | *bhb = sysv_getblk(inode, block++, 0); |
block | 36 | fs/sysv/fsync.c | unsigned long tmp, block; |
block | 39 | fs/sysv/fsync.c | block = tmp = *blockp; |
block | 41 | fs/sysv/fsync.c | block = from_coh_ulong(block); |
block | 42 | fs/sysv/fsync.c | if (!block) |
block | 45 | fs/sysv/fsync.c | bh = sv_get_hash_table(sb, inode->i_dev, block); |
block | 70 | fs/sysv/fsync.c | unsigned long tmp, block; |
block | 73 | fs/sysv/fsync.c | block = tmp = *iblockp; |
block | 75 | fs/sysv/fsync.c | block = from_coh_ulong(block); |
block | 76 | fs/sysv/fsync.c | if (!block) |
block | 81 | fs/sysv/fsync.c | *bh = sv_bread(inode->i_sb, inode->i_dev, block); |
block | 112 | fs/sysv/ialloc.c | int i,j,ino,block; |
block | 130 | fs/sysv/ialloc.c | for (i = 0, ino = SYSV_ROOT_INO+1, block = sb->sv_firstinodezone, j = SYSV_ROOT_INO ; i < sb->sv_fic_size && block < sb->sv_firstdatazone ; block++, j = 0) { |
block | 131 | fs/sysv/ialloc.c | if (!(bh = sv_bread(sb, sb->s_dev, block))) { |
block | 185 | fs/sysv/ialloc.c | int j,block,count; |
block | 196 | fs/sysv/ialloc.c | for (block = sb->sv_firstinodezone, j = SYSV_ROOT_INO ; block < sb->sv_firstdatazone ; block++, j = 0) { |
block | 197 | fs/sysv/ialloc.c | if (!(bh = sv_bread(sb, sb->s_dev, block))) { |
block | 583 | fs/sysv/inode.c | unsigned int block = block_nr; |
block | 589 | fs/sysv/inode.c | if (block < 10) |
block | 590 | fs/sysv/inode.c | return inode_bmap(sb,inode,block); |
block | 591 | fs/sysv/inode.c | block -= 10; |
block | 593 | fs/sysv/inode.c | if (block < sb->sv_ind_per_block) { |
block | 598 | fs/sysv/inode.c | return block_bmap(sb, bh, block, convert); |
block | 600 | fs/sysv/inode.c | block -= sb->sv_ind_per_block; |
block | 601 | fs/sysv/inode.c | if (block < sb->sv_ind_per_block_2) { |
block | 606 | fs/sysv/inode.c | i = block_bmap(sb, bh, block >> sb->sv_ind_per_block_bits, convert); |
block | 610 | fs/sysv/inode.c | return block_bmap(sb, bh, block & sb->sv_ind_per_block_1, convert); |
block | 612 | fs/sysv/inode.c | block -= sb->sv_ind_per_block_2; |
block | 613 | fs/sysv/inode.c | if (block < sb->sv_ind_per_block_3) { |
block | 618 | fs/sysv/inode.c | i = block_bmap(sb, bh, block >> sb->sv_ind_per_block_2_bits, convert); |
block | 622 | fs/sysv/inode.c | i = block_bmap(sb, bh, (block >> sb->sv_ind_per_block_bits) & sb->sv_ind_per_block_1,convert); |
block | 626 | fs/sysv/inode.c | return block_bmap(sb, bh, block & sb->sv_ind_per_block_1, convert); |
block | 628 | fs/sysv/inode.c | if ((int)block<0) { |
block | 680 | fs/sysv/inode.c | unsigned long tmp, block; |
block | 697 | fs/sysv/inode.c | block = tmp = *p; |
block | 699 | fs/sysv/inode.c | block = from_coh_ulong(block); |
block | 701 | fs/sysv/inode.c | result = sv_getblk(sb, bh->b_dev, block); |
block | 713 | fs/sysv/inode.c | block = sysv_new_block(sb); |
block | 714 | fs/sysv/inode.c | if (!block) { |
block | 718 | fs/sysv/inode.c | result = sv_getblk(sb, bh->b_dev, block); |
block | 720 | fs/sysv/inode.c | sysv_free_block(sb,block); |
block | 724 | fs/sysv/inode.c | *p = (sb->sv_convert ? to_coh_ulong(block) : block); |
block | 730 | fs/sysv/inode.c | struct buffer_head * sysv_getblk(struct inode * inode, unsigned int block, int create) |
block | 735 | fs/sysv/inode.c | if (block < 10) |
block | 736 | fs/sysv/inode.c | return inode_getblk(inode,block,create); |
block | 737 | fs/sysv/inode.c | block -= 10; |
block | 738 | fs/sysv/inode.c | if (block < sb->sv_ind_per_block) { |
block | 740 | fs/sysv/inode.c | return block_getblk(inode, bh, block, create); |
block | 742 | fs/sysv/inode.c | block -= sb->sv_ind_per_block; |
block | 743 | fs/sysv/inode.c | if (block < sb->sv_ind_per_block_2) { |
block | 745 | fs/sysv/inode.c | bh = block_getblk(inode, bh, block >> sb->sv_ind_per_block_bits, create); |
block | 746 | fs/sysv/inode.c | return block_getblk(inode, bh, block & sb->sv_ind_per_block_1, create); |
block | 748 | fs/sysv/inode.c | block -= sb->sv_ind_per_block_2; |
block | 749 | fs/sysv/inode.c | if (block < sb->sv_ind_per_block_3) { |
block | 751 | fs/sysv/inode.c | bh = block_getblk(inode, bh, block >> sb->sv_ind_per_block_2_bits, create); |
block | 752 | fs/sysv/inode.c | bh = block_getblk(inode, bh, (block >> sb->sv_ind_per_block_bits) & sb->sv_ind_per_block_1, create); |
block | 753 | fs/sysv/inode.c | return block_getblk(inode, bh, block & sb->sv_ind_per_block_1, create); |
block | 755 | fs/sysv/inode.c | if ((int)block<0) { |
block | 763 | fs/sysv/inode.c | struct buffer_head * sysv_file_bread(struct inode * inode, int block, int create) |
block | 767 | fs/sysv/inode.c | bh = sysv_getblk(inode,block,create); |
block | 808 | fs/sysv/inode.c | unsigned int block, ino; |
block | 819 | fs/sysv/inode.c | block = sb->sv_firstinodezone + ((ino-1) >> sb->sv_inodes_per_block_bits); |
block | 820 | fs/sysv/inode.c | if (!(bh = sv_bread(sb,inode->i_dev,block))) { |
block | 850 | fs/sysv/inode.c | for (block = 0; block < 10+1+1+1; block++) |
block | 851 | fs/sysv/inode.c | inode->u.sysv_i.i_data[block] = |
block | 852 | fs/sysv/inode.c | coh_read3byte(&raw_inode->i_a.i_addb[3*block]); |
block | 854 | fs/sysv/inode.c | for (block = 0; block < 10+1+1+1; block++) |
block | 855 | fs/sysv/inode.c | inode->u.sysv_i.i_data[block] = |
block | 856 | fs/sysv/inode.c | read3byte(&raw_inode->i_a.i_addb[3*block]); |
block | 895 | fs/sysv/inode.c | unsigned int ino, block; |
block | 905 | fs/sysv/inode.c | block = sb->sv_firstinodezone + ((ino-1) >> sb->sv_inodes_per_block_bits); |
block | 906 | fs/sysv/inode.c | if (!(bh = sv_bread(sb,inode->i_dev,block))) { |
block | 934 | fs/sysv/inode.c | for (block = 0; block < 10+1+1+1; block++) |
block | 935 | fs/sysv/inode.c | coh_write3byte(&raw_inode->i_a.i_addb[3*block],inode->u.sysv_i.i_data[block]); |
block | 937 | fs/sysv/inode.c | for (block = 0; block < 10+1+1+1; block++) |
block | 938 | fs/sysv/inode.c | write3byte(&raw_inode->i_a.i_addb[3*block],inode->u.sysv_i.i_data[block]); |
block | 68 | fs/sysv/namei.c | unsigned long pos, block, offset; /* pos = block * block_size + offset */ |
block | 81 | fs/sysv/namei.c | pos = block = offset = 0; |
block | 84 | fs/sysv/namei.c | bh = sysv_file_bread(dir,block,0); |
block | 86 | fs/sysv/namei.c | /* offset = 0; */ block++; |
block | 100 | fs/sysv/namei.c | offset = 0; block++; |
block | 152 | fs/sysv/namei.c | unsigned long pos, block, offset; /* pos = block * block_size + offset */ |
block | 169 | fs/sysv/namei.c | pos = block = offset = 0; |
block | 172 | fs/sysv/namei.c | bh = sysv_file_bread(dir,block,1); |
block | 202 | fs/sysv/namei.c | offset = 0; block++; |
block | 372 | fs/sysv/namei.c | unsigned long pos, block, offset; /* pos = block * block_size + offset */ |
block | 378 | fs/sysv/namei.c | block = 0; |
block | 397 | fs/sysv/namei.c | bh = sysv_file_bread(inode,block,0); |
block | 399 | fs/sysv/namei.c | /* offset = 0; */ block++; |
block | 415 | fs/sysv/namei.c | offset = 0; block++; |
block | 49 | fs/sysv/truncate.c | unsigned long block; |
block | 57 | fs/sysv/truncate.c | block = *p; |
block | 58 | fs/sysv/truncate.c | if (!block) |
block | 60 | fs/sysv/truncate.c | bh = sv_get_hash_table(sb, inode->i_dev, block); |
block | 65 | fs/sysv/truncate.c | if ((bh && bh->b_count != 1) || (block != *p)) { |
block | 73 | fs/sysv/truncate.c | sysv_free_block(sb,block); |
block | 85 | fs/sysv/truncate.c | unsigned long tmp, block; |
block | 112 | fs/sysv/truncate.c | block = tmp = *ind; |
block | 114 | fs/sysv/truncate.c | block = from_coh_ulong(block); |
block | 115 | fs/sysv/truncate.c | if (!block) |
block | 117 | fs/sysv/truncate.c | bh = sv_get_hash_table(sb, inode->i_dev, block); |
block | 130 | fs/sysv/truncate.c | sysv_free_block(sb,block); |
block | 154 | fs/sysv/truncate.c | unsigned long tmp, block; |
block | 179 | fs/sysv/truncate.c | block = tmp = *ind; |
block | 181 | fs/sysv/truncate.c | block = from_coh_ulong(block); |
block | 182 | fs/sysv/truncate.c | if (!block) |
block | 208 | fs/sysv/truncate.c | unsigned long tmp, block; |
block | 233 | fs/sysv/truncate.c | block = tmp = *ind; |
block | 235 | fs/sysv/truncate.c | block = from_coh_ulong(block); |
block | 236 | fs/sysv/truncate.c | if (!block) |
block | 33 | fs/xiafs/fsync.c | static int sync_block (struct inode * inode, unsigned long * block, int wait) |
block | 38 | fs/xiafs/fsync.c | if (!*block) |
block | 40 | fs/xiafs/fsync.c | tmp = *block; |
block | 41 | fs/xiafs/fsync.c | bh = get_hash_table(inode->i_dev, *block, blocksize); |
block | 44 | fs/xiafs/fsync.c | if (*block != tmp) { |
block | 445 | include/linux/ext2_fs.h | extern int ext2_getcluster (struct inode * inode, long block); |
block | 82 | include/linux/ext_fs.h | extern void ext_free_block(struct super_block * sb, int block); |
block | 467 | include/linux/fs.h | extern int bmap(struct inode * inode,int block); |
block | 484 | include/linux/fs.h | extern struct buffer_head * get_hash_table(dev_t dev, int block, int size); |
block | 485 | include/linux/fs.h | extern struct buffer_head * getblk(dev_t dev, int block, int size); |
block | 492 | include/linux/fs.h | extern struct buffer_head * bread(dev_t dev, int block, int size); |
block | 494 | include/linux/fs.h | extern struct buffer_head * breada(dev_t dev,int block, int size, |
block | 173 | include/linux/iso_fs.h | extern int isofs_free_block(int dev, int block); |
block | 201 | include/linux/iso_fs.h | extern struct buffer_head * leak_check_bread(int dev, int block, int size); |
block | 101 | include/linux/minix_fs.h | extern void minix_free_block(struct super_block * sb, int block); |
block | 164 | include/linux/msdos_fs.h | extern int msdos_bmap(struct inode *inode,int block); |
block | 340 | include/linux/sysv_fs.h | sv_get_hash_table (struct super_block *sb, int dev, unsigned int block) |
block | 342 | include/linux/sysv_fs.h | return get_hash_table (dev, block + sb->sv_block_base, sb->sv_block_size); |
block | 347 | include/linux/sysv_fs.h | sv_getblk (struct super_block *sb, int dev, unsigned int block) |
block | 349 | include/linux/sysv_fs.h | return getblk (dev, block + sb->sv_block_base, sb->sv_block_size); |
block | 354 | include/linux/sysv_fs.h | sv_bread (struct super_block *sb, int dev, unsigned int block) |
block | 356 | include/linux/sysv_fs.h | return bread (dev, block + sb->sv_block_base, sb->sv_block_size); |
block | 381 | include/linux/sysv_fs.h | extern void sysv_free_block(struct super_block * sb, unsigned int block); |
block | 118 | include/linux/xd.h | static int xd_readwrite (u_char operation,u_char drive,char *buffer,u_int block,u_int count); |
block | 87 | include/linux/xia_fs.h | extern void xiafs_free_zone(struct super_block * sb, int block); |
block | 35 | mm/filemap.c | unsigned int block; |
block | 40 | mm/filemap.c | block = address - area->vm_start + area->vm_offset; |
block | 41 | mm/filemap.c | block >>= inode->i_sb->s_blocksize_bits; |
block | 45 | mm/filemap.c | *p = bmap(inode,block); |
block | 47 | mm/filemap.c | block++; |
block | 157 | mm/swap.c | unsigned int block = offset << 3; |
block | 160 | mm/swap.c | if (!(zones[i] = swapf->i_op->smap(swapf,block++))) { |
block | 167 | mm/swap.c | unsigned int block = offset |
block | 171 | mm/swap.c | if (!(zones[i] = bmap(swapf,block++))) { |