tag | line | file | source code |
block | 18 | fs/block_dev.c | int block = filp->f_pos >> BLOCK_SIZE_BITS; |
block | 33 | fs/block_dev.c | if (block >= size) |
block | 39 | fs/block_dev.c | bh = getblk(dev, block, BLOCK_SIZE); |
block | 41 | fs/block_dev.c | bh = breada(dev,block,block+1,block+2,-1); |
block | 42 | fs/block_dev.c | block++; |
block | 64 | fs/block_dev.c | unsigned int block; |
block | 92 | fs/block_dev.c | block = offset >> BLOCK_SIZE_BITS; |
block | 99 | fs/block_dev.c | if (block + blocks > size) |
block | 100 | fs/block_dev.c | blocks = size - block; |
block | 118 | fs/block_dev.c | *bhb = getblk(dev, block++, BLOCK_SIZE); |
block | 181 | fs/buffer.c | #define _hashfn(dev,block) (((unsigned)(dev^block))%NR_HASH) |
block | 182 | fs/buffer.c | #define hash(dev,block) hash_table[_hashfn(dev,block)] |
block | 259 | fs/buffer.c | static struct buffer_head * find_buffer(dev_t dev, int block, int size) |
block | 263 | fs/buffer.c | for (tmp = hash(dev,block) ; tmp != NULL ; tmp = tmp->b_next) |
block | 264 | fs/buffer.c | if (tmp->b_dev==dev && tmp->b_blocknr==block) |
block | 282 | fs/buffer.c | struct buffer_head * get_hash_table(dev_t dev, int block, int size) |
block | 287 | fs/buffer.c | if (!(bh=find_buffer(dev,block,size))) |
block | 291 | fs/buffer.c | if (bh->b_dev == dev && bh->b_blocknr == block && bh->b_size == size) |
block | 308 | fs/buffer.c | struct buffer_head * getblk(dev_t dev, int block, int size) |
block | 315 | fs/buffer.c | bh = get_hash_table(dev, block, size); |
block | 366 | fs/buffer.c | if (find_buffer(dev,block,size)) |
block | 375 | fs/buffer.c | bh->b_blocknr=block; |
block | 398 | fs/buffer.c | struct buffer_head * bread(dev_t dev, int block, int size) |
block | 402 | fs/buffer.c | if (!(bh = getblk(dev, block, size))) { |
block | 75 | fs/ext/file.c | int block, blocks, offset; |
block | 101 | fs/ext/file.c | block = offset >> BLOCK_SIZE_BITS; |
block | 108 | fs/ext/file.c | if (block + blocks > size) |
block | 109 | fs/ext/file.c | blocks = size - block; |
block | 127 | fs/ext/file.c | *bhb = ext_getblk(inode, block++, 0); |
block | 46 | fs/ext/freelists.c | void ext_free_block(struct super_block * sb, int block) |
block | 56 | fs/ext/freelists.c | if (block < sb->u.ext_sb.s_firstdatazone || |
block | 57 | fs/ext/freelists.c | block >= sb->u.ext_sb.s_nzones) { |
block | 61 | fs/ext/freelists.c | bh = get_hash_table(sb->s_dev, block, sb->s_blocksize); |
block | 69 | fs/ext/freelists.c | printk("ext_free_block: block full, skipping to %d\n", block); |
block | 74 | fs/ext/freelists.c | block, sb->s_blocksize))) |
block | 79 | fs/ext/freelists.c | sb->u.ext_sb.s_firstfreeblocknumber = block; |
block | 81 | fs/ext/freelists.c | efb->free[efb->count++] = block; |
block | 151 | fs/ext/freelists.c | unsigned long count, block; |
block | 159 | fs/ext/freelists.c | block = efb->next; |
block | 160 | fs/ext/freelists.c | while (block) { |
block | 161 | fs/ext/freelists.c | if (!(bh = bread (sb->s_dev, block, sb->s_blocksize))) { |
block | 163 | fs/ext/freelists.c | block = 0; |
block | 167 | fs/ext/freelists.c | block = efb->next; |
block | 185 | fs/ext/freelists.c | unsigned long block; |
block | 220 | fs/ext/freelists.c | block = 2 + (inode->i_ino - 1) / EXT_INODES_PER_BLOCK; |
block | 221 | fs/ext/freelists.c | if (!(bh = bread(inode->i_dev, block, inode->i_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 | 304 | fs/ext/freelists.c | unsigned long count, block, ino; |
block | 320 | fs/ext/freelists.c | block = 2 + ((ino - 1) / EXT_INODES_PER_BLOCK); |
block | 321 | fs/ext/freelists.c | if (!(bh = bread (sb->s_dev, block, sb->s_blocksize))) { |
block | 323 | fs/ext/freelists.c | block = 0; |
block | 60 | fs/ext/inode.c | int dev = s->s_dev,block; |
block | 101 | fs/ext/inode.c | block = 2 + (s->u.ext_sb.s_firstfreeinodenumber - 1) / EXT_INODES_PER_BLOCK; |
block | 102 | fs/ext/inode.c | if (!(s->u.ext_sb.s_firstfreeinodeblock = bread(dev, block, BLOCK_SIZE))) { |
block | 170 | fs/ext/inode.c | int ext_bmap(struct inode * inode,int block) |
block | 174 | fs/ext/inode.c | if (block<0) { |
block | 178 | fs/ext/inode.c | if (block >= 9+256+256*256+256*256*256) { |
block | 182 | fs/ext/inode.c | if (block<9) |
block | 183 | fs/ext/inode.c | return inode_bmap(inode,block); |
block | 184 | fs/ext/inode.c | block -= 9; |
block | 185 | fs/ext/inode.c | if (block<256) { |
block | 189 | fs/ext/inode.c | return block_bmap(bread(inode->i_dev,i,BLOCK_SIZE),block); |
block | 191 | fs/ext/inode.c | block -= 256; |
block | 192 | fs/ext/inode.c | if (block<256*256) { |
block | 196 | fs/ext/inode.c | i = block_bmap(bread(inode->i_dev,i,BLOCK_SIZE),block>>8); |
block | 199 | fs/ext/inode.c | return block_bmap(bread(inode->i_dev,i,BLOCK_SIZE),block & 255); |
block | 201 | fs/ext/inode.c | block -= 256*256; |
block | 205 | fs/ext/inode.c | i = block_bmap(bread(inode->i_dev,i,BLOCK_SIZE),block>>16); |
block | 208 | fs/ext/inode.c | i = block_bmap(bread(inode->i_dev,i,BLOCK_SIZE),(block>>8) & 255); |
block | 211 | fs/ext/inode.c | return block_bmap(bread(inode->i_dev,i,BLOCK_SIZE),block & 255); |
block | 297 | fs/ext/inode.c | struct buffer_head * ext_getblk(struct inode * inode, int block, int create) |
block | 301 | fs/ext/inode.c | if (block<0) { |
block | 305 | fs/ext/inode.c | if (block >= 9+256+256*256+256*256*256) { |
block | 309 | fs/ext/inode.c | if (block<9) |
block | 310 | fs/ext/inode.c | return inode_getblk(inode,block,create); |
block | 311 | fs/ext/inode.c | block -= 9; |
block | 312 | fs/ext/inode.c | if (block<256) { |
block | 314 | fs/ext/inode.c | return block_getblk(inode,bh,block,create); |
block | 316 | fs/ext/inode.c | block -= 256; |
block | 317 | fs/ext/inode.c | if (block<256*256) { |
block | 319 | fs/ext/inode.c | bh = block_getblk(inode,bh,block>>8,create); |
block | 320 | fs/ext/inode.c | return block_getblk(inode,bh,block & 255,create); |
block | 322 | fs/ext/inode.c | block -= 256*256; |
block | 324 | fs/ext/inode.c | bh = block_getblk(inode,bh,block>>16,create); |
block | 325 | fs/ext/inode.c | bh = block_getblk(inode,bh,(block>>8) & 255,create); |
block | 326 | fs/ext/inode.c | return block_getblk(inode,bh,block & 255,create); |
block | 329 | fs/ext/inode.c | struct buffer_head * ext_bread(struct inode * inode, int block, int create) |
block | 333 | fs/ext/inode.c | bh = ext_getblk(inode,block,create); |
block | 348 | fs/ext/inode.c | int block; |
block | 350 | fs/ext/inode.c | block = 2 + (inode->i_ino-1)/EXT_INODES_PER_BLOCK; |
block | 351 | fs/ext/inode.c | if (!(bh=bread(inode->i_dev, block, BLOCK_SIZE))) |
block | 364 | fs/ext/inode.c | else for (block = 0; block < 12; block++) |
block | 365 | fs/ext/inode.c | inode->u.ext_i.i_data[block] = raw_inode->i_zone[block]; |
block | 392 | fs/ext/inode.c | int block; |
block | 394 | fs/ext/inode.c | block = 2 + (inode->i_ino-1)/EXT_INODES_PER_BLOCK; |
block | 395 | fs/ext/inode.c | if (!(bh=bread(inode->i_dev, block, BLOCK_SIZE))) |
block | 407 | fs/ext/inode.c | else for (block = 0; block < 12; block++) |
block | 408 | fs/ext/inode.c | raw_inode->i_zone[block] = inode->u.ext_i.i_data[block]; |
block | 174 | fs/ext2/balloc.c | void ext2_free_block (struct super_block * sb, unsigned long block) |
block | 191 | fs/ext2/balloc.c | if (block < sb->u.ext2_sb.s_first_data_block || |
block | 192 | fs/ext2/balloc.c | block >= sb->u.ext2_sb.s_blocks_count) { |
block | 199 | fs/ext2/balloc.c | printk ("ext2_free_block: freeing block %d\n", block); |
block | 201 | fs/ext2/balloc.c | bh = get_hash_table (sb->s_dev, block, sb->s_blocksize); |
block | 205 | fs/ext2/balloc.c | block_group = (block - sb->u.ext2_sb.s_first_data_block) / |
block | 207 | fs/ext2/balloc.c | bit = (block - sb->u.ext2_sb.s_first_data_block) % |
block | 217 | fs/ext2/balloc.c | sb->s_dev, block); |
block | 76 | fs/ext2/file.c | int block, blocks, offset; |
block | 104 | fs/ext2/file.c | block = offset >> EXT2_BLOCK_SIZE_BITS(sb); |
block | 111 | fs/ext2/file.c | if (block + blocks > size) |
block | 112 | fs/ext2/file.c | blocks = size - block; |
block | 130 | fs/ext2/file.c | *bhb = ext2_getblk (inode, block++, 0); |
block | 269 | fs/ext2/inode.c | unsigned long block; |
block | 285 | fs/ext2/inode.c | block = sb->u.ext2_sb.s_first_data_block + |
block | 287 | fs/ext2/inode.c | if (!(bh = bread (sb->s_dev, block, BLOCK_SIZE))) |
block | 291 | fs/ext2/inode.c | printk ("ext2_write_super: writing super block backup in group %d at block %d\n", i, block); |
block | 298 | fs/ext2/inode.c | block ++; |
block | 300 | fs/ext2/inode.c | printk ("ext2_write_super: writing descriptors (block %d) backup in group %d at block %d\n", j, i, block); |
block | 302 | fs/ext2/inode.c | if (!(bh = bread (sb->s_dev, block, sb->s_blocksize))) |
block | 345 | fs/ext2/inode.c | int ext2_bmap (struct inode * inode, int block) |
block | 350 | fs/ext2/inode.c | if (block < 0) { |
block | 354 | fs/ext2/inode.c | if (block >= EXT2_NDIR_BLOCKS + addr_per_block + |
block | 360 | fs/ext2/inode.c | if (block < EXT2_NDIR_BLOCKS) |
block | 361 | fs/ext2/inode.c | return inode_bmap (inode, block); |
block | 362 | fs/ext2/inode.c | block -= EXT2_NDIR_BLOCKS; |
block | 363 | fs/ext2/inode.c | if (block < addr_per_block) { |
block | 368 | fs/ext2/inode.c | inode->i_sb->s_blocksize), block); |
block | 370 | fs/ext2/inode.c | block -= addr_per_block; |
block | 371 | fs/ext2/inode.c | if (block < addr_per_block * addr_per_block) { |
block | 377 | fs/ext2/inode.c | block / addr_per_block); |
block | 382 | fs/ext2/inode.c | block & (addr_per_block - 1)); |
block | 384 | fs/ext2/inode.c | block -= addr_per_block * addr_per_block; |
block | 389 | fs/ext2/inode.c | block / (addr_per_block * addr_per_block)); |
block | 393 | fs/ext2/inode.c | (block / addr_per_block) & (addr_per_block - 1)); |
block | 397 | fs/ext2/inode.c | block & (addr_per_block - 1)); |
block | 493 | fs/ext2/inode.c | struct buffer_head * ext2_getblk (struct inode * inode, int block, |
block | 499 | fs/ext2/inode.c | if (block < 0) { |
block | 503 | fs/ext2/inode.c | if (block > EXT2_NDIR_BLOCKS + addr_per_block + |
block | 509 | fs/ext2/inode.c | if (block < EXT2_NDIR_BLOCKS) |
block | 510 | fs/ext2/inode.c | return inode_getblk (inode, block, create); |
block | 511 | fs/ext2/inode.c | block -= EXT2_NDIR_BLOCKS; |
block | 512 | fs/ext2/inode.c | if (block < addr_per_block) { |
block | 514 | fs/ext2/inode.c | return block_getblk (inode, bh, block, create, |
block | 517 | fs/ext2/inode.c | block -= addr_per_block; |
block | 518 | fs/ext2/inode.c | if (block < addr_per_block * addr_per_block) { |
block | 520 | fs/ext2/inode.c | bh = block_getblk (inode, bh, block / addr_per_block, create, |
block | 522 | fs/ext2/inode.c | return block_getblk (inode, bh, block & (addr_per_block - 1), |
block | 525 | fs/ext2/inode.c | block -= addr_per_block * addr_per_block; |
block | 527 | fs/ext2/inode.c | bh = block_getblk (inode, bh, block / (addr_per_block * addr_per_block), |
block | 529 | fs/ext2/inode.c | bh = block_getblk (inode, bh, (block / addr_per_block) & (addr_per_block - 1), |
block | 531 | fs/ext2/inode.c | return block_getblk (inode, bh, block & (addr_per_block - 1), create, |
block | 535 | fs/ext2/inode.c | struct buffer_head * ext2_bread (struct inode * inode, int block, int create) |
block | 539 | fs/ext2/inode.c | bh = ext2_getblk (inode, block, create); |
block | 557 | fs/ext2/inode.c | unsigned long block; |
block | 575 | fs/ext2/inode.c | block = gdp[desc].bg_inode_table + |
block | 578 | fs/ext2/inode.c | if (!(bh = bread (inode->i_dev, block, inode->i_sb->s_blocksize))) |
block | 603 | fs/ext2/inode.c | else for (block = 0; block < EXT2_N_BLOCKS; block++) |
block | 604 | fs/ext2/inode.c | inode->u.ext2_i.i_data[block] = raw_inode->i_block[block]; |
block | 634 | fs/ext2/inode.c | unsigned long block; |
block | 652 | fs/ext2/inode.c | block = gdp[desc].bg_inode_table + |
block | 655 | fs/ext2/inode.c | if (!(bh = bread (inode->i_dev, block, inode->i_sb->s_blocksize))) |
block | 678 | fs/ext2/inode.c | else for (block = 0; block < EXT2_N_BLOCKS; block++) |
block | 679 | fs/ext2/inode.c | raw_inode->i_block[block] = inode->u.ext2_i.i_data[block]; |
block | 150 | fs/inode.c | int bmap(struct inode * inode, int block) |
block | 153 | 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 | 66 | fs/isofs/dir.c | unsigned int block,offset,i, j; |
block | 80 | fs/isofs/dir.c | block = isofs_bmap(inode,(filp->f_pos)>>BLOCK_SIZE_BITS); |
block | 81 | fs/isofs/dir.c | if (!block || !(bh = bread(inode->i_dev,block,ISOFS_BUFFER_SIZE))) |
block | 86 | fs/isofs/dir.c | printk("Block, offset: %x %x %x\n",block, offset, filp->f_pos); |
block | 89 | fs/isofs/dir.c | inode_number = (block << BLOCK_SIZE_BITS)+(offset & (BLOCK_SIZE - 1)); |
block | 98 | fs/isofs/dir.c | block = isofs_bmap(inode,(filp->f_pos)>>BLOCK_SIZE_BITS); |
block | 99 | fs/isofs/dir.c | if (!block || !(bh = bread(inode->i_dev,block,ISOFS_BUFFER_SIZE))) |
block | 117 | fs/isofs/dir.c | block = isofs_bmap(inode,(filp->f_pos)>>BLOCK_SIZE_BITS); |
block | 118 | fs/isofs/dir.c | if (!block || !(bh = bread(inode->i_dev,block,ISOFS_BUFFER_SIZE))) |
block | 90 | fs/isofs/file.c | int block; |
block | 95 | fs/isofs/file.c | block = isofs_bmap(inode,0); |
block | 96 | fs/isofs/file.c | if (block && (bh = bread(inode->i_dev,block, ISOFS_BUFFER_SIZE))) { |
block | 116 | fs/isofs/file.c | int block, blocks, offset; |
block | 142 | fs/isofs/file.c | block = filp->f_pos >> ISOFS_BUFFER_BITS; |
block | 166 | fs/isofs/file.c | *bhb = getblk(inode->i_dev,isofs_bmap(inode, block++), ISOFS_BUFFER_SIZE); |
block | 189 | fs/isofs/file.c | if (block >= max_block) break; |
block | 192 | fs/isofs/file.c | *bhb = getblk(inode->i_dev,isofs_bmap(inode, block++), ISOFS_BUFFER_SIZE); |
block | 253 | fs/isofs/inode.c | int isofs_bmap(struct inode * inode,int block) |
block | 256 | fs/isofs/inode.c | if (block<0) { |
block | 260 | fs/isofs/inode.c | return inode->u.isofs_i.i_first_extent + block; |
block | 269 | fs/isofs/inode.c | int block; |
block | 272 | fs/isofs/inode.c | block = inode->i_ino >> ISOFS_BUFFER_BITS; |
block | 273 | fs/isofs/inode.c | if (!(bh=bread(inode->i_dev,block, ISOFS_BUFFER_SIZE))) |
block | 285 | fs/isofs/inode.c | if (!(bh = bread(inode->i_dev,++block, ISOFS_BUFFER_SIZE))) |
block | 364 | fs/isofs/inode.c | printk("Get inode %d: %d %d: %d\n",inode->i_ino, block, |
block | 448 | fs/isofs/inode.c | unsigned int block,offset; |
block | 457 | fs/isofs/inode.c | block = extent << (ISOFS_BLOCK_BITS - ISOFS_BUFFER_BITS); |
block | 458 | fs/isofs/inode.c | if (!(bh = bread(parent->i_dev, block, ISOFS_BUFFER_SIZE))) return 0; |
block | 495 | fs/isofs/inode.c | block = parent_dir << (ISOFS_BLOCK_BITS - ISOFS_BUFFER_BITS); |
block | 496 | fs/isofs/inode.c | if (!block || !(bh = bread(parent->i_dev,block, ISOFS_BUFFER_SIZE))) |
block | 501 | fs/isofs/inode.c | inode_number = (block << ISOFS_BUFFER_BITS)+(offset & (ISOFS_BUFFER_SIZE - 1)); |
block | 510 | fs/isofs/inode.c | block++; |
block | 511 | fs/isofs/inode.c | if(block & 1) return -1; |
block | 512 | fs/isofs/inode.c | if (!block || !(bh = bread(parent->i_dev,block, ISOFS_BUFFER_SIZE))) |
block | 530 | fs/isofs/inode.c | block++; |
block | 531 | fs/isofs/inode.c | if((block & 1) == 0) return -1; |
block | 532 | fs/isofs/inode.c | if (!(bh = bread(parent->i_dev,block, ISOFS_BUFFER_SIZE))) |
block | 580 | fs/isofs/inode.c | struct buffer_head * leak_check_bread(int dev, int block, int size){ |
block | 582 | fs/isofs/inode.c | return bread(dev, block, size); |
block | 67 | 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 >> ISOFS_BUFFER_BITS); |
block | 86 | fs/isofs/namei.c | if (!block || !(bh = bread(dir->i_dev,block,ISOFS_BUFFER_SIZE))) return NULL; |
block | 91 | fs/isofs/namei.c | inode_number = (block << ISOFS_BUFFER_BITS)+(offset & (ISOFS_BUFFER_SIZE - 1)); |
block | 100 | fs/isofs/namei.c | block = isofs_bmap(dir,(f_pos)>>ISOFS_BUFFER_BITS); |
block | 101 | fs/isofs/namei.c | if (!block || !(bh = bread(dir->i_dev,block,ISOFS_BUFFER_SIZE))) |
block | 119 | fs/isofs/namei.c | block = isofs_bmap(dir,f_pos>>ISOFS_BUFFER_BITS); |
block | 120 | fs/isofs/namei.c | if (!block || !(bh = bread(dir->i_dev,block,ISOFS_BUFFER_SIZE))) |
block | 55 | fs/isofs/rock.c | int block, offset; \ |
block | 58 | fs/isofs/rock.c | block = cont_extent << 1; \ |
block | 60 | fs/isofs/rock.c | if (offset >= 1024) block++; \ |
block | 62 | fs/isofs/rock.c | bh = bread(DEV, block, 1024); \ |
block | 369 | fs/isofs/rock.c | int block; |
block | 380 | fs/isofs/rock.c | block = inode->i_ino >> ISOFS_BUFFER_BITS; |
block | 381 | fs/isofs/rock.c | if (!(bh=bread(inode->i_dev,block, ISOFS_BUFFER_SIZE))) |
block | 392 | fs/isofs/rock.c | if (!(bh = bread(inode->i_dev,++block, ISOFS_BUFFER_SIZE))) |
block | 67 | fs/minix/bitmap.c | void minix_free_block(struct super_block * sb, int block) |
block | 76 | fs/minix/bitmap.c | if (block < sb->u.minix_sb.s_firstdatazone || |
block | 77 | fs/minix/bitmap.c | block >= sb->u.minix_sb.s_nzones) { |
block | 81 | fs/minix/bitmap.c | bh = get_hash_table(sb->s_dev,block,BLOCK_SIZE); |
block | 85 | fs/minix/bitmap.c | zone = block - sb->u.minix_sb.s_firstdatazone + 1; |
block | 94 | 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 | 102 | fs/minix/file.c | if (block + blocks > size) |
block | 103 | fs/minix/file.c | blocks = size - block; |
block | 121 | fs/minix/file.c | *bhb = minix_getblk(inode, block++, 0); |
block | 55 | fs/minix/inode.c | int i,dev=s->s_dev,block; |
block | 93 | fs/minix/inode.c | block=2; |
block | 95 | fs/minix/inode.c | if ((s->u.minix_sb.s_imap[i]=bread(dev,block,BLOCK_SIZE)) != NULL) |
block | 96 | fs/minix/inode.c | block++; |
block | 100 | fs/minix/inode.c | if ((s->u.minix_sb.s_zmap[i]=bread(dev,block,BLOCK_SIZE)) != NULL) |
block | 101 | fs/minix/inode.c | block++; |
block | 104 | fs/minix/inode.c | if (block != 2+s->u.minix_sb.s_imap_blocks+s->u.minix_sb.s_zmap_blocks) { |
block | 157 | fs/minix/inode.c | int minix_bmap(struct inode * inode,int block) |
block | 161 | fs/minix/inode.c | if (block<0) { |
block | 165 | fs/minix/inode.c | if (block >= 7+512+512*512) { |
block | 169 | fs/minix/inode.c | if (block < 7) |
block | 170 | fs/minix/inode.c | return inode_bmap(inode,block); |
block | 171 | fs/minix/inode.c | block -= 7; |
block | 172 | fs/minix/inode.c | if (block < 512) { |
block | 176 | fs/minix/inode.c | return block_bmap(bread(inode->i_dev,i,BLOCK_SIZE),block); |
block | 178 | fs/minix/inode.c | block -= 512; |
block | 182 | fs/minix/inode.c | i = block_bmap(bread(inode->i_dev,i,BLOCK_SIZE),block>>9); |
block | 185 | fs/minix/inode.c | return block_bmap(bread(inode->i_dev,i,BLOCK_SIZE),block & 511); |
block | 271 | fs/minix/inode.c | struct buffer_head * minix_getblk(struct inode * inode, int block, int create) |
block | 275 | fs/minix/inode.c | if (block<0) { |
block | 279 | fs/minix/inode.c | if (block >= 7+512+512*512) { |
block | 283 | fs/minix/inode.c | if (block < 7) |
block | 284 | fs/minix/inode.c | return inode_getblk(inode,block,create); |
block | 285 | fs/minix/inode.c | block -= 7; |
block | 286 | fs/minix/inode.c | if (block < 512) { |
block | 288 | fs/minix/inode.c | return block_getblk(inode, bh, block, create); |
block | 290 | fs/minix/inode.c | block -= 512; |
block | 292 | fs/minix/inode.c | bh = block_getblk(inode, bh, block>>9, create); |
block | 293 | fs/minix/inode.c | return block_getblk(inode, bh, block & 511, create); |
block | 296 | fs/minix/inode.c | struct buffer_head * minix_bread(struct inode * inode, int block, int create) |
block | 300 | fs/minix/inode.c | bh = minix_getblk(inode,block,create); |
block | 315 | fs/minix/inode.c | int block, ino; |
block | 325 | fs/minix/inode.c | block = 2 + inode->i_sb->u.minix_sb.s_imap_blocks + |
block | 328 | fs/minix/inode.c | if (!(bh=bread(inode->i_dev,block, BLOCK_SIZE))) { |
block | 344 | fs/minix/inode.c | else for (block = 0; block < 9; block++) |
block | 345 | fs/minix/inode.c | inode->u.minix_i.i_data[block] = raw_inode->i_zone[block]; |
block | 371 | fs/minix/inode.c | int ino, block; |
block | 380 | 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 | 382 | fs/minix/inode.c | if (!(bh=bread(inode->i_dev, block, BLOCK_SIZE))) { |
block | 397 | fs/minix/inode.c | else for (block = 0; block < 9; block++) |
block | 398 | fs/minix/inode.c | raw_inode->i_zone[block] = inode->u.minix_i.i_data[block]; |
block | 66 | fs/minix/namei.c | unsigned long block, offset; |
block | 82 | fs/minix/namei.c | block = offset = 0; |
block | 83 | fs/minix/namei.c | while (block*BLOCK_SIZE+offset < dir->i_size) { |
block | 85 | fs/minix/namei.c | bh = minix_bread(dir,block,0); |
block | 87 | fs/minix/namei.c | block++; |
block | 99 | fs/minix/namei.c | block++; |
block | 148 | fs/minix/namei.c | unsigned long block, offset; |
block | 167 | fs/minix/namei.c | block = offset = 0; |
block | 170 | fs/minix/namei.c | bh = minix_bread(dir,block,1); |
block | 176 | fs/minix/namei.c | if (block*bh->b_size + offset > dir->i_size) { |
block | 178 | fs/minix/namei.c | dir->i_size = block*bh->b_size + offset; |
block | 195 | fs/minix/namei.c | block++; |
block | 370 | fs/minix/namei.c | unsigned int block, offset; |
block | 378 | fs/minix/namei.c | block = 0; |
block | 393 | fs/minix/namei.c | while (block*BLOCK_SIZE+offset < inode->i_size) { |
block | 395 | fs/minix/namei.c | bh = minix_bread(inode,block,0); |
block | 397 | fs/minix/namei.c | block++; |
block | 412 | fs/minix/namei.c | block++; |
block | 216 | fs/msdos/inode.c | int msdos_bmap(struct inode *inode,int block) |
block | 225 | fs/msdos/inode.c | return (sb->dir_start >> 1)+block; |
block | 227 | fs/msdos/inode.c | cluster = (block*2)/sb->cluster_size; |
block | 228 | fs/msdos/inode.c | offset = (block*2) % sb->cluster_size; |
block | 81 | include/linux/ext_fs.h | extern void ext_free_block(struct super_block * sb, int block); |
block | 348 | include/linux/fs.h | extern int bmap(struct inode * inode,int block); |
block | 362 | include/linux/fs.h | extern struct buffer_head * get_hash_table(dev_t dev, int block, int size); |
block | 363 | include/linux/fs.h | extern struct buffer_head * getblk(dev_t dev, int block, int size); |
block | 368 | include/linux/fs.h | extern struct buffer_head * bread(dev_t dev, int block, int size); |
block | 370 | include/linux/fs.h | extern struct buffer_head * breada(dev_t dev,int block,...); |
block | 162 | include/linux/iso_fs.h | extern int isofs_free_block(int dev, int block); |
block | 204 | include/linux/iso_fs.h | extern struct buffer_head * leak_check_bread(int dev, int block, int size); |
block | 92 | include/linux/minix_fs.h | extern void minix_free_block(struct super_block * sb, int block); |
block | 149 | include/linux/msdos_fs.h | extern int msdos_bmap(struct inode *inode,int block); |
block | 85 | include/linux/xia_fs.h | extern void xiafs_free_zone(struct super_block * sb, int block); |
block | 64 | kernel/blk_drv/blk.h | #define SUBSECTOR(block) ((block) & SECTOR_MASK) |
block | 924 | kernel/blk_drv/floppy.c | unsigned int block; |
block | 970 | kernel/blk_drv/floppy.c | block = CURRENT->sector; |
block | 971 | kernel/blk_drv/floppy.c | if (block+2 > floppy->size) { |
block | 975 | kernel/blk_drv/floppy.c | sector = block % floppy->sect; |
block | 976 | kernel/blk_drv/floppy.c | block /= floppy->sect; |
block | 977 | kernel/blk_drv/floppy.c | head = block % floppy->head; |
block | 978 | kernel/blk_drv/floppy.c | track = block / floppy->head; |
block | 431 | kernel/blk_drv/hd.c | unsigned int block,dev; |
block | 444 | kernel/blk_drv/hd.c | block = CURRENT->sector; |
block | 446 | kernel/blk_drv/hd.c | if (dev >= (NR_HD<<6) || block >= hd[dev].nr_sects) { |
block | 449 | kernel/blk_drv/hd.c | block, hd[dev].nr_sects); |
block | 454 | kernel/blk_drv/hd.c | block += hd[dev].start_sect; |
block | 456 | kernel/blk_drv/hd.c | sec = block % hd_info[dev].sect + 1; |
block | 457 | kernel/blk_drv/hd.c | track = block / hd_info[dev].sect; |
block | 92 | kernel/blk_drv/ramdisk.c | int block = 512; /* Start at block 512 */ |
block | 103 | kernel/blk_drv/ramdisk.c | bh = breada(ROOT_DEV,block+1,block,block+2,-1); |
block | 124 | kernel/blk_drv/ramdisk.c | bh = breada(ROOT_DEV, block, block+1, block+2, -1); |
block | 126 | kernel/blk_drv/ramdisk.c | bh = bread(ROOT_DEV, block, BLOCK_SIZE); |
block | 129 | kernel/blk_drv/ramdisk.c | block); |
block | 137 | kernel/blk_drv/ramdisk.c | block++; |
block | 52 | kernel/blk_drv/scsi/scsi_debug.c | if ((bh->b_blocknr << 1) + start != block) \ |
block | 53 | kernel/blk_drv/scsi/scsi_debug.c | { printk("Wrong bh block# %d %d ",bh->b_blocknr, block); \ |
block | 73 | kernel/blk_drv/scsi/scsi_debug.c | if (SCpnt->request.sector + start != block) panic("Wrong block."); \ |
block | 77 | kernel/blk_drv/scsi/scsi_debug.c | if ((SCpnt->request.bh->b_blocknr << 1) + start != block) \ |
block | 78 | kernel/blk_drv/scsi/scsi_debug.c | { printk("Wrong bh block# %d %d ",SCpnt->request.bh->b_blocknr, block); \ |
block | 141 | kernel/blk_drv/scsi/scsi_debug.c | int block, start; |
block | 218 | kernel/blk_drv/scsi/scsi_debug.c | block = cmd[5] + (cmd[4] << 8) + (cmd[3] << 16) + (cmd[2] << 24); |
block | 220 | kernel/blk_drv/scsi/scsi_debug.c | block = cmd[3] + (cmd[2] << 8) + ((cmd[1] & 0x1f) << 16); |
block | 237 | kernel/blk_drv/scsi/scsi_debug.c | if(block == 0 && target == 0) { |
block | 252 | kernel/blk_drv/scsi/scsi_debug.c | if (SCpnt->use_sg) printk("Block %x (%d %d)\n",block, SCpnt->request.nr_sectors, |
block | 256 | kernel/blk_drv/scsi/scsi_debug.c | if(block == 0xfff0) { |
block | 276 | kernel/blk_drv/scsi/scsi_debug.c | memcpy(buff+60, &block, sizeof(block)); |
block | 281 | kernel/blk_drv/scsi/scsi_debug.c | block += bufflen >> 9; |
block | 300 | kernel/blk_drv/scsi/scsi_debug.c | block = cmd[5] + (cmd[4] << 8) + (cmd[3] << 16) + (cmd[2] << 24); |
block | 302 | kernel/blk_drv/scsi/scsi_debug.c | block = cmd[3] + (cmd[2] << 8) + ((cmd[1] & 0x1f) << 16); |
block | 312 | kernel/blk_drv/scsi/scsi_debug.c | if (block != *((unsigned long *) (buff+60))) { |
block | 313 | kernel/blk_drv/scsi/scsi_debug.c | printk("%x %x :",block, *((unsigned long *) (buff+60))); |
block | 384 | kernel/blk_drv/scsi/sd.c | int dev, block, this_count; |
block | 394 | kernel/blk_drv/scsi/sd.c | block = SCpnt->request.sector; |
block | 398 | kernel/blk_drv/scsi/sd.c | printk("Doing sd request, dev = %d, block = %d\n", dev, block); |
block | 401 | kernel/blk_drv/scsi/sd.c | if (dev >= (NR_SD << 4) || block + SCpnt->request.nr_sectors > sd[dev].nr_sects) |
block | 407 | kernel/blk_drv/scsi/sd.c | block += sd[dev].start_sect; |
block | 421 | kernel/blk_drv/scsi/sd.c | printk("sd%d : real dev = /dev/sd%d, block = %d\n", MINOR(SCpnt->request.dev), dev, block); |
block | 565 | kernel/blk_drv/scsi/sd.c | if (((this_count > 0xff) || (block > 0x1fffff)) && rscsi_disks[dev].ten) |
block | 571 | kernel/blk_drv/scsi/sd.c | cmd[2] = (unsigned char) (block >> 24) & 0xff; |
block | 572 | kernel/blk_drv/scsi/sd.c | cmd[3] = (unsigned char) (block >> 16) & 0xff; |
block | 573 | kernel/blk_drv/scsi/sd.c | cmd[4] = (unsigned char) (block >> 8) & 0xff; |
block | 574 | kernel/blk_drv/scsi/sd.c | cmd[5] = (unsigned char) block & 0xff; |
block | 584 | kernel/blk_drv/scsi/sd.c | cmd[1] |= (unsigned char) ((block >> 16) & 0x1f); |
block | 585 | kernel/blk_drv/scsi/sd.c | cmd[2] = (unsigned char) ((block >> 8) & 0xff); |
block | 586 | kernel/blk_drv/scsi/sd.c | cmd[3] = (unsigned char) block & 0xff; |
block | 332 | kernel/blk_drv/scsi/sr.c | unsigned int dev, block, realcount; |
block | 343 | kernel/blk_drv/scsi/sr.c | block = SCpnt->request.sector; |
block | 524 | kernel/blk_drv/scsi/sr.c | start = block % 4; |
block | 545 | kernel/blk_drv/scsi/sr.c | block = block >> 2; /* These are the sectors that the cdrom uses */ |
block | 548 | kernel/blk_drv/scsi/sr.c | if (((realcount > 0xff) || (block > 0x1fffff)) && scsi_CDs[dev].ten) |
block | 557 | kernel/blk_drv/scsi/sr.c | cmd[2] = (unsigned char) (block >> 24) & 0xff; |
block | 558 | kernel/blk_drv/scsi/sr.c | cmd[3] = (unsigned char) (block >> 16) & 0xff; |
block | 559 | kernel/blk_drv/scsi/sr.c | cmd[4] = (unsigned char) (block >> 8) & 0xff; |
block | 560 | kernel/blk_drv/scsi/sr.c | cmd[5] = (unsigned char) block & 0xff; |
block | 573 | kernel/blk_drv/scsi/sr.c | cmd[1] |= (unsigned char) ((block >> 16) & 0x1f); |
block | 574 | kernel/blk_drv/scsi/sr.c | cmd[2] = (unsigned char) ((block >> 8) & 0xff); |
block | 575 | kernel/blk_drv/scsi/sr.c | cmd[3] = (unsigned char) block & 0xff; |
block | 581 | kernel/blk_drv/scsi/sr.c | printk("ReadCD: %d %d %d\n",block, realcount, buffer); |
block | 709 | mm/memory.c | unsigned int block,i; |
block | 728 | mm/memory.c | block = 0; |
block | 731 | mm/memory.c | block = 1 + address / BLOCK_SIZE; |
block | 737 | mm/memory.c | block = address - tsk->libraries[i].start; |
block | 738 | mm/memory.c | if (block >= tsk->libraries[i].length + tsk->libraries[i].bss) |
block | 741 | mm/memory.c | if (block < tsk->libraries[i].length) |
block | 742 | mm/memory.c | block = 1 + block / BLOCK_SIZE; |
block | 744 | mm/memory.c | block = 0; |
block | 774 | mm/memory.c | if (block) { |
block | 775 | mm/memory.c | for (i=0 ; i<4 ; block++,i++) |
block | 776 | mm/memory.c | nr[i] = bmap(inode,block); |
block | 94 | mm/swap.c | unsigned int block = offset << 2; |
block | 98 | mm/swap.c | if (!(zones[i] = bmap(p->swap_file,block++))) { |