Lines Matching refs:near
115 static secno alloc_in_bmp(struct super_block *s, secno near, unsigned n, unsigned forward)
119 unsigned bs = near & ~0x3fff;
120 unsigned nr = (near & 0x3fff) & ~(n - 1);
130 if (!(bmp = hpfs_map_bitmap(s, near >> 14, &qbh, "aib"))) goto uls;
196 * Allocation strategy: 1) search place near the sector specified
203 secno hpfs_alloc_sector(struct super_block *s, secno near, unsigned n, int forward)
216 if (near && near < sbi->sb_fs_size) {
217 if ((sec = alloc_in_bmp(s, near, n, f_p ? forward : forward/4))) goto ret;
218 near_bmp = near >> 14;
277 static secno alloc_in_dirband(struct super_block *s, secno near)
279 unsigned nr = near;
428 struct dnode *hpfs_alloc_dnode(struct super_block *s, secno near,
433 if (!(*dno = alloc_in_dirband(s, near)))
434 if (!(*dno = hpfs_alloc_sector(s, near, 4, 0))) return NULL;
436 if (!(*dno = hpfs_alloc_sector(s, near, 4, 0)))
437 if (!(*dno = alloc_in_dirband(s, near))) return NULL;
454 struct fnode *hpfs_alloc_fnode(struct super_block *s, secno near, fnode_secno *fno,
458 if (!(*fno = hpfs_alloc_sector(s, near, 1, FNODE_ALLOC_FWD))) return NULL;
471 struct anode *hpfs_alloc_anode(struct super_block *s, secno near, anode_secno *ano,
475 if (!(*ano = hpfs_alloc_sector(s, near, 1, ANODE_ALLOC_FWD))) return NULL;