/linux-4.1.27/fs/hpfs/ |
D | buffer.c | 13 void hpfs_prefetch_sectors(struct super_block *s, unsigned secno, int n) in hpfs_prefetch_sectors() argument 18 if (n <= 0 || unlikely(secno >= hpfs_sb(s)->sb_fs_size)) in hpfs_prefetch_sectors() 21 bh = sb_find_get_block(s, secno); in hpfs_prefetch_sectors() 32 if (unlikely(secno >= hpfs_sb(s)->sb_fs_size)) in hpfs_prefetch_sectors() 34 sb_breadahead(s, secno); in hpfs_prefetch_sectors() 35 secno++; in hpfs_prefetch_sectors() 43 void *hpfs_map_sector(struct super_block *s, unsigned secno, struct buffer_head **bhp, in hpfs_map_sector() argument 50 hpfs_prefetch_sectors(s, secno, ahead); in hpfs_map_sector() 54 *bhp = bh = sb_bread(s, secno); in hpfs_map_sector() 65 void *hpfs_get_sector(struct super_block *s, unsigned secno, struct buffer_head **bhp) in hpfs_get_sector() argument [all …]
|
D | hpfs_fn.h | 149 static inline secno ea_sec(struct extended_attribute *ea) in ea_sec() 154 static inline secno ea_len(struct extended_attribute *ea) in ea_len() 164 static inline unsigned de_size(int namelen, secno down_ptr) in de_size() 194 int hpfs_chk_sectors(struct super_block *, secno, int, char *); 195 secno hpfs_alloc_sector(struct super_block *, secno, unsigned, int); 196 int hpfs_alloc_if_possible(struct super_block *, secno); 197 void hpfs_free_sectors(struct super_block *, secno, unsigned); 199 void hpfs_free_dnode(struct super_block *, secno); 200 struct dnode *hpfs_alloc_dnode(struct super_block *, secno, dnode_secno *, struct quad_buffer_head … 201 struct fnode *hpfs_alloc_fnode(struct super_block *, secno, fnode_secno *, struct buffer_head **); [all …]
|
D | map.c | 19 secno sec; in hpfs_map_bitmap() 56 unsigned char *hpfs_load_code_page(struct super_block *s, secno cps) in hpfs_load_code_page() 59 secno cpds; in hpfs_load_code_page() 111 __le32 *hpfs_load_bitmap_directory(struct super_block *s, secno bmp) in hpfs_load_bitmap_directory() 229 struct dnode *hpfs_map_dnode(struct super_block *s, unsigned secno, in hpfs_map_dnode() argument 234 if (hpfs_chk_sectors(s, secno, 4, "dnode")) return NULL; in hpfs_map_dnode() 235 if (secno & 3) { in hpfs_map_dnode() 236 hpfs_error(s, "dnode %08x not byte-aligned", secno); in hpfs_map_dnode() 240 if ((dnode = hpfs_map_4sectors(s, secno, qbh, DNODE_RD_AHEAD))) in hpfs_map_dnode() 246 hpfs_error(s, "bad magic on dnode %08x", secno); in hpfs_map_dnode() [all …]
|
D | alloc.c | 11 static void hpfs_claim_alloc(struct super_block *s, secno sec) in hpfs_claim_alloc() 24 static void hpfs_claim_free(struct super_block *s, secno sec) in hpfs_claim_free() 37 static void hpfs_claim_dirband_alloc(struct super_block *s, secno sec) in hpfs_claim_dirband_alloc() 50 static void hpfs_claim_dirband_free(struct super_block *s, secno sec) in hpfs_claim_dirband_free() 68 static int chk_if_allocated(struct super_block *s, secno sec, char *msg) in chk_if_allocated() 99 int hpfs_chk_sectors(struct super_block *s, secno start, int len, char *msg) in hpfs_chk_sectors() 114 static secno alloc_in_bmp(struct super_block *s, secno near, unsigned n, unsigned forward) in alloc_in_bmp() 123 secno ret = 0; in alloc_in_bmp() 202 secno hpfs_alloc_sector(struct super_block *s, secno near, unsigned n, int forward) in hpfs_alloc_sector() 204 secno sec; in hpfs_alloc_sector() [all …]
|
D | ea.c | 14 void hpfs_ea_ext_remove(struct super_block *s, secno a, int ano, unsigned len) in hpfs_ea_ext_remove() 50 static char *get_indirect_ea(struct super_block *s, int ano, secno a, int size) in get_indirect_ea() 65 static void set_indirect_ea(struct super_block *s, int ano, secno a, in set_indirect_ea() 78 secno a; in hpfs_read_ea() 134 secno a; in hpfs_get_ea() 196 secno a; in hpfs_set_ea() 267 secno n; in hpfs_set_ea() 288 secno q = hpfs_alloc_sector(s, fno, 1, 0); in hpfs_set_ea() 315 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() 60 secno hpfs_add_sector_to_btree(struct super_block *s, secno node, int fnod, unsigned fsecno) in hpfs_add_sector_to_btree() 66 secno se; in hpfs_add_sector_to_btree() 329 static secno anode_lookup(struct super_block *s, anode_secno a, unsigned sec) in anode_lookup() 337 int hpfs_ea_read(struct super_block *s, secno a, int ano, unsigned pos, in hpfs_ea_read() 342 secno sec; in hpfs_ea_read() 360 int hpfs_ea_write(struct super_block *s, secno a, int ano, unsigned pos, in hpfs_ea_write() 365 secno sec; in hpfs_ea_write() 384 void hpfs_ea_remove(struct super_block *s, secno a, int ano, unsigned len) in hpfs_ea_remove() 398 void hpfs_truncate_btree(struct super_block *s, secno f, int fno, unsigned secs) in hpfs_truncate_btree()
|
D | hpfs.h | 28 typedef u32 secno; /* sector number, partition relative */ typedef 30 typedef secno dnode_secno; /* sector number of a dnode */ 31 typedef secno fnode_secno; /* sector number of an fnode */ 32 typedef secno anode_secno; /* sector number of an anode */
|
D | file.c | 38 static secno hpfs_bmap(struct inode *inode, unsigned file_secno, unsigned *n_secs) in hpfs_bmap() 79 secno s; in hpfs_get_block()
|
D | super.c | 132 static unsigned hpfs_count_one_bitmap(struct super_block *s, secno secno) in hpfs_count_one_bitmap() argument 138 bits = hpfs_map_4sectors(s, secno, &qbh, 0); in hpfs_count_one_bitmap()
|
D | dnode.c | 171 unsigned namelen, secno down_ptr) in hpfs_add_de() 430 static secno move_to_top(struct inode *i, dnode_secno from, dnode_secno to) in move_to_top()
|
/linux-4.1.27/fs/f2fs/ |
D | segment.h | 34 #define IS_CURSEC(sbi, secno) \ argument 35 ((secno == CURSEG_I(sbi, CURSEG_HOT_DATA)->segno / \ 37 (secno == CURSEG_I(sbi, CURSEG_WARM_DATA)->segno / \ 39 (secno == CURSEG_I(sbi, CURSEG_COLD_DATA)->segno / \ 41 (secno == CURSEG_I(sbi, CURSEG_HOT_NODE)->segno / \ 43 (secno == CURSEG_I(sbi, CURSEG_WARM_NODE)->segno / \ 45 (secno == CURSEG_I(sbi, CURSEG_COLD_NODE)->segno / \ 331 unsigned int secno = segno / sbi->segs_per_sec; in __set_free() local 332 unsigned int start_segno = secno * sbi->segs_per_sec; in __set_free() 342 clear_bit(secno, free_i->free_secmap); in __set_free() [all …]
|
D | gc.c | 185 unsigned int secno; in check_bg_victims() local 192 for_each_set_bit(secno, dirty_i->victim_secmap, MAIN_SECS(sbi)) { in check_bg_victims() 193 if (sec_usage_check(sbi, secno)) in check_bg_victims() 195 clear_bit(secno, dirty_i->victim_secmap); in check_bg_victims() 196 return secno * sbi->segs_per_sec; in check_bg_victims() 204 unsigned int secno = GET_SECNO(sbi, segno); in get_cb_cost() local 205 unsigned int start = secno * sbi->segs_per_sec; in get_cb_cost() 259 unsigned int secno, max_cost; in get_victim_by_default() local 294 secno = GET_SECNO(sbi, segno); in get_victim_by_default() 296 if (sec_usage_check(sbi, secno)) in get_victim_by_default() [all …]
|
D | segment.c | 801 unsigned int segno, secno, zoneno; in get_new_segment() local 820 secno = find_next_zero_bit(free_i->free_secmap, MAIN_SECS(sbi), hint); in get_new_segment() 821 if (secno >= MAIN_SECS(sbi)) { in get_new_segment() 823 secno = find_next_zero_bit(free_i->free_secmap, in get_new_segment() 825 f2fs_bug_on(sbi, secno >= MAIN_SECS(sbi)); in get_new_segment() 844 secno = left_start; in get_new_segment() 846 hint = secno; in get_new_segment() 847 segno = secno * sbi->segs_per_sec; in get_new_segment() 848 zoneno = secno / sbi->secs_per_zone; in get_new_segment()
|