Lines Matching refs:blknr
508 static int map_block(struct minix1_inode *inode, unsigned blknr) in map_block() argument
514 if (blknr < 7) in map_block()
515 return check_zone_nr(inode->i_zone + blknr, &changed); in map_block()
516 blknr -= 7; in map_block()
517 if (blknr < 512) { in map_block()
521 blknr -= 512; in map_block()
525 result = check_zone_nr(&ind[blknr / 512], &blk_chg); in map_block()
532 result = check_zone_nr(&ind[blknr % 512], &blk_chg); in map_block()
539 static int map_block2(struct minix2_inode *inode, unsigned blknr) in map_block2() argument
545 if (blknr < 7) in map_block2()
546 return check_zone_nr2(inode->i_zone + blknr, &changed); in map_block2()
547 blknr -= 7; in map_block2()
548 if (blknr < 256) { in map_block2()
552 blknr -= 256; in map_block2()
553 if (blknr < 256 * 256) { in map_block2()
557 blknr -= 256 * 256; in map_block2()
561 result = check_zone_nr2(&ind[blknr / (256 * 256)], &blk_chg); in map_block2()
568 result = check_zone_nr2(&ind[(blknr / 256) % 256], &blk_chg); in map_block2()
575 result = check_zone_nr2(&ind[blknr % 256], &blk_chg); in map_block2()