/linux-2.4.37.9/fs/hpfs/ |
D | hpfs.h | 24 typedef unsigned secno; /* sector number, partition relative */ typedef 26 typedef secno dnode_secno; /* sector number of a dnode */ 27 typedef secno fnode_secno; /* sector number of an fnode */ 28 typedef secno anode_secno; /* sector number of an anode */ 83 secno n_sectors; /* size of filesystem */ 85 secno bitmaps; /* pointers to free space bit maps */ 87 secno badblocks; /* bad block list */ 92 secno n_dir_band; /* number of sectors in dir band */ 93 secno dir_band_start; /* first sector in dir band */ 94 secno dir_band_end; /* last sector in dir band */ [all …]
|
D | hpfs_fn.h | 134 extern inline secno ea_sec(struct extended_attribute *ea) in ea_sec() 136 return *(secno *)((char *)ea + 9 + ea->namelen); in ea_sec() 139 extern inline secno ea_len(struct extended_attribute *ea) in ea_len() 141 return *(secno *)((char *)ea + 5 + ea->namelen); in ea_len() 149 extern inline unsigned de_size(int namelen, secno down_ptr) in de_size() 179 int hpfs_chk_sectors(struct super_block *, secno, int, char *); 180 secno hpfs_alloc_sector(struct super_block *, secno, unsigned, int, int); 181 int hpfs_alloc_if_possible_nolock(struct super_block *, secno); 182 int hpfs_alloc_if_possible(struct super_block *, secno); 183 void hpfs_free_sectors(struct super_block *, secno, unsigned); [all …]
|
D | map.c | 19 secno sec; in hpfs_map_bitmap() 38 char *hpfs_load_code_page(struct super_block *s, secno cps) in hpfs_load_code_page() 41 secno cpds; in hpfs_load_code_page() 92 secno *hpfs_load_bitmap_directory(struct super_block *s, secno bmp) in hpfs_load_bitmap_directory() 97 secno *b; in hpfs_load_bitmap_directory() 103 secno *d = hpfs_map_sector(s, bmp+i, &bh, n - i - 1); in hpfs_load_bitmap_directory() 198 struct dnode *hpfs_map_dnode(struct super_block *s, unsigned secno, in hpfs_map_dnode() argument 203 if (hpfs_chk_sectors(s, secno, 4, "dnode")) return NULL; in hpfs_map_dnode() 204 if (secno & 3) { in hpfs_map_dnode() 205 hpfs_error(s, "dnode %08x not byte-aligned", secno); in hpfs_map_dnode() [all …]
|
D | buffer.c | 122 void *hpfs_map_sector(struct super_block *s, unsigned secno, struct buffer_head **bhp, in hpfs_map_sector() argument 129 *bhp = bh = sb_bread(s, secno); in hpfs_map_sector() 140 void *hpfs_get_sector(struct super_block *s, unsigned secno, struct buffer_head **bhp) in hpfs_get_sector() argument 147 if ((*bhp = bh = sb_getblk(s, secno)) != NULL) { in hpfs_get_sector() 159 void *hpfs_map_4sectors(struct super_block *s, unsigned secno, struct quad_buffer_head *qbh, in hpfs_map_4sectors() argument 167 if (secno & 3) { in hpfs_map_4sectors() 178 qbh->bh[0] = bh = sb_bread(s, secno); in hpfs_map_4sectors() 183 qbh->bh[1] = bh = sb_bread(s, secno + 1); in hpfs_map_4sectors() 188 qbh->bh[2] = bh = sb_bread(s, secno + 2); in hpfs_map_4sectors() 193 qbh->bh[3] = bh = sb_bread(s, secno + 3); in hpfs_map_4sectors() [all …]
|
D | alloc.c | 16 static int chk_if_allocated(struct super_block *s, secno sec, char *msg) in chk_if_allocated() 47 int hpfs_chk_sectors(struct super_block *s, secno start, int len, char *msg) in hpfs_chk_sectors() 62 static secno alloc_in_bmp(struct super_block *s, secno near, unsigned n, unsigned forward) in alloc_in_bmp() 71 secno ret = 0; in alloc_in_bmp() 156 secno hpfs_alloc_sector(struct super_block *s, secno near, unsigned n, int forward, int lock) in hpfs_alloc_sector() 158 secno sec; in hpfs_alloc_sector() 226 static secno alloc_in_dirband(struct super_block *s, secno near, int lock) in alloc_in_dirband() 229 secno sec; in alloc_in_dirband() 245 int hpfs_alloc_if_possible_nolock(struct super_block *s, secno sec) in hpfs_alloc_if_possible_nolock() 264 int hpfs_alloc_if_possible(struct super_block *s, secno sec) in hpfs_alloc_if_possible() [all …]
|
D | ea.c | 15 void hpfs_ea_ext_remove(struct super_block *s, secno a, int ano, unsigned len) in hpfs_ea_ext_remove() 51 static char *get_indirect_ea(struct super_block *s, int ano, secno a, int size) in get_indirect_ea() 66 static void set_indirect_ea(struct super_block *s, int ano, secno a, char *data, in set_indirect_ea() 79 secno a; in hpfs_read_ea() 135 secno a; in hpfs_get_ea() 196 secno a; in hpfs_set_ea() 265 secno n; in hpfs_set_ea() 312 secno new_sec; in hpfs_set_ea()
|
D | anode.c | 13 secno hpfs_bplus_lookup(struct super_block *s, struct inode *inode, in hpfs_bplus_lookup() 59 secno hpfs_add_sector_to_btree(struct super_block *s, secno node, int fnod, unsigned fsecno) in hpfs_add_sector_to_btree() 65 secno se; in hpfs_add_sector_to_btree() 323 static secno anode_lookup(struct super_block *s, anode_secno a, unsigned sec) in anode_lookup() 331 int hpfs_ea_read(struct super_block *s, secno a, int ano, unsigned pos, in hpfs_ea_read() 336 secno sec; in hpfs_ea_read() 354 int hpfs_ea_write(struct super_block *s, secno a, int ano, unsigned pos, in hpfs_ea_write() 359 secno sec; in hpfs_ea_write() 378 void hpfs_ea_remove(struct super_block *s, secno a, int ano, unsigned len) in hpfs_ea_remove() 392 void hpfs_truncate_btree(struct super_block *s, secno f, int fno, unsigned secs) in hpfs_truncate_btree()
|
D | file.c | 46 secno hpfs_bmap(struct inode *inode, unsigned file_secno) in hpfs_bmap() 73 secno s; in hpfs_get_block()
|
D | super.c | 108 unsigned hpfs_count_one_bitmap(struct super_block *s, secno secno) in hpfs_count_one_bitmap() argument 113 if (!(bits = hpfs_map_4sectors(s, secno, &qbh, 4))) return 0; in hpfs_count_one_bitmap()
|
D | dnode.c | 156 unsigned namelen, secno down_ptr) in hpfs_add_de() 410 static secno move_to_top(struct inode *i, dnode_secno from, dnode_secno to) in move_to_top()
|