tag | line | file | source code |
block | 38 | drivers/block/blk.h | #define SUBSECTOR(block) (CURRENT->current_nr_sectors > 0) |
block | 1177 | drivers/block/cdu31a.c | unsigned int block, |
block | 1196 | drivers/block/cdu31a.c | if (((block % 4) * 512) != ((2048 - readahead_dataleft) % 2048)) |
block | 1198 | drivers/block/cdu31a.c | sony_next_block += block % 4; |
block | 1199 | drivers/block/cdu31a.c | sony_blocks_left -= block % 4; |
block | 1200 | drivers/block/cdu31a.c | skip = (block % 4) * 512; |
block | 1384 | drivers/block/cdu31a.c | int block; |
block | 1464 | drivers/block/cdu31a.c | block = CURRENT->sector; |
block | 1478 | drivers/block/cdu31a.c | if (block < 80) |
block | 1481 | drivers/block/cdu31a.c | block += (sony_toc->start_track_lba * 4); |
block | 1492 | drivers/block/cdu31a.c | if ((block / 4) < sony_toc->start_track_lba) |
block | 1499 | drivers/block/cdu31a.c | if ((block / 4) >= sony_toc->lead_out_start_lba) |
block | 1505 | drivers/block/cdu31a.c | if (((block + nblock) / 4) >= sony_toc->lead_out_start_lba) |
block | 1529 | drivers/block/cdu31a.c | if (start_request(block / 4, CDU31A_READAHEAD / 4, 0)) |
block | 1538 | drivers/block/cdu31a.c | else if (block != sony_next_block) |
block | 1542 | drivers/block/cdu31a.c | block, |
block | 1552 | drivers/block/cdu31a.c | if (start_request(block / 4, CDU31A_READAHEAD / 4, 0)) |
block | 1560 | drivers/block/cdu31a.c | read_data_block(CURRENT->buffer, block, nblock, res_reg, &res_size); |
block | 2109 | drivers/block/floppy.c | int block; |
block | 2121 | drivers/block/floppy.c | block = current_count_sectors + CURRENT->sector; |
block | 2122 | drivers/block/floppy.c | if (block > DRS->maxblock) |
block | 2123 | drivers/block/floppy.c | DRS->maxblock=block; |
block | 2124 | drivers/block/floppy.c | if ( block > floppy->sect) |
block | 3155 | drivers/block/floppy.c | int block; |
block | 3166 | drivers/block/floppy.c | block = (filp->f_pos + count) >> 9; |
block | 3167 | drivers/block/floppy.c | if(block > UDRS->maxblock) |
block | 3168 | drivers/block/floppy.c | UDRS->maxblock = block; |
block | 269 | drivers/block/gscd.c | unsigned int block,dev; |
block | 276 | drivers/block/gscd.c | block = CURRENT->sector; |
block | 307 | drivers/block/gscd.c | printk ("GSCD: dev %d, block %d, nsect %d\n", dev, block, nsect ); |
block | 323 | drivers/block/gscd.c | long block; |
block | 345 | drivers/block/gscd.c | block = CURRENT -> sector / 4; |
block | 346 | drivers/block/gscd.c | gscd_hsg2msf(block, &gscdcmd.start); /* cvt to msf format */ |
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 | 1090 | drivers/block/ide-cd.c | static int cdrom_start_read (ide_dev_t *dev, unsigned int block) |
block | 1363 | drivers/block/ide-cd.c | static int do_rw_cdrom (ide_dev_t *dev, unsigned long block) |
block | 1377 | drivers/block/ide-cd.c | return cdrom_start_read (dev, block); |
block | 1018 | drivers/block/ide.c | static inline int do_rw_disk (ide_dev_t *dev, struct request *rq, unsigned long block) |
block | 1026 | drivers/block/ide.c | block, rq->nr_sectors, (unsigned long) rq->buffer); |
block | 1028 | drivers/block/ide.c | OUT_BYTE(block,HD_SECTOR); |
block | 1029 | drivers/block/ide.c | OUT_BYTE(block>>=8,HD_LCYL); |
block | 1030 | drivers/block/ide.c | OUT_BYTE(block>>=8,HD_HCYL); |
block | 1031 | drivers/block/ide.c | OUT_BYTE(((block>>8)&0x0f)|dev->select.all,HD_CURRENT); |
block | 1034 | drivers/block/ide.c | track = block / dev->sect; |
block | 1035 | drivers/block/ide.c | sect = block % dev->sect + 1; |
block | 1107 | drivers/block/ide.c | unsigned long block, blockend; |
block | 1148 | drivers/block/ide.c | block = rq->sector; |
block | 1149 | drivers/block/ide.c | blockend = block + rq->nr_sectors; |
block | 1150 | drivers/block/ide.c | if ((blockend < block) || (blockend > ide_hd[HWIF][minor].nr_sects)) { |
block | 1152 | drivers/block/ide.c | dev->name, block, rq->nr_sectors); |
block | 1156 | drivers/block/ide.c | block += ide_hd[HWIF][minor].start_sect; |
block | 1171 | drivers/block/ide.c | if (do_rw_disk(dev, rq, block)) |
block | 1175 | 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 | 2752 | drivers/block/sbpcd.c | int block, checksum; |
block | 2763 | drivers/block/sbpcd.c | for (block=CD_BLOCK_OFFSET+1;block<CD_BLOCK_OFFSET+200;block++) |
block | 2771 | drivers/block/sbpcd.c | drvcmd[1]=(block>>16)&0xFF; |
block | 2772 | drivers/block/sbpcd.c | drvcmd[2]=(block>>8)&0xFF; |
block | 2773 | drivers/block/sbpcd.c | drvcmd[3]=block&0xFF; |
block | 2782 | drivers/block/sbpcd.c | drvcmd[2]=(block>>16)&0xFF; |
block | 2783 | drivers/block/sbpcd.c | drvcmd[3]=(block>>8)&0xFF; |
block | 2784 | drivers/block/sbpcd.c | drvcmd[4]=block&0xFF; |
block | 4112 | drivers/block/sbpcd.c | int i=0, j=0, frame, block; |
block | 4137 | drivers/block/sbpcd.c | block=msf2lba(&read_audio.addr.msf.minute); |
block | 4139 | drivers/block/sbpcd.c | block=read_audio.addr.lba; |
block | 4144 | drivers/block/sbpcd.c | block, blk2msf(block)); |
block | 4175 | drivers/block/sbpcd.c | drvcmd[1]=(block>>16)&0x000000ff; |
block | 4176 | drivers/block/sbpcd.c | drvcmd[2]=(block>>8)&0x000000ff; |
block | 4177 | drivers/block/sbpcd.c | drvcmd[3]=block&0x000000ff; |
block | 4185 | drivers/block/sbpcd.c | lba2msf(block,&drvcmd[1]); /* msf-bin format required */ |
block | 4366 | drivers/block/sbpcd.c | u_int block; |
block | 4393 | drivers/block/sbpcd.c | block = CURRENT->sector; /* always numbered as 512-byte-pieces */ |
block | 4396 | drivers/block/sbpcd.c | msg(DBG_BSZ,"read sector %d (%d sectors)\n", block, nsect); |
block | 4398 | drivers/block/sbpcd.c | msg(DBG_MUL,"read LBA %d\n", block/4); |
block | 4457 | drivers/block/sbpcd.c | int block; |
block | 4461 | drivers/block/sbpcd.c | block=CURRENT->sector/4; |
block | 4462 | drivers/block/sbpcd.c | if (block+D_S[d].sbp_bufsiz <= D_S[d].CDsize_frm) |
block | 4466 | drivers/block/sbpcd.c | D_S[d].sbp_read_frames=D_S[d].CDsize_frm-block; |
block | 4471 | drivers/block/sbpcd.c | block, D_S[d].CDsize_frm); |
block | 4485 | drivers/block/sbpcd.c | drvcmd[1]=(block>>16)&0x000000ff; |
block | 4486 | drivers/block/sbpcd.c | drvcmd[2]=(block>>8)&0x000000ff; |
block | 4487 | drivers/block/sbpcd.c | drvcmd[3]=block&0x000000ff; |
block | 4495 | drivers/block/sbpcd.c | lba2msf(block,&drvcmd[1]); /* msf-bcd format required */ |
block | 4502 | drivers/block/sbpcd.c | drvcmd[1]=(block>>16)&0x000000ff; |
block | 4503 | drivers/block/sbpcd.c | drvcmd[2]=(block>>8)&0x000000ff; |
block | 4504 | drivers/block/sbpcd.c | drvcmd[3]=block&0x000000ff; |
block | 4513 | drivers/block/sbpcd.c | lba2msf(block,&drvcmd[1]); /* msf-bin format required */ |
block | 4519 | drivers/block/sbpcd.c | lba2msf(block,&drvcmd[1]); /* msf-bin format required */ |
block | 4526 | drivers/block/sbpcd.c | drvcmd[2]=(block>>24)&0x0ff; |
block | 4527 | drivers/block/sbpcd.c | drvcmd[3]=(block>>16)&0x0ff; |
block | 4528 | drivers/block/sbpcd.c | drvcmd[4]=(block>>8)&0x0ff; |
block | 4529 | drivers/block/sbpcd.c | drvcmd[5]=block&0x0ff; |
block | 819 | drivers/block/sonycd535.c | int block; |
block | 840 | drivers/block/sonycd535.c | block = CURRENT->sector; |
block | 853 | drivers/block/sonycd535.c | if (sony_toc->lead_out_start_lba <= (block / 4)) { |
block | 857 | drivers/block/sonycd535.c | if (sony_toc->lead_out_start_lba <= ((block + nsect) / 4)) { |
block | 866 | drivers/block/sonycd535.c | if ((block < sony_first_block) || (sony_last_block < block)) { |
block | 867 | drivers/block/sonycd535.c | sony_first_block = (block / 4) * 4; |
block | 868 | drivers/block/sonycd535.c | log_to_msf(block / 4, params); |
block | 874 | drivers/block/sonycd535.c | if (sony_toc->lead_out_start_lba <= ((block / 4) + sony_buffer_sectors)) { |
block | 876 | drivers/block/sonycd535.c | read_size = sony_toc->lead_out_start_lba - (block / 4); |
block | 942 | drivers/block/sonycd535.c | copyoff = (block - sony_first_block) * 512; |
block | 945 | drivers/block/sonycd535.c | copyoff = block - sony_first_block; |
block | 950 | drivers/block/sonycd535.c | block += 1; |
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 | 272 | drivers/scsi/hosts.c | retval->block = NULL; |
block | 266 | drivers/scsi/hosts.h | struct Scsi_Host * block; |
block | 71 | drivers/scsi/scsi.c | #define SCSI_BLOCK(HOST) ((HOST->block && host_active && HOST != host_active) \ |
block | 314 | drivers/scsi/scsi.c | if (block_count == 1) sh[0]->block = NULL; |
block | 319 | drivers/scsi/scsi.c | sh[index]->block = sh[index + 1]; |
block | 324 | drivers/scsi/scsi.c | sh[block_count - 1]->block = sh[0]; |
block | 1258 | drivers/scsi/scsi.c | if (host->block) host_active = host; |
block | 1720 | drivers/scsi/scsi.c | if (host->block && host->host_busy == 0) { |
block | 1728 | drivers/scsi/scsi.c | for (next = host->block; next != host; next = next->block) |
block | 1917 | drivers/scsi/scsi.c | if (!host->block) host->host_busy++; |
block | 1922 | drivers/scsi/scsi.c | if (!host->block) host->host_busy--; |
block | 606 | drivers/scsi/scsi.h | if (SCpnt->host->block) { |
block | 609 | drivers/scsi/scsi.h | for (next = SCpnt->host->block; next != SCpnt->host; |
block | 610 | drivers/scsi/scsi.h | next = next->block) |
block | 82 | drivers/scsi/scsi_debug.c | if ((bh->b_blocknr << 1) + start != block) \ |
block | 83 | drivers/scsi/scsi_debug.c | { printk("Wrong bh block# %d %d ",bh->b_blocknr, block); \ |
block | 105 | drivers/scsi/scsi_debug.c | if (SCpnt->request.sector + start != block) panic("Wrong block."); \ |
block | 109 | drivers/scsi/scsi_debug.c | if ((SCpnt->request.bh->b_blocknr << 1) + start != block) \ |
block | 110 | drivers/scsi/scsi_debug.c | { printk("Wrong bh block# %d %d ",SCpnt->request.bh->b_blocknr, block); \ |
block | 179 | drivers/scsi/scsi_debug.c | int block, start; |
block | 259 | drivers/scsi/scsi_debug.c | block = cmd[5] + (cmd[4] << 8) + (cmd[3] << 16) + (cmd[2] << 24); |
block | 261 | drivers/scsi/scsi_debug.c | block = cmd[3] + (cmd[2] << 8) + ((cmd[1] & 0x1f) << 16); |
block | 295 | drivers/scsi/scsi_debug.c | if(block == 0 && target == 0) { |
block | 311 | drivers/scsi/scsi_debug.c | if (SCpnt->use_sg) printk("Block %x (%d %d)\n",block, SCpnt->request.nr_sectors, |
block | 317 | drivers/scsi/scsi_debug.c | if(block == 0xfff0) { |
block | 340 | drivers/scsi/scsi_debug.c | memcpy(buff+60, &block, sizeof(block)); |
block | 348 | drivers/scsi/scsi_debug.c | block += bufflen >> 9; |
block | 372 | drivers/scsi/scsi_debug.c | block = cmd[5] + (cmd[4] << 8) + (cmd[3] << 16) + (cmd[2] << 24); |
block | 374 | drivers/scsi/scsi_debug.c | block = cmd[3] + (cmd[2] << 8) + ((cmd[1] & 0x1f) << 16); |
block | 384 | drivers/scsi/scsi_debug.c | if (block != *((unsigned long *) (buff+60))) { |
block | 385 | drivers/scsi/scsi_debug.c | printk("%x %x :",block, *((unsigned long *) (buff+60))); |
block | 463 | drivers/scsi/sd.c | int dev, block, this_count; |
block | 478 | drivers/scsi/sd.c | block = SCpnt->request.sector; |
block | 482 | drivers/scsi/sd.c | printk("Doing sd request, dev = %d, block = %d\n", dev, block); |
block | 487 | drivers/scsi/sd.c | block + SCpnt->request.nr_sectors > sd[dev].nr_sects) |
block | 493 | drivers/scsi/sd.c | block += sd[dev].start_sect; |
block | 509 | drivers/scsi/sd.c | 'a' + MINOR(SCpnt->request.dev), dev, block); |
block | 524 | drivers/scsi/sd.c | if((block & 1) || (SCpnt->request.nr_sectors & 1)) { |
block | 798 | drivers/scsi/sd.c | if(block & 1) panic("sd.c:Bad block number requested"); |
block | 800 | drivers/scsi/sd.c | block = block >> 1; |
block | 805 | drivers/scsi/sd.c | block = block << 1; |
block | 809 | drivers/scsi/sd.c | if (((this_count > 0xff) || (block > 0x1fffff)) && rscsi_disks[dev].ten) |
block | 815 | drivers/scsi/sd.c | cmd[2] = (unsigned char) (block >> 24) & 0xff; |
block | 816 | drivers/scsi/sd.c | cmd[3] = (unsigned char) (block >> 16) & 0xff; |
block | 817 | drivers/scsi/sd.c | cmd[4] = (unsigned char) (block >> 8) & 0xff; |
block | 818 | drivers/scsi/sd.c | cmd[5] = (unsigned char) block & 0xff; |
block | 828 | drivers/scsi/sd.c | cmd[1] |= (unsigned char) ((block >> 16) & 0x1f); |
block | 829 | drivers/scsi/sd.c | cmd[2] = (unsigned char) ((block >> 8) & 0xff); |
block | 830 | drivers/scsi/sd.c | cmd[3] = (unsigned char) block & 0xff; |
block | 614 | drivers/scsi/sr.c | unsigned int dev, block, realcount; |
block | 627 | drivers/scsi/sr.c | block = SCpnt->request.sector; |
block | 808 | drivers/scsi/sr.c | start = block % 4; |
block | 830 | drivers/scsi/sr.c | block = block >> 2; /* These are the sectors that the cdrom uses */ |
block | 832 | drivers/scsi/sr.c | block = block & 0xfffffffc; |
block | 838 | drivers/scsi/sr.c | if (((realcount > 0xff) || (block > 0x1fffff)) && scsi_CDs[dev].ten) |
block | 847 | drivers/scsi/sr.c | cmd[2] = (unsigned char) (block >> 24) & 0xff; |
block | 848 | drivers/scsi/sr.c | cmd[3] = (unsigned char) (block >> 16) & 0xff; |
block | 849 | drivers/scsi/sr.c | cmd[4] = (unsigned char) (block >> 8) & 0xff; |
block | 850 | drivers/scsi/sr.c | cmd[5] = (unsigned char) block & 0xff; |
block | 863 | drivers/scsi/sr.c | cmd[1] |= (unsigned char) ((block >> 16) & 0x1f); |
block | 864 | drivers/scsi/sr.c | cmd[2] = (unsigned char) ((block >> 8) & 0xff); |
block | 865 | drivers/scsi/sr.c | cmd[3] = (unsigned char) block & 0xff; |
block | 873 | drivers/scsi/sr.c | printk("ReadCD: %d %d %d %d\n",block, realcount, buffer, this_count); |
block | 88 | drivers/sound/opl3.c | static void freq_to_fnum (int freq, int *block, int *fnum); |
block | 555 | drivers/sound/opl3.c | int block, fnum, freq, voice_mode; |
block | 732 | drivers/sound/opl3.c | freq_to_fnum (freq, &block, &fnum); |
block | 743 | drivers/sound/opl3.c | data = 0x20 | ((block & 0x7) << 2) | ((fnum >> 8) & 0x3); |
block | 753 | drivers/sound/opl3.c | freq_to_fnum (int freq, int *block, int *fnum) |
block | 791 | drivers/sound/opl3.c | *block = octave; |
block | 1029 | drivers/sound/opl3.c | int block, fnum, freq; |
block | 1048 | drivers/sound/opl3.c | freq_to_fnum (freq, &block, &fnum); |
block | 1055 | drivers/sound/opl3.c | data = 0x20 | ((block & 0x7) << 2) | ((fnum >> 8) & 0x3); /* |
block | 229 | drivers/sound/pss.c | pss_download_boot (pss_config * devc, unsigned char *block, int size, int flags) |
block | 244 | drivers/sound/pss.c | OUTW (*block++, REG (PSS_DATA)); |
block | 274 | drivers/sound/pss.c | OUTW (*block++, REG (PSS_DATA)); |
block | 437 | drivers/sound/sscape.c | sscape_download_boot (struct sscape_info *devc, unsigned char *block, int size, int flag) |
block | 479 | drivers/sound/sscape.c | memcpy (audio_devs[devc->my_audiodev]->dmap->raw_buf[0], block, size); |
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 | 1552 | fs/buffer.c | static unsigned long try_to_generate_cluster(dev_t dev, int block, int size) |
block | 1568 | fs/buffer.c | nblock = block; |
block | 1585 | 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 | 175 | fs/ext/inode.c | int ext_bmap(struct inode * inode,int block) |
block | 179 | fs/ext/inode.c | if (block<0) { |
block | 183 | fs/ext/inode.c | if (block >= 9+256+256*256+256*256*256) { |
block | 187 | fs/ext/inode.c | if (block<9) |
block | 188 | fs/ext/inode.c | return inode_bmap(inode,block); |
block | 189 | fs/ext/inode.c | block -= 9; |
block | 190 | fs/ext/inode.c | if (block<256) { |
block | 194 | fs/ext/inode.c | return block_bmap(bread(inode->i_dev,i,BLOCK_SIZE),block); |
block | 196 | fs/ext/inode.c | block -= 256; |
block | 197 | fs/ext/inode.c | if (block<256*256) { |
block | 201 | fs/ext/inode.c | i = block_bmap(bread(inode->i_dev,i,BLOCK_SIZE),block>>8); |
block | 204 | fs/ext/inode.c | return block_bmap(bread(inode->i_dev,i,BLOCK_SIZE),block & 255); |
block | 206 | fs/ext/inode.c | block -= 256*256; |
block | 210 | fs/ext/inode.c | i = block_bmap(bread(inode->i_dev,i,BLOCK_SIZE),block>>16); |
block | 213 | fs/ext/inode.c | i = block_bmap(bread(inode->i_dev,i,BLOCK_SIZE),(block>>8) & 255); |
block | 216 | fs/ext/inode.c | return block_bmap(bread(inode->i_dev,i,BLOCK_SIZE),block & 255); |
block | 302 | fs/ext/inode.c | struct buffer_head * ext_getblk(struct inode * inode, int block, int create) |
block | 306 | fs/ext/inode.c | if (block<0) { |
block | 310 | fs/ext/inode.c | if (block >= 9+256+256*256+256*256*256) { |
block | 314 | fs/ext/inode.c | if (block<9) |
block | 315 | fs/ext/inode.c | return inode_getblk(inode,block,create); |
block | 316 | fs/ext/inode.c | block -= 9; |
block | 317 | fs/ext/inode.c | if (block<256) { |
block | 319 | fs/ext/inode.c | return block_getblk(inode,bh,block,create); |
block | 321 | fs/ext/inode.c | block -= 256; |
block | 322 | fs/ext/inode.c | if (block<256*256) { |
block | 324 | fs/ext/inode.c | bh = block_getblk(inode,bh,block>>8,create); |
block | 325 | fs/ext/inode.c | return block_getblk(inode,bh,block & 255,create); |
block | 327 | fs/ext/inode.c | block -= 256*256; |
block | 329 | fs/ext/inode.c | bh = block_getblk(inode,bh,block>>16,create); |
block | 330 | fs/ext/inode.c | bh = block_getblk(inode,bh,(block>>8) & 255,create); |
block | 331 | fs/ext/inode.c | return block_getblk(inode,bh,block & 255,create); |
block | 334 | fs/ext/inode.c | struct buffer_head * ext_bread(struct inode * inode, int block, int create) |
block | 338 | fs/ext/inode.c | bh = ext_getblk(inode,block,create); |
block | 353 | fs/ext/inode.c | int block; |
block | 355 | fs/ext/inode.c | block = 2 + (inode->i_ino-1)/EXT_INODES_PER_BLOCK; |
block | 356 | fs/ext/inode.c | if (!(bh=bread(inode->i_dev, block, BLOCK_SIZE))) |
block | 369 | fs/ext/inode.c | else for (block = 0; block < 12; block++) |
block | 370 | fs/ext/inode.c | inode->u.ext_i.i_data[block] = raw_inode->i_zone[block]; |
block | 391 | fs/ext/inode.c | int block; |
block | 393 | fs/ext/inode.c | block = 2 + (inode->i_ino-1)/EXT_INODES_PER_BLOCK; |
block | 394 | fs/ext/inode.c | if (!(bh=bread(inode->i_dev, block, BLOCK_SIZE))) |
block | 406 | fs/ext/inode.c | else for (block = 0; block < 12; block++) |
block | 407 | fs/ext/inode.c | raw_inode->i_zone[block] = inode->u.ext_i.i_data[block]; |
block | 168 | fs/ext2/balloc.c | void ext2_free_blocks (struct super_block * sb, unsigned long block, |
block | 186 | fs/ext2/balloc.c | if (block < es->s_first_data_block || |
block | 187 | fs/ext2/balloc.c | (block + count) > es->s_blocks_count) { |
block | 190 | fs/ext2/balloc.c | "block = %lu, count = %lu", block, count); |
block | 195 | fs/ext2/balloc.c | ext2_debug ("freeing block %lu\n", block); |
block | 197 | fs/ext2/balloc.c | block_group = (block - es->s_first_data_block) / |
block | 199 | fs/ext2/balloc.c | bit = (block - es->s_first_data_block) % EXT2_BLOCKS_PER_GROUP(sb); |
block | 204 | fs/ext2/balloc.c | block, count); |
block | 210 | fs/ext2/balloc.c | (in_range (gdp->bg_block_bitmap, block, count) || |
block | 211 | fs/ext2/balloc.c | in_range (gdp->bg_inode_bitmap, block, count) || |
block | 212 | fs/ext2/balloc.c | in_range (block, gdp->bg_inode_table, |
block | 214 | fs/ext2/balloc.c | in_range (block + count - 1, gdp->bg_inode_table, |
block | 219 | fs/ext2/balloc.c | block, count); |
block | 225 | fs/ext2/balloc.c | block); |
block | 505 | fs/ext2/balloc.c | static inline int block_in_use (unsigned long block, |
block | 509 | fs/ext2/balloc.c | return test_bit ((block - sb->u.ext2_sb.s_es->s_first_data_block) % |
block | 84 | fs/ext2/file.c | int block, blocks, offset; |
block | 115 | fs/ext2/file.c | block = offset >> EXT2_BLOCK_SIZE_BITS(sb); |
block | 124 | fs/ext2/file.c | if (block + blocks > size) |
block | 125 | fs/ext2/file.c | blocks = size - block; |
block | 148 | fs/ext2/file.c | if(!clusterblocks) clusterblocks = ext2_getcluster(inode, block); |
block | 152 | fs/ext2/file.c | *bhb = ext2_getblk (inode, block++, 0, &err); |
block | 237 | fs/ext2/file.c | long block; |
block | 276 | fs/ext2/file.c | block = pos2 >> EXT2_BLOCK_SIZE_BITS(sb); |
block | 286 | fs/ext2/file.c | bh = ext2_getblk (inode, block, 1, &err); |
block | 328 | fs/ext2/file.c | block++; |
block | 30 | fs/ext2/fsync.c | static int sync_block (struct inode * inode, u32 * 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 | 128 | fs/ext2/inode.c | int ext2_bmap (struct inode * inode, int block) |
block | 134 | fs/ext2/inode.c | if (block < 0) { |
block | 138 | fs/ext2/inode.c | if (block >= EXT2_NDIR_BLOCKS + addr_per_block + |
block | 144 | fs/ext2/inode.c | if (block < EXT2_NDIR_BLOCKS) |
block | 145 | fs/ext2/inode.c | return inode_bmap (inode, block); |
block | 146 | fs/ext2/inode.c | block -= EXT2_NDIR_BLOCKS; |
block | 147 | fs/ext2/inode.c | if (block < addr_per_block) { |
block | 152 | fs/ext2/inode.c | inode->i_sb->s_blocksize), block); |
block | 154 | fs/ext2/inode.c | block -= addr_per_block; |
block | 155 | fs/ext2/inode.c | if (block < (1 << (addr_per_block_bits * 2))) { |
block | 161 | fs/ext2/inode.c | block >> addr_per_block_bits); |
block | 166 | fs/ext2/inode.c | block & (addr_per_block - 1)); |
block | 168 | fs/ext2/inode.c | block -= (1 << (addr_per_block_bits * 2)); |
block | 173 | fs/ext2/inode.c | block >> (addr_per_block_bits * 2)); |
block | 177 | fs/ext2/inode.c | (block >> addr_per_block_bits) & (addr_per_block - 1)); |
block | 181 | fs/ext2/inode.c | block & (addr_per_block - 1)); |
block | 362 | fs/ext2/inode.c | struct buffer_head * ext2_getblk (struct inode * inode, long block, |
block | 371 | fs/ext2/inode.c | if (block < 0) { |
block | 375 | fs/ext2/inode.c | if (block > EXT2_NDIR_BLOCKS + addr_per_block + |
block | 387 | fs/ext2/inode.c | ext2_debug ("block %lu, next %lu, goal %lu.\n", block, |
block | 391 | fs/ext2/inode.c | if (block == inode->u.ext2_i.i_next_alloc_block + 1) { |
block | 397 | fs/ext2/inode.c | b = block; |
block | 398 | fs/ext2/inode.c | if (block < EXT2_NDIR_BLOCKS) |
block | 399 | fs/ext2/inode.c | return inode_getblk (inode, block, create, b, err); |
block | 400 | fs/ext2/inode.c | block -= EXT2_NDIR_BLOCKS; |
block | 401 | fs/ext2/inode.c | if (block < addr_per_block) { |
block | 403 | fs/ext2/inode.c | return block_getblk (inode, bh, block, create, |
block | 406 | fs/ext2/inode.c | block -= addr_per_block; |
block | 407 | fs/ext2/inode.c | if (block < (1 << (addr_per_block_bits * 2))) { |
block | 409 | fs/ext2/inode.c | bh = block_getblk (inode, bh, block >> addr_per_block_bits, |
block | 411 | fs/ext2/inode.c | return block_getblk (inode, bh, block & (addr_per_block - 1), |
block | 414 | fs/ext2/inode.c | block -= (1 << (addr_per_block_bits * 2)); |
block | 416 | fs/ext2/inode.c | bh = block_getblk (inode, bh, block >> (addr_per_block_bits * 2), |
block | 418 | fs/ext2/inode.c | bh = block_getblk (inode, bh, (block >> addr_per_block_bits) & (addr_per_block - 1), |
block | 420 | fs/ext2/inode.c | return block_getblk (inode, bh, block & (addr_per_block - 1), create, |
block | 424 | fs/ext2/inode.c | int ext2_getcluster (struct inode * inode, long block) |
block | 434 | fs/ext2/inode.c | if (block < 0) { |
block | 438 | fs/ext2/inode.c | if (block > EXT2_NDIR_BLOCKS + addr_per_block + |
block | 446 | fs/ext2/inode.c | b = block; |
block | 447 | fs/ext2/inode.c | if (block < EXT2_NDIR_BLOCKS) return 0; |
block | 449 | fs/ext2/inode.c | block -= EXT2_NDIR_BLOCKS; |
block | 451 | fs/ext2/inode.c | if (block < addr_per_block) { |
block | 453 | fs/ext2/inode.c | return block_getcluster (inode, bh, block, |
block | 456 | fs/ext2/inode.c | block -= addr_per_block; |
block | 457 | fs/ext2/inode.c | if (block < (1 << (addr_per_block_bits * 2))) { |
block | 459 | fs/ext2/inode.c | bh = block_getblk (inode, bh, block >> addr_per_block_bits, |
block | 461 | fs/ext2/inode.c | return block_getcluster (inode, bh, block & (addr_per_block - 1), |
block | 464 | fs/ext2/inode.c | block -= (1 << (addr_per_block_bits * 2)); |
block | 466 | fs/ext2/inode.c | bh = block_getblk (inode, bh, block >> (addr_per_block_bits * 2), |
block | 468 | fs/ext2/inode.c | bh = block_getblk (inode, bh, (block >> addr_per_block_bits) & (addr_per_block - 1), |
block | 470 | fs/ext2/inode.c | return block_getcluster (inode, bh, block & (addr_per_block - 1), |
block | 474 | fs/ext2/inode.c | struct buffer_head * ext2_bread (struct inode * inode, int block, |
block | 479 | fs/ext2/inode.c | bh = ext2_getblk (inode, block, create, err); |
block | 498 | fs/ext2/inode.c | unsigned long block; |
block | 519 | fs/ext2/inode.c | block = gdp[desc].bg_inode_table + |
block | 522 | fs/ext2/inode.c | if (!(bh = bread (inode->i_dev, block, inode->i_sb->s_blocksize))) |
block | 525 | fs/ext2/inode.c | "inode=%lu, block=%lu", inode->i_ino, block); |
block | 556 | fs/ext2/inode.c | else for (block = 0; block < EXT2_N_BLOCKS; block++) |
block | 557 | fs/ext2/inode.c | inode->u.ext2_i.i_data[block] = raw_inode->i_block[block]; |
block | 590 | fs/ext2/inode.c | unsigned long block; |
block | 610 | fs/ext2/inode.c | block = gdp[desc].bg_inode_table + |
block | 613 | fs/ext2/inode.c | if (!(bh = bread (inode->i_dev, block, inode->i_sb->s_blocksize))) |
block | 616 | fs/ext2/inode.c | "inode=%lu, block=%lu", inode->i_ino, block); |
block | 638 | fs/ext2/inode.c | else for (block = 0; block < EXT2_N_BLOCKS; block++) |
block | 639 | fs/ext2/inode.c | raw_inode->i_block[block] = inode->u.ext2_i.i_data[block]; |
block | 76 | fs/ext2/namei.c | int block, toread, i, err; |
block | 93 | fs/ext2/namei.c | for (block = 0; block < NAMEI_RA_SIZE; ++block) { |
block | 96 | fs/ext2/namei.c | if ((block << EXT2_BLOCK_SIZE_BITS (sb)) >= dir->i_size) |
block | 98 | fs/ext2/namei.c | bh = ext2_getblk (dir, block, 0, &err); |
block | 99 | fs/ext2/namei.c | bh_use[block] = bh; |
block | 104 | fs/ext2/namei.c | for (block = 0, offset = 0; offset < dir->i_size; block++) { |
block | 109 | fs/ext2/namei.c | if ((block % NAMEI_RA_BLOCKS) == 0 && toread) { |
block | 113 | fs/ext2/namei.c | bh = bh_use[block % NAMEI_RA_SIZE]; |
block | 149 | fs/ext2/namei.c | if (((block + NAMEI_RA_SIZE) << EXT2_BLOCK_SIZE_BITS (sb)) >= |
block | 153 | fs/ext2/namei.c | bh = ext2_getblk (dir, block + NAMEI_RA_SIZE, 0, &err); |
block | 154 | fs/ext2/namei.c | bh_use[block % NAMEI_RA_SIZE] = bh; |
block | 349 | fs/ext2/super.c | unsigned long block = sb->u.ext2_sb.s_es->s_first_data_block; |
block | 358 | fs/ext2/super.c | if (gdp->bg_block_bitmap < block || |
block | 359 | fs/ext2/super.c | gdp->bg_block_bitmap >= block + EXT2_BLOCKS_PER_GROUP(sb)) |
block | 367 | fs/ext2/super.c | if (gdp->bg_inode_bitmap < block || |
block | 368 | fs/ext2/super.c | gdp->bg_inode_bitmap >= block + EXT2_BLOCKS_PER_GROUP(sb)) |
block | 376 | fs/ext2/super.c | if (gdp->bg_inode_table < block || |
block | 378 | fs/ext2/super.c | block + EXT2_BLOCKS_PER_GROUP(sb)) |
block | 386 | fs/ext2/super.c | block += EXT2_BLOCKS_PER_GROUP(sb); |
block | 868 | fs/hpfs/hpfs_fs.c | char *block; |
block | 899 | fs/hpfs/hpfs_fs.c | block = map_sector(inode->i_dev, hpfs_bmap(inode, q), &bh); |
block | 900 | fs/hpfs/hpfs_fs.c | if (!block) |
block | 908 | fs/hpfs/hpfs_fs.c | inode->i_hpfs_conv = choose_conv(block + r, n); |
block | 915 | fs/hpfs/hpfs_fs.c | memcpy_tofs(buf, block + r, n); |
block | 922 | 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 | 117 | fs/isofs/dir.c | unsigned int block, offset; |
block | 126 | fs/isofs/dir.c | block = isofs_bmap(inode, filp->f_pos >> bufbits); |
block | 128 | fs/isofs/dir.c | if (!block) |
block | 131 | fs/isofs/dir.c | if (!(bh = breada(inode->i_dev, block, bufsize, filp->f_pos, inode->i_size))) |
block | 138 | fs/isofs/dir.c | block, offset, filp->f_pos); |
block | 144 | fs/isofs/dir.c | block = isofs_bmap(inode, (filp->f_pos) >> bufbits); |
block | 145 | fs/isofs/dir.c | if (!block) |
block | 147 | fs/isofs/dir.c | bh = breada(inode->i_dev, block, bufsize, filp->f_pos, inode->i_size); |
block | 154 | fs/isofs/dir.c | inode_number = (block << bufbits) + (offset & (bufsize - 1)); |
block | 167 | fs/isofs/dir.c | block = isofs_bmap(inode, (filp->f_pos) >> bufbits); |
block | 168 | fs/isofs/dir.c | if (!block) |
block | 170 | fs/isofs/dir.c | bh = breada(inode->i_dev, block, bufsize, filp->f_pos, inode->i_size); |
block | 184 | fs/isofs/dir.c | block = isofs_bmap(inode, (filp->f_pos + de_len) >> bufbits); |
block | 185 | fs/isofs/dir.c | if (!block) |
block | 187 | fs/isofs/dir.c | bh = breada(inode->i_dev, block, bufsize, filp->f_pos+de_len, inode->i_size); |
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 | 410 | fs/isofs/inode.c | int isofs_bmap(struct inode * inode,int block) |
block | 413 | fs/isofs/inode.c | if (block<0) { |
block | 417 | fs/isofs/inode.c | return (inode->u.isofs_i.i_first_extent >> ISOFS_BUFFER_BITS(inode)) + block; |
block | 428 | fs/isofs/inode.c | int block; |
block | 432 | fs/isofs/inode.c | block = inode->i_ino >> ISOFS_BUFFER_BITS(inode); |
block | 433 | fs/isofs/inode.c | if (!(bh=bread(inode->i_dev,block, bufsize))) { |
block | 456 | fs/isofs/inode.c | if (!(bh = bread(inode->i_dev,++block, bufsize))) { |
block | 528 | fs/isofs/inode.c | printk("Get inode %d: %d %d: %d\n",inode->i_ino, block, |
block | 641 | fs/isofs/inode.c | unsigned int block,offset; |
block | 651 | fs/isofs/inode.c | block = extent << (ISOFS_BLOCK_BITS - bufbits); |
block | 652 | fs/isofs/inode.c | if (!(bh = bread(parent->i_dev, block, bufsize))) return -1; |
block | 688 | fs/isofs/inode.c | block = parent_dir << (ISOFS_BLOCK_BITS - bufbits); |
block | 689 | fs/isofs/inode.c | if (!block || !(bh = bread(parent->i_dev,block, bufsize))) |
block | 695 | fs/isofs/inode.c | inode_number = (block << bufbits)+(offset & (bufsize - 1)); |
block | 705 | fs/isofs/inode.c | block++; |
block | 708 | fs/isofs/inode.c | if((block & 1) && (ISOFS_BLOCK_BITS - bufbits)) |
block | 710 | fs/isofs/inode.c | if (!block |
block | 711 | fs/isofs/inode.c | || !(bh = bread(parent->i_dev,block, bufsize))) |
block | 735 | fs/isofs/inode.c | block++; |
block | 736 | fs/isofs/inode.c | if(!(bh = bread(parent->i_dev,block,bufsize))) { |
block | 787 | fs/isofs/inode.c | struct buffer_head * leak_check_bread(int dev, int block, int size){ |
block | 789 | 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 | 83 | fs/isofs/namei.c | if (!(block = dir->u.isofs_i.i_first_extent)) return NULL; |
block | 88 | fs/isofs/namei.c | block = isofs_bmap(dir,f_pos >> bufbits); |
block | 90 | fs/isofs/namei.c | if (!block || !(bh = bread(dir->i_dev,block,bufsize))) return NULL; |
block | 95 | fs/isofs/namei.c | inode_number = (block << bufbits) + (offset & (bufsize - 1)); |
block | 105 | fs/isofs/namei.c | block = isofs_bmap(dir,f_pos>>bufbits); |
block | 106 | fs/isofs/namei.c | if (!block || !(bh = bread(dir->i_dev,block,bufsize))) |
block | 127 | fs/isofs/namei.c | block = isofs_bmap(dir,f_pos>>bufbits); |
block | 128 | 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 | 415 | fs/isofs/rock.c | int block; |
block | 427 | fs/isofs/rock.c | block = inode->i_ino >> bufbits; |
block | 428 | fs/isofs/rock.c | if (!(bh=bread(inode->i_dev,block, bufsize))) { |
block | 446 | fs/isofs/rock.c | if (!(bh = bread(inode->i_dev,++block, bufsize))) { |
block | 91 | fs/locks.c | static void locks_insert_block(struct file_lock **block, struct file_lock *fl); |
block | 721 | fs/locks.c | static void locks_insert_block(struct file_lock **block, struct file_lock *fl) |
block | 725 | fs/locks.c | while ((bfl = *block) != NULL) |
block | 726 | fs/locks.c | block = &bfl->fl_block; |
block | 728 | fs/locks.c | *block = fl; |
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 | 255 | fs/minix/inode.c | int minix_bmap(struct inode * inode,int block) |
block | 259 | fs/minix/inode.c | if (block<0) { |
block | 263 | fs/minix/inode.c | if (block >= 7+512+512*512) { |
block | 267 | fs/minix/inode.c | if (block < 7) |
block | 268 | fs/minix/inode.c | return inode_bmap(inode,block); |
block | 269 | fs/minix/inode.c | block -= 7; |
block | 270 | fs/minix/inode.c | if (block < 512) { |
block | 274 | fs/minix/inode.c | return block_bmap(bread(inode->i_dev,i,BLOCK_SIZE),block); |
block | 276 | fs/minix/inode.c | block -= 512; |
block | 280 | fs/minix/inode.c | i = block_bmap(bread(inode->i_dev,i,BLOCK_SIZE),block>>9); |
block | 283 | fs/minix/inode.c | return block_bmap(bread(inode->i_dev,i,BLOCK_SIZE),block & 511); |
block | 369 | fs/minix/inode.c | struct buffer_head * minix_getblk(struct inode * inode, int block, int create) |
block | 373 | fs/minix/inode.c | if (block<0) { |
block | 377 | fs/minix/inode.c | if (block >= 7+512+512*512) { |
block | 381 | fs/minix/inode.c | if (block < 7) |
block | 382 | fs/minix/inode.c | return inode_getblk(inode,block,create); |
block | 383 | fs/minix/inode.c | block -= 7; |
block | 384 | fs/minix/inode.c | if (block < 512) { |
block | 386 | fs/minix/inode.c | return block_getblk(inode, bh, block, create); |
block | 388 | fs/minix/inode.c | block -= 512; |
block | 390 | fs/minix/inode.c | bh = block_getblk(inode, bh, block>>9, create); |
block | 391 | fs/minix/inode.c | return block_getblk(inode, bh, block & 511, create); |
block | 394 | fs/minix/inode.c | struct buffer_head * minix_bread(struct inode * inode, int block, int create) |
block | 398 | fs/minix/inode.c | bh = minix_getblk(inode,block,create); |
block | 413 | fs/minix/inode.c | int block, ino; |
block | 423 | fs/minix/inode.c | block = 2 + inode->i_sb->u.minix_sb.s_imap_blocks + |
block | 426 | fs/minix/inode.c | if (!(bh=bread(inode->i_dev,block, BLOCK_SIZE))) { |
block | 442 | fs/minix/inode.c | else for (block = 0; block < 9; block++) |
block | 443 | fs/minix/inode.c | inode->u.minix_i.i_data[block] = raw_inode->i_zone[block]; |
block | 463 | fs/minix/inode.c | int ino, block; |
block | 472 | 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 | 474 | fs/minix/inode.c | if (!(bh=bread(inode->i_dev, block, BLOCK_SIZE))) { |
block | 489 | fs/minix/inode.c | else for (block = 0; block < 9; block++) |
block | 490 | 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 | 339 | fs/msdos/inode.c | int msdos_bmap(struct inode *inode,int block) |
block | 346 | fs/msdos/inode.c | return sb->dir_start + block; |
block | 348 | fs/msdos/inode.c | cluster = block/sb->cluster_size; |
block | 349 | 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 | 582 | fs/sysv/inode.c | unsigned int block = block_nr; |
block | 588 | fs/sysv/inode.c | if (block < 10) |
block | 589 | fs/sysv/inode.c | return inode_bmap(sb,inode,block); |
block | 590 | fs/sysv/inode.c | block -= 10; |
block | 592 | fs/sysv/inode.c | if (block < sb->sv_ind_per_block) { |
block | 597 | fs/sysv/inode.c | return block_bmap(sb, bh, block, convert); |
block | 599 | fs/sysv/inode.c | block -= sb->sv_ind_per_block; |
block | 600 | fs/sysv/inode.c | if (block < sb->sv_ind_per_block_2) { |
block | 605 | fs/sysv/inode.c | i = block_bmap(sb, bh, block >> sb->sv_ind_per_block_bits, convert); |
block | 609 | fs/sysv/inode.c | return block_bmap(sb, bh, block & sb->sv_ind_per_block_1, convert); |
block | 611 | fs/sysv/inode.c | block -= sb->sv_ind_per_block_2; |
block | 612 | fs/sysv/inode.c | if (block < sb->sv_ind_per_block_3) { |
block | 617 | fs/sysv/inode.c | i = block_bmap(sb, bh, block >> sb->sv_ind_per_block_2_bits, convert); |
block | 621 | fs/sysv/inode.c | i = block_bmap(sb, bh, (block >> sb->sv_ind_per_block_bits) & sb->sv_ind_per_block_1,convert); |
block | 625 | fs/sysv/inode.c | return block_bmap(sb, bh, block & sb->sv_ind_per_block_1, convert); |
block | 627 | fs/sysv/inode.c | if ((int)block<0) { |
block | 679 | fs/sysv/inode.c | unsigned long tmp, block; |
block | 696 | fs/sysv/inode.c | block = tmp = *p; |
block | 698 | fs/sysv/inode.c | block = from_coh_ulong(block); |
block | 700 | fs/sysv/inode.c | result = sv_getblk(sb, bh->b_dev, block); |
block | 712 | fs/sysv/inode.c | block = sysv_new_block(sb); |
block | 713 | fs/sysv/inode.c | if (!block) { |
block | 717 | fs/sysv/inode.c | result = sv_getblk(sb, bh->b_dev, block); |
block | 719 | fs/sysv/inode.c | sysv_free_block(sb,block); |
block | 723 | fs/sysv/inode.c | *p = (sb->sv_convert ? to_coh_ulong(block) : block); |
block | 729 | fs/sysv/inode.c | struct buffer_head * sysv_getblk(struct inode * inode, unsigned int block, int create) |
block | 734 | fs/sysv/inode.c | if (block < 10) |
block | 735 | fs/sysv/inode.c | return inode_getblk(inode,block,create); |
block | 736 | fs/sysv/inode.c | block -= 10; |
block | 737 | fs/sysv/inode.c | if (block < sb->sv_ind_per_block) { |
block | 739 | fs/sysv/inode.c | return block_getblk(inode, bh, block, create); |
block | 741 | fs/sysv/inode.c | block -= sb->sv_ind_per_block; |
block | 742 | fs/sysv/inode.c | if (block < sb->sv_ind_per_block_2) { |
block | 744 | fs/sysv/inode.c | bh = block_getblk(inode, bh, block >> sb->sv_ind_per_block_bits, create); |
block | 745 | fs/sysv/inode.c | return block_getblk(inode, bh, block & sb->sv_ind_per_block_1, create); |
block | 747 | fs/sysv/inode.c | block -= sb->sv_ind_per_block_2; |
block | 748 | fs/sysv/inode.c | if (block < sb->sv_ind_per_block_3) { |
block | 750 | fs/sysv/inode.c | bh = block_getblk(inode, bh, block >> sb->sv_ind_per_block_2_bits, create); |
block | 751 | fs/sysv/inode.c | bh = block_getblk(inode, bh, (block >> sb->sv_ind_per_block_bits) & sb->sv_ind_per_block_1, create); |
block | 752 | fs/sysv/inode.c | return block_getblk(inode, bh, block & sb->sv_ind_per_block_1, create); |
block | 754 | fs/sysv/inode.c | if ((int)block<0) { |
block | 762 | fs/sysv/inode.c | struct buffer_head * sysv_file_bread(struct inode * inode, int block, int create) |
block | 766 | fs/sysv/inode.c | bh = sysv_getblk(inode,block,create); |
block | 807 | fs/sysv/inode.c | unsigned int block, ino; |
block | 818 | fs/sysv/inode.c | block = sb->sv_firstinodezone + ((ino-1) >> sb->sv_inodes_per_block_bits); |
block | 819 | fs/sysv/inode.c | if (!(bh = sv_bread(sb,inode->i_dev,block))) { |
block | 849 | fs/sysv/inode.c | for (block = 0; block < 10+1+1+1; block++) |
block | 850 | fs/sysv/inode.c | inode->u.sysv_i.i_data[block] = |
block | 851 | fs/sysv/inode.c | coh_read3byte(&raw_inode->i_a.i_addb[3*block]); |
block | 853 | fs/sysv/inode.c | for (block = 0; block < 10+1+1+1; block++) |
block | 854 | fs/sysv/inode.c | inode->u.sysv_i.i_data[block] = |
block | 855 | fs/sysv/inode.c | read3byte(&raw_inode->i_a.i_addb[3*block]); |
block | 894 | fs/sysv/inode.c | unsigned int ino, block; |
block | 904 | fs/sysv/inode.c | block = sb->sv_firstinodezone + ((ino-1) >> sb->sv_inodes_per_block_bits); |
block | 905 | fs/sysv/inode.c | if (!(bh = sv_bread(sb,inode->i_dev,block))) { |
block | 933 | fs/sysv/inode.c | for (block = 0; block < 10+1+1+1; block++) |
block | 934 | fs/sysv/inode.c | coh_write3byte(&raw_inode->i_a.i_addb[3*block],inode->u.sysv_i.i_data[block]); |
block | 936 | fs/sysv/inode.c | for (block = 0; block < 10+1+1+1; block++) |
block | 937 | 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 | 453 | 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 | 476 | include/linux/fs.h | extern int bmap(struct inode * inode,int block); |
block | 494 | include/linux/fs.h | extern struct buffer_head * get_hash_table(dev_t dev, int block, int size); |
block | 495 | include/linux/fs.h | extern struct buffer_head * getblk(dev_t dev, int block, int size); |
block | 502 | include/linux/fs.h | extern struct buffer_head * bread(dev_t dev, int block, int size); |
block | 505 | 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 | 163 | 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 | 31 | mm/filemap.c | static inline void multi_bmap(struct inode * inode, unsigned int block, unsigned int * nr, int shift) |
block | 34 | mm/filemap.c | block >>= shift; |
block | 36 | mm/filemap.c | *nr = bmap(inode, block); |
block | 38 | mm/filemap.c | block++; |
block | 160 | mm/swap.c | unsigned int block = offset << 3; |
block | 163 | mm/swap.c | if (!(zones[i] = swapf->i_op->smap(swapf,block++))) { |
block | 170 | mm/swap.c | unsigned int block = offset |
block | 174 | mm/swap.c | if (!(zones[i] = bmap(swapf,block++))) { |