Lines Matching refs:minix_sb
62 if (block < sb->u.minix_sb.s_firstdatazone || in minix_free_block()
63 block >= sb->u.minix_sb.s_nzones) { in minix_free_block()
67 zone = block - sb->u.minix_sb.s_firstdatazone + 1; in minix_free_block()
70 if (zone >= sb->u.minix_sb.s_zmap_blocks) { in minix_free_block()
74 bh = sb->u.minix_sb.s_zmap[zone]; in minix_free_block()
95 for (i = 0; i < sb->u.minix_sb.s_zmap_blocks; i++) { in minix_new_block()
96 bh = sb->u.minix_sb.s_zmap[i]; in minix_new_block()
107 j += i*8192 + sb->u.minix_sb.s_firstdatazone-1; in minix_new_block()
108 if (j < sb->u.minix_sb.s_firstdatazone || in minix_new_block()
109 j >= sb->u.minix_sb.s_nzones) in minix_new_block()
116 return (count_free(sb->u.minix_sb.s_zmap, sb->u.minix_sb.s_zmap_blocks, in minix_count_free_blocks()
117 sb->u.minix_sb.s_nzones - sb->u.minix_sb.s_firstdatazone + 1) in minix_count_free_blocks()
118 << sb->u.minix_sb.s_log_zone_size); in minix_count_free_blocks()
125 struct minix_sb_info *sbi = &sb->u.minix_sb; in minix_V1_raw_inode()
149 struct minix_sb_info *sbi = &sb->u.minix_sb; in minix_V2_raw_inode()
201 if (inode->i_ino < 1 || inode->i_ino > inode->i_sb->u.minix_sb.s_ninodes) { in minix_free_inode()
206 if ((ino >> 13) >= inode->i_sb->u.minix_sb.s_imap_blocks) { in minix_free_inode()
211 bh = inode->i_sb->u.minix_sb.s_imap[ino >> 13]; in minix_free_inode()
236 for (i = 0; i < sb->u.minix_sb.s_imap_blocks; i++) { in minix_new_inode()
237 bh = inode->i_sb->u.minix_sb.s_imap[i]; in minix_new_inode()
254 if (!j || j > inode->i_sb->u.minix_sb.s_ninodes) { in minix_new_inode()
274 return count_free(sb->u.minix_sb.s_imap, sb->u.minix_sb.s_imap_blocks, in minix_count_free_inodes()
275 sb->u.minix_sb.s_ninodes + 1); in minix_count_free_inodes()