• Home
  • Raw
  • Download

Lines Matching refs:a

18 	anode_secno a = -1;  in hpfs_bplus_lookup()  local
23 if (hpfs_sb(s)->sb_chk) if (hpfs_stop_cycles(s, a, &c1, &c2, "hpfs_bplus_lookup")) return -1; in hpfs_bplus_lookup()
27 a = le32_to_cpu(btree->u.internal[i].down); in hpfs_bplus_lookup()
29 if (!(anode = hpfs_map_anode(s, a, &bh))) return -1; in hpfs_bplus_lookup()
33 hpfs_error(s, "sector %08x not found in internal anode %08x", sec, a); in hpfs_bplus_lookup()
40a = le32_to_cpu(btree->u.external[i].disk_secno) + sec - le32_to_cpu(btree->u.external[i].file_sec… in hpfs_bplus_lookup()
41 if (hpfs_sb(s)->sb_chk) if (hpfs_chk_sectors(s, a, 1, "data")) { in hpfs_bplus_lookup()
52 return a; in hpfs_bplus_lookup()
54 hpfs_error(s, "sector %08x not found in external anode %08x", sec, a); in hpfs_bplus_lookup()
66 anode_secno a, na = -1, ra, up = -1; in hpfs_add_sector_to_btree() local
79 a = node; in hpfs_add_sector_to_btree()
82 hpfs_error(s, "anode %08x has no entries", a); in hpfs_add_sector_to_btree()
87 a = le32_to_cpu(btree->u.internal[n].down); in hpfs_add_sector_to_btree()
92 if (hpfs_stop_cycles(s, a, &c1, &c2, "hpfs_add_sector_to_btree #1")) return -1; in hpfs_add_sector_to_btree()
93 if (!(anode = hpfs_map_anode(s, a, &bh))) return -1; in hpfs_add_sector_to_btree()
125 up = a != node ? le32_to_cpu(anode->up) : -1; in hpfs_add_sector_to_btree()
126 if (!(anode = hpfs_alloc_anode(s, a, &na, &bh1))) { in hpfs_add_sector_to_btree()
131 if (a == node && fnod) { in hpfs_add_sector_to_btree()
163 if ((a == node && fnod) || na == -1) return se; in hpfs_add_sector_to_btree()
201 a = na; in hpfs_add_sector_to_btree()
202 if ((new_anode = hpfs_alloc_anode(s, a, &na, &bh))) { in hpfs_add_sector_to_btree()
209 anode->btree.u.internal[0].down = cpu_to_le32(a); in hpfs_add_sector_to_btree()
213 if ((anode = hpfs_map_anode(s, a, &bh))) { in hpfs_add_sector_to_btree()
218 } else na = a; in hpfs_add_sector_to_btree()
330 static secno anode_lookup(struct super_block *s, anode_secno a, unsigned sec) in anode_lookup() argument
334 if (!(anode = hpfs_map_anode(s, a, &bh))) return -1; in anode_lookup()
338 int hpfs_ea_read(struct super_block *s, secno a, int ano, unsigned pos, in hpfs_ea_read() argument
347 if ((sec = anode_lookup(s, a, pos >> 9)) == -1) in hpfs_ea_read()
349 } else sec = a + (pos >> 9); in hpfs_ea_read()
361 int hpfs_ea_write(struct super_block *s, secno a, int ano, unsigned pos, in hpfs_ea_write() argument
370 if ((sec = anode_lookup(s, a, pos >> 9)) == -1) in hpfs_ea_write()
372 } else sec = a + (pos >> 9); in hpfs_ea_write()
385 void hpfs_ea_remove(struct super_block *s, secno a, int ano, unsigned len) in hpfs_ea_remove() argument
390 if (!(anode = hpfs_map_anode(s, a, &bh))) return; in hpfs_ea_remove()
393 hpfs_free_sectors(s, a, 1); in hpfs_ea_remove()
394 } else hpfs_free_sectors(s, a, (len + 511) >> 9); in hpfs_ea_remove()