tag | line | file | source code |
block | 38 | drivers/block/blk.h | #define SUBSECTOR(block) (CURRENT->current_nr_sectors > 0) |
block | 1169 | drivers/block/cdu31a.c | unsigned int block, |
block | 1188 | drivers/block/cdu31a.c | if (((block % 4) * 512) != ((2048 - readahead_dataleft) % 2048)) |
block | 1190 | drivers/block/cdu31a.c | sony_next_block += block % 4; |
block | 1191 | drivers/block/cdu31a.c | sony_blocks_left -= block % 4; |
block | 1192 | drivers/block/cdu31a.c | skip = (block % 4) * 512; |
block | 1376 | drivers/block/cdu31a.c | int block; |
block | 1444 | drivers/block/cdu31a.c | block = CURRENT->sector; |
block | 1462 | drivers/block/cdu31a.c | if ((dev != 0) && (block == 64)) |
block | 1472 | drivers/block/cdu31a.c | block += (ses_tocs[dev]->start_track_lba * 4); |
block | 1482 | drivers/block/cdu31a.c | if ((block / 4) < ses_tocs[dev]->start_track_lba) |
block | 1488 | drivers/block/cdu31a.c | if ((block / 4) >= ses_tocs[dev]->lead_out_start_lba) |
block | 1494 | drivers/block/cdu31a.c | if (((block + nblock) / 4) >= ses_tocs[dev]->lead_out_start_lba) |
block | 1518 | drivers/block/cdu31a.c | if (start_request(block / 4, CDU31A_READAHEAD / 4, 0, dev)) |
block | 1527 | drivers/block/cdu31a.c | else if (block != sony_next_block) |
block | 1531 | drivers/block/cdu31a.c | block, |
block | 1541 | drivers/block/cdu31a.c | else if (start_request(block / 4, CDU31A_READAHEAD / 4, 0, dev)) |
block | 1548 | drivers/block/cdu31a.c | read_data_block(CURRENT->buffer, block, nblock, res_reg, &res_size); |
block | 1881 | drivers/block/floppy.c | int block; |
block | 1893 | drivers/block/floppy.c | block = current_count_sectors + CURRENT->sector; |
block | 1894 | drivers/block/floppy.c | if (block > DRS->maxblock) |
block | 1895 | drivers/block/floppy.c | DRS->maxblock=block; |
block | 1896 | drivers/block/floppy.c | if ( block > floppy->sect) |
block | 2906 | drivers/block/floppy.c | int block; |
block | 2917 | drivers/block/floppy.c | block = (filp->f_pos + count) >> 9; |
block | 2918 | drivers/block/floppy.c | if(block > UDRS->maxblock) |
block | 2919 | drivers/block/floppy.c | UDRS->maxblock = block; |
block | 703 | drivers/block/hd.c | unsigned int dev, block, nsect, sec, track, head, cyl; |
block | 718 | drivers/block/hd.c | block = CURRENT->sector; |
block | 720 | drivers/block/hd.c | if (dev >= (NR_HD<<6) || block >= hd[dev].nr_sects || ((block+nsect) > hd[dev].nr_sects)) { |
block | 726 | drivers/block/hd.c | (CURRENT->dev>>6)+'a', block, nsect); |
block | 731 | drivers/block/hd.c | block += hd[dev].start_sect; |
block | 738 | drivers/block/hd.c | sec = block % hd_info[dev].sect + 1; |
block | 739 | drivers/block/hd.c | track = block / hd_info[dev].sect; |
block | 113 | drivers/block/ramdisk.c | int block, tries; |
block | 127 | drivers/block/ramdisk.c | block = tries; |
block | 128 | drivers/block/ramdisk.c | bh = breada(ROOT_DEV,block+1,BLOCK_SIZE, 0, PAGE_SIZE); |
block | 145 | drivers/block/ramdisk.c | block); |
block | 155 | drivers/block/ramdisk.c | block); |
block | 176 | drivers/block/ramdisk.c | bh = breada(ROOT_DEV, block, BLOCK_SIZE, 0, PAGE_SIZE); |
block | 178 | drivers/block/ramdisk.c | bh = bread(ROOT_DEV, block, BLOCK_SIZE); |
block | 181 | drivers/block/ramdisk.c | block); |
block | 188 | drivers/block/ramdisk.c | block++; |
block | 1869 | drivers/block/sbpcd.c | int block, checksum; |
block | 1874 | drivers/block/sbpcd.c | for (block=CD_BLOCK_OFFSET+1;block<CD_BLOCK_OFFSET+200;block++) |
block | 1882 | drivers/block/sbpcd.c | drvcmd[1]=(block>>16)&0xFF; |
block | 1883 | drivers/block/sbpcd.c | drvcmd[2]=(block>>8)&0xFF; |
block | 1884 | drivers/block/sbpcd.c | drvcmd[3]=block&0xFF; |
block | 1893 | drivers/block/sbpcd.c | drvcmd[2]=(block>>16)&0xFF; |
block | 1894 | drivers/block/sbpcd.c | drvcmd[3]=(block>>8)&0xFF; |
block | 1895 | drivers/block/sbpcd.c | drvcmd[4]=block&0xFF; |
block | 2975 | drivers/block/sbpcd.c | int i=0, j=0, frame, block; |
block | 2999 | drivers/block/sbpcd.c | block=msf2lba(&read_audio.addr.msf.minute); |
block | 3001 | drivers/block/sbpcd.c | block=read_audio.addr.lba; |
block | 3004 | drivers/block/sbpcd.c | block, blk2msf(block))); |
block | 3035 | drivers/block/sbpcd.c | drvcmd[1]=(block>>16)&0x000000ff; |
block | 3036 | drivers/block/sbpcd.c | drvcmd[2]=(block>>8)&0x000000ff; |
block | 3037 | drivers/block/sbpcd.c | drvcmd[3]=block&0x000000ff; |
block | 3045 | drivers/block/sbpcd.c | lba2msf(block,&drvcmd[1]); /* msf-bin format required */ |
block | 3236 | drivers/block/sbpcd.c | u_int block; |
block | 3257 | drivers/block/sbpcd.c | block = CURRENT->sector; /* always numbered as 512-byte-pieces */ |
block | 3266 | drivers/block/sbpcd.c | DPRINTF((DBG_BSZ,"SBPCD: read sector %d (%d sectors)\n", block, nsect)); |
block | 3268 | drivers/block/sbpcd.c | DPRINTF((DBG_MUL,"SBPCD: read LBA %d\n", block/4)); |
block | 3336 | drivers/block/sbpcd.c | int block; |
block | 3339 | drivers/block/sbpcd.c | block=CURRENT->sector/4; |
block | 3345 | drivers/block/sbpcd.c | DPRINTF((DBG_MUL,"SBPCD: read MSF %08X\n", blk2msf(block))); |
block | 3349 | drivers/block/sbpcd.c | blk2msf(DriveStruct[d].lba_multi+block), |
block | 3350 | drivers/block/sbpcd.c | blk2msf(block))); |
block | 3351 | drivers/block/sbpcd.c | block=DriveStruct[d].lba_multi+block; |
block | 3354 | drivers/block/sbpcd.c | if ((block<=DriveStruct[d].last_redirect) |
block | 3358 | drivers/block/sbpcd.c | blk2msf(DriveStruct[d].lba_multi+block), |
block | 3359 | drivers/block/sbpcd.c | blk2msf(block))); |
block | 3360 | drivers/block/sbpcd.c | block=DriveStruct[d].lba_multi+block; |
block | 3366 | drivers/block/sbpcd.c | if (block+SBP_BUFFER_FRAMES <= DriveStruct[d].CDsize_frm) |
block | 3370 | drivers/block/sbpcd.c | DriveStruct[d].sbp_read_frames=DriveStruct[d].CDsize_frm-block; |
block | 3375 | drivers/block/sbpcd.c | block, DriveStruct[d].CDsize_frm)); |
block | 3393 | drivers/block/sbpcd.c | drvcmd[1]=(block>>16)&0x000000ff; |
block | 3394 | drivers/block/sbpcd.c | drvcmd[2]=(block>>8)&0x000000ff; |
block | 3395 | drivers/block/sbpcd.c | drvcmd[3]=block&0x000000ff; |
block | 3406 | drivers/block/sbpcd.c | lba2msf(block,&drvcmd[1]); /* msf-bcd format required */ |
block | 3413 | drivers/block/sbpcd.c | drvcmd[1]=(block>>16)&0x000000ff; |
block | 3414 | drivers/block/sbpcd.c | drvcmd[2]=(block>>8)&0x000000ff; |
block | 3415 | drivers/block/sbpcd.c | drvcmd[3]=block&0x000000ff; |
block | 3425 | drivers/block/sbpcd.c | lba2msf(block,&drvcmd[1]); /* msf-bin format required */ |
block | 211 | drivers/block/xd.c | u_int block,count,retry; |
block | 219 | drivers/block/xd.c | block = CURRENT->sector + xd[MINOR(CURRENT->dev)].start_sect; |
block | 226 | drivers/block/xd.c | code = xd_readwrite(CURRENT->cmd,CURRENT_DEV,CURRENT->buffer,block,count); |
block | 323 | drivers/block/xd.c | static int xd_readwrite (u_char operation,u_char drive,char *buffer,u_int block,u_int count) |
block | 330 | 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 | 337 | drivers/block/xd.c | track = block / xd_info[drive].sectors; |
block | 340 | drivers/block/xd.c | sector = block % xd_info[drive].sectors; |
block | 367 | drivers/block/xd.c | count -= temp, buffer += temp * 0x200, block += temp; |
block | 398 | drivers/scsi/eata.c | sh[j]->block = sh[j]; |
block | 230 | drivers/scsi/hosts.c | retval->block = NULL; |
block | 321 | drivers/scsi/hosts.c | if (shpnt->block) sh[block_count++] = shpnt; |
block | 323 | drivers/scsi/hosts.c | if (block_count == 1) sh[0]->block = NULL; |
block | 328 | drivers/scsi/hosts.c | sh[index]->block = sh[index + 1]; |
block | 333 | drivers/scsi/hosts.c | sh[block_count - 1]->block = sh[0]; |
block | 245 | drivers/scsi/hosts.h | struct Scsi_Host * block; |
block | 617 | drivers/scsi/scsi.c | ((device->host->block && host_active && device->host != host_active) || |
block | 618 | drivers/scsi/scsi.c | (device->host->block && host_next && device->host != host_next) || |
block | 621 | drivers/scsi/scsi.c | if (device->host->block && !host_next && host_active |
block | 702 | drivers/scsi/scsi.c | ((host->block && host_active && host != host_active) || |
block | 703 | drivers/scsi/scsi.c | (host->block && host_next && host != host_next) || |
block | 708 | drivers/scsi/scsi.c | if (host->block && !host_next && host_active && host != host_active) |
block | 939 | drivers/scsi/scsi.c | ((host->block && host_active && host != host_active) || |
block | 940 | drivers/scsi/scsi.c | (host->block && host_next && host != host_next) || |
block | 946 | drivers/scsi/scsi.c | if (host->block && !host_next && host_active |
block | 952 | drivers/scsi/scsi.c | ((host->block && host_active && host != host_active) || |
block | 953 | drivers/scsi/scsi.c | (host->block && host_next && host != host_next) || |
block | 960 | drivers/scsi/scsi.c | if (host->block) { |
block | 968 | drivers/scsi/scsi.c | host_next = host->block; |
block | 1412 | drivers/scsi/scsi.c | if (host->block) scsi_maybe_deadlocked = 1; |
block | 1439 | drivers/scsi/scsi.c | if (host->block && host->host_busy == 0) { |
block | 1440 | drivers/scsi/scsi.c | struct Scsi_Host * block; |
block | 1442 | drivers/scsi/scsi.c | block = host_next; |
block | 1445 | drivers/scsi/scsi.c | if (block) wake_up(&block->host_wait); |
block | 1447 | drivers/scsi/scsi.c | for (block = host->block; block != host; block = block->block) |
block | 1448 | drivers/scsi/scsi.c | wake_up(&block->host_wait); |
block | 1627 | drivers/scsi/scsi.c | if (host->block) { |
block | 1639 | drivers/scsi/scsi.c | if (host->block && host->host_busy == 0) { |
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 | 237 | drivers/scsi/scsi_debug.c | block = cmd[5] + (cmd[4] << 8) + (cmd[3] << 16) + (cmd[2] << 24); |
block | 239 | drivers/scsi/scsi_debug.c | block = cmd[3] + (cmd[2] << 8) + ((cmd[1] & 0x1f) << 16); |
block | 273 | drivers/scsi/scsi_debug.c | if(block == 0 && target == 0) { |
block | 288 | drivers/scsi/scsi_debug.c | if (SCpnt->use_sg) printk("Block %x (%d %d)\n",block, SCpnt->request.nr_sectors, |
block | 294 | drivers/scsi/scsi_debug.c | if(block == 0xfff0) { |
block | 316 | drivers/scsi/scsi_debug.c | memcpy(buff+60, &block, sizeof(block)); |
block | 324 | drivers/scsi/scsi_debug.c | block += bufflen >> 9; |
block | 348 | drivers/scsi/scsi_debug.c | block = cmd[5] + (cmd[4] << 8) + (cmd[3] << 16) + (cmd[2] << 24); |
block | 350 | drivers/scsi/scsi_debug.c | block = cmd[3] + (cmd[2] << 8) + ((cmd[1] & 0x1f) << 16); |
block | 360 | drivers/scsi/scsi_debug.c | if (block != *((unsigned long *) (buff+60))) { |
block | 361 | drivers/scsi/scsi_debug.c | printk("%x %x :",block, *((unsigned long *) (buff+60))); |
block | 401 | drivers/scsi/sd.c | int dev, block, this_count; |
block | 416 | drivers/scsi/sd.c | block = SCpnt->request.sector; |
block | 420 | drivers/scsi/sd.c | printk("Doing sd request, dev = %d, block = %d\n", dev, block); |
block | 425 | drivers/scsi/sd.c | block + SCpnt->request.nr_sectors > sd[dev].nr_sects) |
block | 431 | drivers/scsi/sd.c | block += sd[dev].start_sect; |
block | 445 | drivers/scsi/sd.c | printk("sd%c : real dev = /dev/sd%c, block = %d\n", 'a' + MINOR(SCpnt->request.dev), dev, block); |
block | 460 | drivers/scsi/sd.c | if((block & 1) || (SCpnt->request.nr_sectors & 1)) { |
block | 719 | drivers/scsi/sd.c | if(block & 1) panic("sd.c:Bad block number requested"); |
block | 721 | drivers/scsi/sd.c | block = block >> 1; |
block | 726 | drivers/scsi/sd.c | block = block << 1; |
block | 730 | drivers/scsi/sd.c | if (((this_count > 0xff) || (block > 0x1fffff)) && rscsi_disks[dev].ten) |
block | 736 | drivers/scsi/sd.c | cmd[2] = (unsigned char) (block >> 24) & 0xff; |
block | 737 | drivers/scsi/sd.c | cmd[3] = (unsigned char) (block >> 16) & 0xff; |
block | 738 | drivers/scsi/sd.c | cmd[4] = (unsigned char) (block >> 8) & 0xff; |
block | 739 | drivers/scsi/sd.c | cmd[5] = (unsigned char) block & 0xff; |
block | 749 | drivers/scsi/sd.c | cmd[1] |= (unsigned char) ((block >> 16) & 0x1f); |
block | 750 | drivers/scsi/sd.c | cmd[2] = (unsigned char) ((block >> 8) & 0xff); |
block | 751 | drivers/scsi/sd.c | cmd[3] = (unsigned char) block & 0xff; |
block | 491 | drivers/scsi/sr.c | unsigned int dev, block, realcount; |
block | 504 | drivers/scsi/sr.c | block = SCpnt->request.sector; |
block | 567 | drivers/scsi/sr.c | if (block >= 64 && block < 68) { |
block | 568 | drivers/scsi/sr.c | block += scsi_CDs[dev].mpcd_sector*4; } |
block | 688 | drivers/scsi/sr.c | start = block % 4; |
block | 710 | drivers/scsi/sr.c | block = block >> 2; /* These are the sectors that the cdrom uses */ |
block | 712 | drivers/scsi/sr.c | block = block & 0xfffffffc; |
block | 718 | drivers/scsi/sr.c | if (((realcount > 0xff) || (block > 0x1fffff)) && scsi_CDs[dev].ten) |
block | 727 | drivers/scsi/sr.c | cmd[2] = (unsigned char) (block >> 24) & 0xff; |
block | 728 | drivers/scsi/sr.c | cmd[3] = (unsigned char) (block >> 16) & 0xff; |
block | 729 | drivers/scsi/sr.c | cmd[4] = (unsigned char) (block >> 8) & 0xff; |
block | 730 | drivers/scsi/sr.c | cmd[5] = (unsigned char) block & 0xff; |
block | 743 | drivers/scsi/sr.c | cmd[1] |= (unsigned char) ((block >> 16) & 0x1f); |
block | 744 | drivers/scsi/sr.c | cmd[2] = (unsigned char) ((block >> 8) & 0xff); |
block | 745 | drivers/scsi/sr.c | cmd[3] = (unsigned char) block & 0xff; |
block | 753 | drivers/scsi/sr.c | printk("ReadCD: %d %d %d %d\n",block, realcount, buffer, this_count); |
block | 374 | 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 | 23 | fs/block_dev.c | int block, blocks; |
block | 53 | fs/block_dev.c | block = filp->f_pos >> blocksize_bits; |
block | 61 | fs/block_dev.c | if (block >= size) |
block | 69 | fs/block_dev.c | bh = getblk(dev, block, blocksize); |
block | 71 | fs/block_dev.c | bh = breada(dev,block,block+1,block+2,-1); |
block | 74 | fs/block_dev.c | for(i=0; i<blocks_per_cluster; i++) cluster_list[i] = block+i; |
block | 75 | fs/block_dev.c | if((block % blocks_per_cluster) == 0) |
block | 77 | fs/block_dev.c | bh = getblk(dev, block, blocksize); |
block | 84 | fs/block_dev.c | bh = bread(dev,block,blocksize); |
block | 88 | fs/block_dev.c | if (block + blocks > size) blocks = size - block; |
block | 90 | fs/block_dev.c | excess = (block + blocks) % blocks_per_cluster; |
block | 95 | fs/block_dev.c | if(((i+block) % blocks_per_cluster) == 0) { |
block | 96 | fs/block_dev.c | for(j=0; j<blocks_per_cluster; j++) cluster_list[j] = block+i+j; |
block | 99 | fs/block_dev.c | bhlist[i] = getblk (dev, block+i, blocksize); |
block | 112 | fs/block_dev.c | block++; |
block | 159 | fs/block_dev.c | unsigned int block; |
block | 204 | fs/block_dev.c | block = offset >> blocksize_bits; |
block | 212 | fs/block_dev.c | excess = (block + blocks) % blocks_per_cluster; |
block | 219 | fs/block_dev.c | if (block + blocks > size) |
block | 220 | fs/block_dev.c | blocks = size - block; |
block | 238 | fs/block_dev.c | if((block % blocks_per_cluster) == 0) { |
block | 239 | fs/block_dev.c | for(i=0; i<blocks_per_cluster; i++) cluster_list[i] = block+i; |
block | 243 | fs/block_dev.c | *bhb = getblk(dev, block++, blocksize); |
block | 274 | fs/buffer.c | #define _hashfn(dev,block) (((unsigned)(dev^block))%nr_hash) |
block | 275 | fs/buffer.c | #define hash(dev,block) hash_table[_hashfn(dev,block)] |
block | 411 | fs/buffer.c | static struct buffer_head * find_buffer(dev_t dev, int block, int size) |
block | 415 | fs/buffer.c | for (tmp = hash(dev,block) ; tmp != NULL ; tmp = tmp->b_next) |
block | 416 | fs/buffer.c | if (tmp->b_dev==dev && tmp->b_blocknr==block) |
block | 434 | fs/buffer.c | struct buffer_head * get_hash_table(dev_t dev, int block, int size) |
block | 439 | fs/buffer.c | if (!(bh=find_buffer(dev,block,size))) |
block | 443 | fs/buffer.c | if (bh->b_dev == dev && bh->b_blocknr == block && bh->b_size == size) |
block | 687 | fs/buffer.c | struct buffer_head * getblk(dev_t dev, int block, int size) |
block | 699 | fs/buffer.c | bh = get_hash_table(dev, block, size); |
block | 709 | fs/buffer.c | if (find_buffer(dev,block,size)) |
block | 724 | fs/buffer.c | bh->b_blocknr=block; |
block | 799 | fs/buffer.c | struct buffer_head * bread(dev_t dev, int block, int size) |
block | 803 | fs/buffer.c | if (!(bh = getblk(dev, block, size))) { |
block | 826 | fs/buffer.c | struct buffer_head * breada(dev_t dev, int block, int bufsize, |
block | 838 | fs/buffer.c | if (block < 0 || !(bh = getblk(dev,block,bufsize))) |
block | 856 | fs/buffer.c | bh = getblk(dev,block+i,bufsize); |
block | 1004 | fs/buffer.c | int block; |
block | 1014 | fs/buffer.c | block = *++b; |
block | 1015 | fs/buffer.c | if (!block) |
block | 1017 | fs/buffer.c | first = get_hash_table(dev, block, size); |
block | 1046 | fs/buffer.c | int block; |
block | 1054 | fs/buffer.c | block = *(p++); |
block | 1055 | fs/buffer.c | if (!block) |
block | 1057 | fs/buffer.c | if (find_buffer(dev, block, size)) |
block | 1062 | fs/buffer.c | block = 0; |
block | 1064 | fs/buffer.c | arr[block++] = bh; |
block | 1085 | fs/buffer.c | read_buffers(arr,block); |
block | 1086 | fs/buffer.c | while (block-- > 0) |
block | 1087 | fs/buffer.c | brelse(arr[block]); |
block | 1113 | fs/buffer.c | int block; |
block | 1115 | fs/buffer.c | block = b[0]; |
block | 1116 | fs/buffer.c | if (!block) |
block | 1118 | fs/buffer.c | bh = get_hash_table(dev, block, size); |
block | 1513 | fs/buffer.c | static unsigned long try_to_generate_cluster(dev_t dev, int block, int size) |
block | 1529 | fs/buffer.c | nblock = block; |
block | 1546 | 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 | 126 | fs/ext2/inode.c | int ext2_bmap (struct inode * inode, int block) |
block | 131 | fs/ext2/inode.c | if (block < 0) { |
block | 135 | fs/ext2/inode.c | if (block >= EXT2_NDIR_BLOCKS + addr_per_block + |
block | 141 | fs/ext2/inode.c | if (block < EXT2_NDIR_BLOCKS) |
block | 142 | fs/ext2/inode.c | return inode_bmap (inode, block); |
block | 143 | fs/ext2/inode.c | block -= EXT2_NDIR_BLOCKS; |
block | 144 | fs/ext2/inode.c | if (block < addr_per_block) { |
block | 149 | fs/ext2/inode.c | inode->i_sb->s_blocksize), block); |
block | 151 | fs/ext2/inode.c | block -= addr_per_block; |
block | 152 | fs/ext2/inode.c | if (block < addr_per_block * addr_per_block) { |
block | 158 | fs/ext2/inode.c | block / addr_per_block); |
block | 163 | fs/ext2/inode.c | block & (addr_per_block - 1)); |
block | 165 | fs/ext2/inode.c | block -= addr_per_block * addr_per_block; |
block | 170 | fs/ext2/inode.c | block / (addr_per_block * addr_per_block)); |
block | 174 | fs/ext2/inode.c | (block / addr_per_block) & (addr_per_block - 1)); |
block | 178 | fs/ext2/inode.c | block & (addr_per_block - 1)); |
block | 358 | fs/ext2/inode.c | struct buffer_head * ext2_getblk (struct inode * inode, long block, |
block | 366 | fs/ext2/inode.c | if (block < 0) { |
block | 370 | fs/ext2/inode.c | if (block > EXT2_NDIR_BLOCKS + addr_per_block + |
block | 382 | fs/ext2/inode.c | ext2_debug ("block %lu, next %lu, goal %lu.\n", block, |
block | 386 | fs/ext2/inode.c | if (block == inode->u.ext2_i.i_next_alloc_block + 1) { |
block | 392 | fs/ext2/inode.c | b = block; |
block | 393 | fs/ext2/inode.c | if (block < EXT2_NDIR_BLOCKS) |
block | 394 | fs/ext2/inode.c | return inode_getblk (inode, block, create, b, err); |
block | 395 | fs/ext2/inode.c | block -= EXT2_NDIR_BLOCKS; |
block | 396 | fs/ext2/inode.c | if (block < addr_per_block) { |
block | 398 | fs/ext2/inode.c | return block_getblk (inode, bh, block, create, |
block | 401 | fs/ext2/inode.c | block -= addr_per_block; |
block | 402 | fs/ext2/inode.c | if (block < addr_per_block * addr_per_block) { |
block | 404 | fs/ext2/inode.c | bh = block_getblk (inode, bh, block / addr_per_block, create, |
block | 406 | fs/ext2/inode.c | return block_getblk (inode, bh, block & (addr_per_block - 1), |
block | 409 | fs/ext2/inode.c | block -= addr_per_block * addr_per_block; |
block | 411 | fs/ext2/inode.c | bh = block_getblk (inode, bh, block/(addr_per_block * addr_per_block), |
block | 413 | fs/ext2/inode.c | bh = block_getblk (inode, bh, (block/addr_per_block) & (addr_per_block - 1), |
block | 415 | fs/ext2/inode.c | return block_getblk (inode, bh, block & (addr_per_block - 1), create, |
block | 419 | fs/ext2/inode.c | int ext2_getcluster (struct inode * inode, long block) |
block | 428 | fs/ext2/inode.c | if (block < 0) { |
block | 432 | fs/ext2/inode.c | if (block > EXT2_NDIR_BLOCKS + addr_per_block + |
block | 440 | fs/ext2/inode.c | b = block; |
block | 441 | fs/ext2/inode.c | if (block < EXT2_NDIR_BLOCKS) return 0; |
block | 443 | fs/ext2/inode.c | block -= EXT2_NDIR_BLOCKS; |
block | 445 | fs/ext2/inode.c | if (block < addr_per_block) { |
block | 447 | fs/ext2/inode.c | return block_getcluster (inode, bh, block, |
block | 450 | fs/ext2/inode.c | block -= addr_per_block; |
block | 451 | fs/ext2/inode.c | if (block < addr_per_block * addr_per_block) { |
block | 453 | fs/ext2/inode.c | bh = block_getblk (inode, bh, block / addr_per_block, create, |
block | 455 | fs/ext2/inode.c | return block_getcluster (inode, bh, block & (addr_per_block - 1), |
block | 458 | fs/ext2/inode.c | block -= addr_per_block * addr_per_block; |
block | 460 | fs/ext2/inode.c | bh = block_getblk (inode, bh, block/(addr_per_block * addr_per_block), |
block | 462 | fs/ext2/inode.c | bh = block_getblk (inode, bh, (block/addr_per_block) & (addr_per_block - 1), |
block | 464 | fs/ext2/inode.c | return block_getcluster (inode, bh, block & (addr_per_block - 1), |
block | 468 | fs/ext2/inode.c | struct buffer_head * ext2_bread (struct inode * inode, int block, |
block | 473 | fs/ext2/inode.c | bh = ext2_getblk (inode, block, create, err); |
block | 492 | fs/ext2/inode.c | unsigned long block; |
block | 513 | fs/ext2/inode.c | block = gdp[desc].bg_inode_table + |
block | 516 | fs/ext2/inode.c | if (!(bh = bread (inode->i_dev, block, inode->i_sb->s_blocksize))) |
block | 519 | fs/ext2/inode.c | "inode=%lu, block=%lu", inode->i_ino, block); |
block | 550 | fs/ext2/inode.c | else for (block = 0; block < EXT2_N_BLOCKS; block++) |
block | 551 | fs/ext2/inode.c | inode->u.ext2_i.i_data[block] = raw_inode->i_block[block]; |
block | 584 | fs/ext2/inode.c | unsigned long block; |
block | 604 | fs/ext2/inode.c | block = gdp[desc].bg_inode_table + |
block | 607 | fs/ext2/inode.c | if (!(bh = bread (inode->i_dev, block, inode->i_sb->s_blocksize))) |
block | 610 | fs/ext2/inode.c | "inode=%lu, block=%lu", inode->i_ino, block); |
block | 632 | fs/ext2/inode.c | else for (block = 0; block < EXT2_N_BLOCKS; block++) |
block | 633 | 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 | 871 | fs/hpfs/hpfs_fs.c | char *block; |
block | 902 | fs/hpfs/hpfs_fs.c | block = map_sector(inode->i_dev, hpfs_bmap(inode, q), &bh); |
block | 903 | fs/hpfs/hpfs_fs.c | if (!block) |
block | 911 | fs/hpfs/hpfs_fs.c | inode->i_hpfs_conv = choose_conv(block + r, n); |
block | 918 | fs/hpfs/hpfs_fs.c | memcpy_tofs(buf, block + r, n); |
block | 925 | 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 | 19 | fs/ioctl.c | int block; |
block | 30 | fs/ioctl.c | block = get_fs_long((long *) arg); |
block | 31 | fs/ioctl.c | block = filp->f_inode->i_op->bmap(filp->f_inode,block); |
block | 32 | fs/ioctl.c | put_fs_long(block,(long *) arg); |
block | 68 | fs/isofs/dir.c | unsigned int block,offset,i, j; |
block | 84 | fs/isofs/dir.c | block = isofs_bmap(inode,filp->f_pos>>bufbits); |
block | 86 | fs/isofs/dir.c | if(!block) return 0; |
block | 88 | fs/isofs/dir.c | if(!(bh = breada(inode->i_dev, block, bufsize, filp->f_pos, inode->i_size))) |
block | 94 | fs/isofs/dir.c | block, offset, filp->f_pos); |
block | 97 | fs/isofs/dir.c | inode_number = (block << bufbits) + (offset & (bufsize - 1)); |
block | 108 | fs/isofs/dir.c | block = isofs_bmap(inode,(filp->f_pos)>>bufbits); |
block | 109 | fs/isofs/dir.c | if (!block |
block | 110 | fs/isofs/dir.c | || !(bh = breada(inode->i_dev, block, bufsize, filp->f_pos, |
block | 134 | fs/isofs/dir.c | block = isofs_bmap(inode,(filp->f_pos)>> bufbits); |
block | 135 | fs/isofs/dir.c | if (!block |
block | 136 | fs/isofs/dir.c | || !(bh = breada(inode->i_dev, block, bufsize, |
block | 96 | fs/isofs/file.c | int block; |
block | 101 | fs/isofs/file.c | block = isofs_bmap(inode,0); |
block | 102 | fs/isofs/file.c | if (block && (bh = bread(inode->i_dev,block, ISOFS_BUFFER_SIZE(inode)))) { |
block | 122 | fs/isofs/file.c | int block, blocks, offset, total_blocks; |
block | 148 | fs/isofs/file.c | block = filp->f_pos >> ISOFS_BUFFER_BITS(inode); |
block | 166 | fs/isofs/file.c | if (block + blocks > total_blocks) |
block | 167 | fs/isofs/file.c | blocks = total_blocks - block; |
block | 187 | fs/isofs/file.c | *bhb = getblk(inode->i_dev,isofs_bmap(inode, block++), ISOFS_BUFFER_SIZE(inode)); |
block | 338 | fs/isofs/inode.c | int isofs_bmap(struct inode * inode,int block) |
block | 341 | fs/isofs/inode.c | if (block<0) { |
block | 345 | fs/isofs/inode.c | return (inode->u.isofs_i.i_first_extent >> ISOFS_BUFFER_BITS(inode)) + block; |
block | 356 | fs/isofs/inode.c | int block; |
block | 359 | fs/isofs/inode.c | block = inode->i_ino >> ISOFS_BUFFER_BITS(inode); |
block | 360 | fs/isofs/inode.c | if (!(bh=bread(inode->i_dev,block, bufsize))) { |
block | 383 | fs/isofs/inode.c | if (!(bh = bread(inode->i_dev,++block, bufsize))) { |
block | 458 | fs/isofs/inode.c | printk("Get inode %d: %d %d: %d\n",inode->i_ino, block, |
block | 564 | fs/isofs/inode.c | unsigned int block,offset; |
block | 574 | fs/isofs/inode.c | block = extent << (ISOFS_BLOCK_BITS - bufbits); |
block | 575 | fs/isofs/inode.c | if (!(bh = bread(parent->i_dev, block, bufsize))) return -1; |
block | 611 | fs/isofs/inode.c | block = parent_dir << (ISOFS_BLOCK_BITS - bufbits); |
block | 612 | fs/isofs/inode.c | if (!block || !(bh = bread(parent->i_dev,block, bufsize))) |
block | 618 | fs/isofs/inode.c | inode_number = (block << bufbits)+(offset & (bufsize - 1)); |
block | 628 | fs/isofs/inode.c | block++; |
block | 631 | fs/isofs/inode.c | if((block & 1) && (ISOFS_BLOCK_BITS - bufbits)) |
block | 633 | fs/isofs/inode.c | if (!block |
block | 634 | fs/isofs/inode.c | || !(bh = bread(parent->i_dev,block, bufsize))) |
block | 658 | fs/isofs/inode.c | block++; |
block | 659 | fs/isofs/inode.c | if(!(bh = bread(parent->i_dev,block,bufsize))) { |
block | 710 | fs/isofs/inode.c | struct buffer_head * leak_check_bread(int dev, int block, int size){ |
block | 712 | fs/isofs/inode.c | return bread(dev, block, size); |
block | 66 | fs/isofs/namei.c | unsigned int block, i, f_pos, offset, inode_number; |
block | 80 | fs/isofs/namei.c | if (!(block = dir->u.isofs_i.i_first_extent)) return NULL; |
block | 85 | fs/isofs/namei.c | block = isofs_bmap(dir,f_pos >> bufbits); |
block | 87 | fs/isofs/namei.c | if (!block || !(bh = bread(dir->i_dev,block,bufsize))) return NULL; |
block | 92 | fs/isofs/namei.c | inode_number = (block << bufbits) + (offset & (bufsize - 1)); |
block | 102 | fs/isofs/namei.c | block = isofs_bmap(dir,f_pos>>bufbits); |
block | 103 | fs/isofs/namei.c | if (!block || !(bh = bread(dir->i_dev,block,bufsize))) |
block | 124 | fs/isofs/namei.c | block = isofs_bmap(dir,f_pos>>bufbits); |
block | 125 | fs/isofs/namei.c | if (!block || !(bh = bread(dir->i_dev,block,bufsize))) { |
block | 56 | fs/isofs/rock.c | int block, offset, offset1; \ |
block | 60 | fs/isofs/rock.c | block = cont_extent; \ |
block | 64 | fs/isofs/rock.c | block <<= 1; \ |
block | 65 | fs/isofs/rock.c | if (offset >= 1024) block++; \ |
block | 68 | fs/isofs/rock.c | bh = bread(DEV->i_dev, block++, ISOFS_BUFFER_SIZE(DEV)); \ |
block | 79 | fs/isofs/rock.c | bh = bread(DEV->i_dev, block, ISOFS_BUFFER_SIZE(DEV)); \ |
block | 401 | fs/isofs/rock.c | int block; |
block | 413 | fs/isofs/rock.c | block = inode->i_ino >> bufbits; |
block | 414 | fs/isofs/rock.c | if (!(bh=bread(inode->i_dev,block, bufsize))) { |
block | 432 | fs/isofs/rock.c | if (!(bh = bread(inode->i_dev,++block, bufsize))) { |
block | 46 | fs/minix/bitmap.c | void minix_free_block(struct super_block * sb, int block) |
block | 55 | fs/minix/bitmap.c | if (block < sb->u.minix_sb.s_firstdatazone || |
block | 56 | fs/minix/bitmap.c | block >= sb->u.minix_sb.s_nzones) { |
block | 60 | fs/minix/bitmap.c | bh = get_hash_table(sb->s_dev,block,BLOCK_SIZE); |
block | 64 | fs/minix/bitmap.c | zone = block - sb->u.minix_sb.s_firstdatazone + 1; |
block | 73 | fs/minix/bitmap.c | printk("free_block (%04x:%d): bit already cleared\n",sb->s_dev,block); |
block | 69 | fs/minix/file.c | int block, blocks, offset; |
block | 95 | fs/minix/file.c | block = offset >> BLOCK_SIZE_BITS; |
block | 103 | fs/minix/file.c | if (block + blocks > size) |
block | 104 | fs/minix/file.c | blocks = size - block; |
block | 122 | fs/minix/file.c | *bhb = minix_getblk(inode, block++, 0); |
block | 27 | fs/minix/fsync.c | static int sync_block (struct inode * inode, unsigned short * block, int wait) |
block | 32 | fs/minix/fsync.c | if (!*block) |
block | 34 | fs/minix/fsync.c | tmp = *block; |
block | 35 | fs/minix/fsync.c | bh = get_hash_table(inode->i_dev, *block, blocksize); |
block | 38 | fs/minix/fsync.c | if (*block != tmp) { |
block | 120 | fs/minix/inode.c | int i,dev=s->s_dev,block; |
block | 164 | fs/minix/inode.c | block=2; |
block | 166 | fs/minix/inode.c | if ((s->u.minix_sb.s_imap[i]=bread(dev,block,BLOCK_SIZE)) != NULL) |
block | 167 | fs/minix/inode.c | block++; |
block | 171 | fs/minix/inode.c | if ((s->u.minix_sb.s_zmap[i]=bread(dev,block,BLOCK_SIZE)) != NULL) |
block | 172 | fs/minix/inode.c | block++; |
block | 175 | fs/minix/inode.c | if (block != 2+s->u.minix_sb.s_imap_blocks+s->u.minix_sb.s_zmap_blocks) { |
block | 244 | fs/minix/inode.c | int minix_bmap(struct inode * inode,int block) |
block | 248 | fs/minix/inode.c | if (block<0) { |
block | 252 | fs/minix/inode.c | if (block >= 7+512+512*512) { |
block | 256 | fs/minix/inode.c | if (block < 7) |
block | 257 | fs/minix/inode.c | return inode_bmap(inode,block); |
block | 258 | fs/minix/inode.c | block -= 7; |
block | 259 | fs/minix/inode.c | if (block < 512) { |
block | 263 | fs/minix/inode.c | return block_bmap(bread(inode->i_dev,i,BLOCK_SIZE),block); |
block | 265 | fs/minix/inode.c | block -= 512; |
block | 269 | fs/minix/inode.c | i = block_bmap(bread(inode->i_dev,i,BLOCK_SIZE),block>>9); |
block | 272 | fs/minix/inode.c | return block_bmap(bread(inode->i_dev,i,BLOCK_SIZE),block & 511); |
block | 358 | fs/minix/inode.c | struct buffer_head * minix_getblk(struct inode * inode, int block, int create) |
block | 362 | fs/minix/inode.c | if (block<0) { |
block | 366 | fs/minix/inode.c | if (block >= 7+512+512*512) { |
block | 370 | fs/minix/inode.c | if (block < 7) |
block | 371 | fs/minix/inode.c | return inode_getblk(inode,block,create); |
block | 372 | fs/minix/inode.c | block -= 7; |
block | 373 | fs/minix/inode.c | if (block < 512) { |
block | 375 | fs/minix/inode.c | return block_getblk(inode, bh, block, create); |
block | 377 | fs/minix/inode.c | block -= 512; |
block | 379 | fs/minix/inode.c | bh = block_getblk(inode, bh, block>>9, create); |
block | 380 | fs/minix/inode.c | return block_getblk(inode, bh, block & 511, create); |
block | 383 | fs/minix/inode.c | struct buffer_head * minix_bread(struct inode * inode, int block, int create) |
block | 387 | fs/minix/inode.c | bh = minix_getblk(inode,block,create); |
block | 402 | fs/minix/inode.c | int block, ino; |
block | 412 | fs/minix/inode.c | block = 2 + inode->i_sb->u.minix_sb.s_imap_blocks + |
block | 415 | fs/minix/inode.c | if (!(bh=bread(inode->i_dev,block, BLOCK_SIZE))) { |
block | 431 | fs/minix/inode.c | else for (block = 0; block < 9; block++) |
block | 432 | fs/minix/inode.c | inode->u.minix_i.i_data[block] = raw_inode->i_zone[block]; |
block | 452 | fs/minix/inode.c | int ino, block; |
block | 461 | 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 | 463 | fs/minix/inode.c | if (!(bh=bread(inode->i_dev, block, BLOCK_SIZE))) { |
block | 478 | fs/minix/inode.c | else for (block = 0; block < 9; block++) |
block | 479 | fs/minix/inode.c | raw_inode->i_zone[block] = inode->u.minix_i.i_data[block]; |
block | 67 | fs/minix/namei.c | unsigned long block, offset; |
block | 83 | fs/minix/namei.c | block = offset = 0; |
block | 84 | fs/minix/namei.c | while (block*BLOCK_SIZE+offset < dir->i_size) { |
block | 86 | fs/minix/namei.c | bh = minix_bread(dir,block,0); |
block | 88 | fs/minix/namei.c | block++; |
block | 100 | fs/minix/namei.c | block++; |
block | 151 | fs/minix/namei.c | unsigned long block, offset; |
block | 171 | fs/minix/namei.c | block = offset = 0; |
block | 174 | fs/minix/namei.c | bh = minix_bread(dir,block,1); |
block | 180 | fs/minix/namei.c | if (block*bh->b_size + offset > dir->i_size) { |
block | 182 | fs/minix/namei.c | dir->i_size = block*bh->b_size + offset; |
block | 204 | fs/minix/namei.c | block++; |
block | 375 | fs/minix/namei.c | unsigned int block, offset; |
block | 383 | fs/minix/namei.c | block = 0; |
block | 399 | fs/minix/namei.c | while (block*BLOCK_SIZE+offset < inode->i_size) { |
block | 401 | fs/minix/namei.c | bh = minix_bread(inode,block,0); |
block | 403 | fs/minix/namei.c | block++; |
block | 418 | fs/minix/namei.c | block++; |
block | 9 | fs/msdos/buffer.c | int block) |
block | 13 | fs/msdos/buffer.c | ret = bread (sb->s_dev,block,512); |
block | 15 | fs/msdos/buffer.c | struct buffer_head *real = bread (sb->s_dev,block>>1,1024); |
block | 51 | fs/msdos/buffer.c | if (block & 1) ret->b_data += 512; |
block | 62 | fs/msdos/buffer.c | int block) |
block | 66 | fs/msdos/buffer.c | ret = getblk (sb->s_dev,block,512); |
block | 74 | fs/msdos/buffer.c | ret = msdos_bread (sb,block); |
block | 334 | fs/msdos/inode.c | int msdos_bmap(struct inode *inode,int block) |
block | 341 | fs/msdos/inode.c | return sb->dir_start + block; |
block | 343 | fs/msdos/inode.c | cluster = block/sb->cluster_size; |
block | 344 | 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 | 32 | fs/sysv/balloc.c | void sysv_free_block(struct super_block * sb, unsigned int block) |
block | 41 | fs/sysv/balloc.c | if (block < sb->sv_firstdatazone || block >= sb->sv_nzones) { |
block | 58 | fs/sysv/balloc.c | bh = sv_getblk(sb, sb->s_dev, block); |
block | 95 | fs/sysv/balloc.c | bh = sv_getblk(sb, sb->s_dev, block); |
block | 109 | fs/sysv/balloc.c | bh = sv_get_hash_table(sb, sb->s_dev, block); |
block | 115 | fs/sysv/balloc.c | block = to_coh_ulong(block); |
block | 116 | fs/sysv/balloc.c | sb->sv_sb_flc_blocks[(*sb->sv_sb_flc_count)++] = block; |
block | 130 | fs/sysv/balloc.c | unsigned int block; |
block | 143 | fs/sysv/balloc.c | block = sb->sv_sb_flc_blocks[(*sb->sv_sb_flc_count)-1]; |
block | 145 | fs/sysv/balloc.c | block = from_coh_ulong(block); |
block | 146 | fs/sysv/balloc.c | if (block == 0) { /* Applies only to Xenix FS, SystemV FS */ |
block | 151 | fs/sysv/balloc.c | if (block < sb->sv_firstdatazone || block >= sb->sv_nzones) { |
block | 152 | fs/sysv/balloc.c | printk("sysv_new_block: new block %d is not in data zone\n",block); |
block | 160 | fs/sysv/balloc.c | if (!(bh = sv_bread(sb, sb->s_dev, block))) { |
block | 198 | fs/sysv/balloc.c | bh = sv_getblk(sb, sb->s_dev, block); |
block | 222 | fs/sysv/balloc.c | return block; |
block | 229 | fs/sysv/balloc.c | unsigned int block; |
block | 239 | fs/sysv/balloc.c | block = sb->sv_sb_flc_blocks[--i]; |
block | 241 | fs/sysv/balloc.c | block = from_coh_ulong(block); |
block | 242 | fs/sysv/balloc.c | if (block == 0) /* block 0 terminates list */ |
block | 253 | fs/sysv/balloc.c | if (block < sb->sv_firstdatazone || block >= sb->sv_nzones) { |
block | 254 | fs/sysv/balloc.c | printk("sysv_count_free_blocks: new block %d is not in data zone\n",block); |
block | 257 | fs/sysv/balloc.c | if (!(bh = sv_bread(sb, sb->s_dev, block))) { |
block | 291 | fs/sysv/balloc.c | block = flc_blocks[--i]; |
block | 293 | fs/sysv/balloc.c | block = from_coh_ulong(block); |
block | 294 | fs/sysv/balloc.c | if (block == 0) /* block 0 terminates list */ |
block | 302 | fs/sysv/balloc.c | if (block == 0) /* Applies only to Xenix FS and SystemV FS */ |
block | 76 | fs/sysv/file.c | unsigned int block; |
block | 103 | fs/sysv/file.c | block = offset >> sb->sv_block_size_bits; |
block | 110 | fs/sysv/file.c | if (block + blocks > size) |
block | 111 | fs/sysv/file.c | blocks = size - block; |
block | 130 | fs/sysv/file.c | *bhb = sysv_getblk(inode, block++, 0); |
block | 32 | fs/sysv/fsync.c | unsigned long tmp, block; |
block | 35 | fs/sysv/fsync.c | block = tmp = *blockp; |
block | 37 | fs/sysv/fsync.c | block = from_coh_ulong(block); |
block | 38 | fs/sysv/fsync.c | if (!block) |
block | 41 | fs/sysv/fsync.c | bh = sv_get_hash_table(sb, inode->i_dev, block); |
block | 66 | fs/sysv/fsync.c | unsigned long tmp, block; |
block | 69 | fs/sysv/fsync.c | block = tmp = *iblockp; |
block | 71 | fs/sysv/fsync.c | block = from_coh_ulong(block); |
block | 72 | fs/sysv/fsync.c | if (!block) |
block | 77 | fs/sysv/fsync.c | *bh = sv_bread(inode->i_sb, inode->i_dev, block); |
block | 108 | fs/sysv/ialloc.c | int i,j,ino,block; |
block | 126 | 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 | 127 | fs/sysv/ialloc.c | if (!(bh = sv_bread(sb, sb->s_dev, block))) { |
block | 181 | fs/sysv/ialloc.c | int j,block,count; |
block | 192 | fs/sysv/ialloc.c | for (block = sb->sv_firstinodezone, j = SYSV_ROOT_INO ; block < sb->sv_firstdatazone ; block++, j = 0) { |
block | 193 | fs/sysv/ialloc.c | if (!(bh = sv_bread(sb, sb->s_dev, block))) { |
block | 574 | fs/sysv/inode.c | unsigned int block = block_nr; |
block | 580 | fs/sysv/inode.c | if (block < 10) |
block | 581 | fs/sysv/inode.c | return inode_bmap(sb,inode,block); |
block | 582 | fs/sysv/inode.c | block -= 10; |
block | 584 | fs/sysv/inode.c | if (block < sb->sv_ind_per_block) { |
block | 589 | fs/sysv/inode.c | return block_bmap(sb, bh, block, convert); |
block | 591 | fs/sysv/inode.c | block -= sb->sv_ind_per_block; |
block | 592 | fs/sysv/inode.c | if (block < sb->sv_ind_per_block_2) { |
block | 597 | fs/sysv/inode.c | i = block_bmap(sb, bh, block >> sb->sv_ind_per_block_bits, convert); |
block | 601 | fs/sysv/inode.c | return block_bmap(sb, bh, block & sb->sv_ind_per_block_1, convert); |
block | 603 | fs/sysv/inode.c | block -= sb->sv_ind_per_block_2; |
block | 604 | fs/sysv/inode.c | if (block < sb->sv_ind_per_block_3) { |
block | 609 | fs/sysv/inode.c | i = block_bmap(sb, bh, block >> sb->sv_ind_per_block_2_bits, convert); |
block | 613 | fs/sysv/inode.c | i = block_bmap(sb, bh, (block >> sb->sv_ind_per_block_bits) & sb->sv_ind_per_block_1,convert); |
block | 617 | fs/sysv/inode.c | return block_bmap(sb, bh, block & sb->sv_ind_per_block_1, convert); |
block | 619 | fs/sysv/inode.c | if ((int)block<0) { |
block | 671 | fs/sysv/inode.c | unsigned long tmp, block; |
block | 688 | fs/sysv/inode.c | block = tmp = *p; |
block | 690 | fs/sysv/inode.c | block = from_coh_ulong(block); |
block | 692 | fs/sysv/inode.c | result = sv_getblk(sb, bh->b_dev, block); |
block | 704 | fs/sysv/inode.c | block = sysv_new_block(sb); |
block | 705 | fs/sysv/inode.c | if (!block) { |
block | 709 | fs/sysv/inode.c | result = sv_getblk(sb, bh->b_dev, block); |
block | 711 | fs/sysv/inode.c | sysv_free_block(sb,block); |
block | 715 | fs/sysv/inode.c | *p = (sb->sv_convert ? to_coh_ulong(block) : block); |
block | 721 | fs/sysv/inode.c | struct buffer_head * sysv_getblk(struct inode * inode, unsigned int block, int create) |
block | 726 | fs/sysv/inode.c | if (block < 10) |
block | 727 | fs/sysv/inode.c | return inode_getblk(inode,block,create); |
block | 728 | fs/sysv/inode.c | block -= 10; |
block | 729 | fs/sysv/inode.c | if (block < sb->sv_ind_per_block) { |
block | 731 | fs/sysv/inode.c | return block_getblk(inode, bh, block, create); |
block | 733 | fs/sysv/inode.c | block -= sb->sv_ind_per_block; |
block | 734 | fs/sysv/inode.c | if (block < sb->sv_ind_per_block_2) { |
block | 736 | fs/sysv/inode.c | bh = block_getblk(inode, bh, block >> sb->sv_ind_per_block_bits, create); |
block | 737 | fs/sysv/inode.c | return block_getblk(inode, bh, block & sb->sv_ind_per_block_1, create); |
block | 739 | fs/sysv/inode.c | block -= sb->sv_ind_per_block_2; |
block | 740 | fs/sysv/inode.c | if (block < sb->sv_ind_per_block_3) { |
block | 742 | fs/sysv/inode.c | bh = block_getblk(inode, bh, block >> sb->sv_ind_per_block_2_bits, create); |
block | 743 | fs/sysv/inode.c | bh = block_getblk(inode, bh, (block >> sb->sv_ind_per_block_bits) & sb->sv_ind_per_block_1, create); |
block | 744 | fs/sysv/inode.c | return block_getblk(inode, bh, block & sb->sv_ind_per_block_1, create); |
block | 746 | fs/sysv/inode.c | if ((int)block<0) { |
block | 754 | fs/sysv/inode.c | struct buffer_head * sysv_file_bread(struct inode * inode, int block, int create) |
block | 758 | fs/sysv/inode.c | bh = sysv_getblk(inode,block,create); |
block | 799 | fs/sysv/inode.c | unsigned int block, ino; |
block | 810 | fs/sysv/inode.c | block = sb->sv_firstinodezone + ((ino-1) >> sb->sv_inodes_per_block_bits); |
block | 811 | fs/sysv/inode.c | if (!(bh = sv_bread(sb,inode->i_dev,block))) { |
block | 841 | fs/sysv/inode.c | for (block = 0; block < 10+1+1+1; block++) |
block | 842 | fs/sysv/inode.c | inode->u.sysv_i.i_data[block] = |
block | 843 | fs/sysv/inode.c | coh_read3byte(&raw_inode->i_a.i_addb[3*block]); |
block | 845 | fs/sysv/inode.c | for (block = 0; block < 10+1+1+1; block++) |
block | 846 | fs/sysv/inode.c | inode->u.sysv_i.i_data[block] = |
block | 847 | fs/sysv/inode.c | read3byte(&raw_inode->i_a.i_addb[3*block]); |
block | 886 | fs/sysv/inode.c | unsigned int ino, block; |
block | 896 | fs/sysv/inode.c | block = sb->sv_firstinodezone + ((ino-1) >> sb->sv_inodes_per_block_bits); |
block | 897 | fs/sysv/inode.c | if (!(bh = sv_bread(sb,inode->i_dev,block))) { |
block | 925 | fs/sysv/inode.c | for (block = 0; block < 10+1+1+1; block++) |
block | 926 | fs/sysv/inode.c | coh_write3byte(&raw_inode->i_a.i_addb[3*block],inode->u.sysv_i.i_data[block]); |
block | 928 | fs/sysv/inode.c | for (block = 0; block < 10+1+1+1; block++) |
block | 929 | fs/sysv/inode.c | write3byte(&raw_inode->i_a.i_addb[3*block],inode->u.sysv_i.i_data[block]); |
block | 64 | fs/sysv/namei.c | unsigned long pos, block, offset; /* pos = block * block_size + offset */ |
block | 77 | fs/sysv/namei.c | pos = block = offset = 0; |
block | 80 | fs/sysv/namei.c | bh = sysv_file_bread(dir,block,0); |
block | 82 | fs/sysv/namei.c | /* offset = 0; */ block++; |
block | 96 | fs/sysv/namei.c | offset = 0; block++; |
block | 148 | fs/sysv/namei.c | unsigned long pos, block, offset; /* pos = block * block_size + offset */ |
block | 165 | fs/sysv/namei.c | pos = block = offset = 0; |
block | 168 | fs/sysv/namei.c | bh = sysv_file_bread(dir,block,1); |
block | 197 | fs/sysv/namei.c | offset = 0; block++; |
block | 367 | fs/sysv/namei.c | unsigned long pos, block, offset; /* pos = block * block_size + offset */ |
block | 373 | fs/sysv/namei.c | block = 0; |
block | 392 | fs/sysv/namei.c | bh = sysv_file_bread(inode,block,0); |
block | 394 | fs/sysv/namei.c | /* offset = 0; */ block++; |
block | 410 | fs/sysv/namei.c | offset = 0; block++; |
block | 45 | fs/sysv/truncate.c | unsigned long block; |
block | 53 | fs/sysv/truncate.c | block = *p; |
block | 54 | fs/sysv/truncate.c | if (!block) |
block | 56 | fs/sysv/truncate.c | bh = sv_get_hash_table(sb, inode->i_dev, block); |
block | 61 | fs/sysv/truncate.c | if ((bh && bh->b_count != 1) || (block != *p)) { |
block | 69 | fs/sysv/truncate.c | sysv_free_block(sb,block); |
block | 81 | fs/sysv/truncate.c | unsigned long tmp, block; |
block | 108 | fs/sysv/truncate.c | block = tmp = *ind; |
block | 110 | fs/sysv/truncate.c | block = from_coh_ulong(block); |
block | 111 | fs/sysv/truncate.c | if (!block) |
block | 113 | fs/sysv/truncate.c | bh = sv_get_hash_table(sb, inode->i_dev, block); |
block | 126 | fs/sysv/truncate.c | sysv_free_block(sb,block); |
block | 150 | fs/sysv/truncate.c | unsigned long tmp, block; |
block | 175 | fs/sysv/truncate.c | block = tmp = *ind; |
block | 177 | fs/sysv/truncate.c | block = from_coh_ulong(block); |
block | 178 | fs/sysv/truncate.c | if (!block) |
block | 204 | fs/sysv/truncate.c | unsigned long tmp, block; |
block | 229 | fs/sysv/truncate.c | block = tmp = *ind; |
block | 231 | fs/sysv/truncate.c | block = from_coh_ulong(block); |
block | 232 | fs/sysv/truncate.c | if (!block) |
block | 29 | fs/xiafs/fsync.c | static int sync_block (struct inode * inode, unsigned long * block, int wait) |
block | 34 | fs/xiafs/fsync.c | if (!*block) |
block | 36 | fs/xiafs/fsync.c | tmp = *block; |
block | 37 | fs/xiafs/fsync.c | bh = get_hash_table(inode->i_dev, *block, blocksize); |
block | 40 | 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 | 466 | include/linux/fs.h | extern int bmap(struct inode * inode,int block); |
block | 483 | include/linux/fs.h | extern struct buffer_head * get_hash_table(dev_t dev, int block, int size); |
block | 484 | include/linux/fs.h | extern struct buffer_head * getblk(dev_t dev, int block, int size); |
block | 491 | include/linux/fs.h | extern struct buffer_head * bread(dev_t dev, int block, int size); |
block | 493 | 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 | 97 | 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 | 85 | include/linux/xia_fs.h | extern void xiafs_free_zone(struct super_block * sb, int block); |
block | 34 | mm/filemap.c | unsigned int block; |
block | 39 | mm/filemap.c | block = address - area->vm_start + area->vm_offset; |
block | 40 | mm/filemap.c | block >>= inode->i_sb->s_blocksize_bits; |
block | 44 | mm/filemap.c | *p = bmap(inode,block); |
block | 46 | mm/filemap.c | block++; |
block | 158 | mm/swap.c | unsigned int block = offset << 3; |
block | 161 | mm/swap.c | if (!(zones[i] = swapf->i_op->smap(swapf,block++))) { |
block | 168 | mm/swap.c | unsigned int block = offset |
block | 172 | mm/swap.c | if (!(zones[i] = bmap(swapf,block++))) { |