/linux-6.3-rc2/fs/hpfs/ |
A D | buffer.c | 14 secno hpfs_search_hotfix_map(struct super_block *s, secno sec) in hpfs_search_hotfix_map() 43 if (n <= 0 || unlikely(secno >= hpfs_sb(s)->sb_fs_size)) in hpfs_prefetch_sectors() 49 bh = sb_find_get_block(s, secno); in hpfs_prefetch_sectors() 60 if (unlikely(secno >= hpfs_sb(s)->sb_fs_size)) in hpfs_prefetch_sectors() 62 sb_breadahead(s, secno); in hpfs_prefetch_sectors() 63 secno++; in hpfs_prefetch_sectors() 78 hpfs_prefetch_sectors(s, secno, ahead); in hpfs_map_sector() 82 *bhp = bh = sb_bread(s, hpfs_search_hotfix_map(s, secno)); in hpfs_map_sector() 123 if (secno & 3) { in hpfs_map_4sectors() 128 hpfs_prefetch_sectors(s, secno, 4 + ahead); in hpfs_map_4sectors() [all …]
|
A D | hpfs_fn.h | 93 secno hotfix_from[256]; 94 secno hotfix_to[256]; 155 static inline secno ea_sec(struct extended_attribute *ea) in ea_sec() 160 static inline secno ea_len(struct extended_attribute *ea) in ea_len() 170 static inline unsigned de_size(int namelen, secno down_ptr) in de_size() 201 secno hpfs_alloc_sector(struct super_block *, secno, unsigned, int); 202 int hpfs_alloc_if_possible(struct super_block *, secno); 205 void hpfs_free_dnode(struct super_block *, secno); 214 secno hpfs_add_sector_to_btree(struct super_block *, secno, int, unsigned); 224 secno hpfs_search_hotfix_map(struct super_block *s, secno sec); [all …]
|
A D | map.c | 20 secno sec; in hpfs_map_bitmap() 57 unsigned char *hpfs_load_code_page(struct super_block *s, secno cps) in hpfs_load_code_page() 60 secno cpds; in hpfs_load_code_page() 112 __le32 *hpfs_load_bitmap_directory(struct super_block *s, secno bmp) in hpfs_load_bitmap_directory() 261 if (hpfs_chk_sectors(s, secno, 4, "dnode")) return NULL; in hpfs_map_dnode() 262 if (secno & 3) { in hpfs_map_dnode() 263 hpfs_error(s, "dnode %08x not byte-aligned", secno); in hpfs_map_dnode() 267 if ((dnode = hpfs_map_4sectors(s, secno, qbh, DNODE_RD_AHEAD))) in hpfs_map_dnode() 273 hpfs_error(s, "bad magic on dnode %08x", secno); in hpfs_map_dnode() 276 if (le32_to_cpu(dnode->self) != secno) in hpfs_map_dnode() [all …]
|
A D | alloc.c | 12 static void hpfs_claim_alloc(struct super_block *s, secno sec) in hpfs_claim_alloc() 25 static void hpfs_claim_free(struct super_block *s, secno sec) in hpfs_claim_free() 115 static secno alloc_in_bmp(struct super_block *s, secno near, unsigned n, unsigned forward) in alloc_in_bmp() 124 secno ret = 0; in alloc_in_bmp() 203 secno hpfs_alloc_sector(struct super_block *s, secno near, unsigned n, int forward) in hpfs_alloc_sector() 205 secno sec; in hpfs_alloc_sector() 277 static secno alloc_in_dirband(struct super_block *s, secno near) in alloc_in_dirband() 280 secno sec; in alloc_in_dirband() 296 int hpfs_alloc_if_possible(struct super_block *s, secno sec) in hpfs_alloc_if_possible() 503 static int do_trim(struct super_block *s, secno start, unsigned len, secno limit_start, secno limit… in do_trim() [all …]
|
A 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, in set_indirect_ea() 79 secno a; in hpfs_read_ea() 135 secno a; in hpfs_get_ea() 197 secno a; in hpfs_set_ea() 268 secno n; in hpfs_set_ea() 289 secno q = hpfs_alloc_sector(s, fno, 1, 0); in hpfs_set_ea() 316 secno new_sec; in hpfs_set_ea()
|
A D | anode.c | 14 secno hpfs_bplus_lookup(struct super_block *s, struct inode *inode, in hpfs_bplus_lookup() 61 secno hpfs_add_sector_to_btree(struct super_block *s, secno node, int fnod, unsigned fsecno) in hpfs_add_sector_to_btree() 67 secno se; in hpfs_add_sector_to_btree() 330 static secno anode_lookup(struct super_block *s, anode_secno a, unsigned sec) in anode_lookup() 338 int hpfs_ea_read(struct super_block *s, secno a, int ano, unsigned pos, in hpfs_ea_read() 343 secno sec; in hpfs_ea_read() 361 int hpfs_ea_write(struct super_block *s, secno a, int ano, unsigned pos, in hpfs_ea_write() 366 secno sec; in hpfs_ea_write() 385 void hpfs_ea_remove(struct super_block *s, secno a, int ano, unsigned len) in hpfs_ea_remove() 399 void hpfs_truncate_btree(struct super_block *s, secno f, int fno, unsigned secs) in hpfs_truncate_btree()
|
A D | hpfs.h | 29 typedef u32 secno; /* sector number, partition relative */ typedef 31 typedef secno dnode_secno; /* sector number of a dnode */ 32 typedef secno fnode_secno; /* sector number of an fnode */ 33 typedef secno anode_secno; /* sector number of an anode */
|
A D | file.c | 41 static secno hpfs_bmap(struct inode *inode, unsigned file_secno, unsigned *n_secs) in hpfs_bmap() 82 secno s; in hpfs_get_block() 126 secno s; in hpfs_iomap_begin()
|
A D | super.c | 133 static unsigned hpfs_count_one_bitmap(struct super_block *s, secno secno) in hpfs_count_one_bitmap() argument 139 bits = hpfs_map_4sectors(s, secno, &qbh, 0); in hpfs_count_one_bitmap() 209 secno n_trimmed; in hpfs_ioctl()
|
A D | dnode.c | 175 unsigned namelen, secno down_ptr) in hpfs_add_de() 433 static secno move_to_top(struct inode *i, dnode_secno from, dnode_secno to) in move_to_top()
|
/linux-6.3-rc2/fs/f2fs/ |
A D | segment.h | 49 #define IS_CURSEC(sbi, secno) \ argument 109 #define GET_SEG_FROM_SEC(sbi, secno) \ argument 110 ((secno) * (sbi)->segs_per_sec) 111 #define GET_ZONE_FROM_SEC(sbi, secno) \ argument 112 (((secno) == -1) ? -1: (secno) / (sbi)->secs_per_zone) 446 unsigned int secno = GET_SEC_FROM_SEG(sbi, segno); in __set_free() local 458 clear_bit(secno, free_i->free_secmap); in __set_free() 468 unsigned int secno = GET_SEC_FROM_SEG(sbi, segno); in __set_inuse() local 472 if (!test_and_set_bit(secno, free_i->free_secmap)) in __set_inuse() 489 if (!inmem && IS_CURSEC(sbi, secno)) in __set_test_and_free() [all …]
|
A D | gc.c | 316 unsigned int secno; in check_bg_victims() local 324 if (sec_usage_check(sbi, secno)) in check_bg_victims() 326 clear_bit(secno, dirty_i->victim_secmap); in check_bg_victims() 327 return GET_SEG_FROM_SEC(sbi, secno); in check_bg_victims() 675 unsigned int secno) in f2fs_section_is_pinned() argument 679 test_bit(secno, dirty_i->pinned_secmap); in f2fs_section_is_pinned() 720 unsigned int secno, last_victim; in get_victim_by_default() local 818 secno = GET_SEC_FROM_SEG(sbi, segno); in get_victim_by_default() 820 if (sec_usage_check(sbi, secno)) in get_victim_by_default() 892 sbi->cur_victim_sec = secno; in get_victim_by_default() [all …]
|
A D | segment.c | 764 if (!IS_CURSEC(sbi, secno)) in __locate_dirty_segment() 803 if (!IS_CURSEC(sbi, secno)) in __remove_dirty_segment() 1949 unsigned int secno, start_segno; in f2fs_clear_prefree_segments() local 1993 secno = GET_SEC_FROM_SEG(sbi, start); in f2fs_clear_prefree_segments() 1995 if (!IS_CURSEC(sbi, secno) && in f2fs_clear_prefree_segments() 2450 unsigned int segno, secno, zoneno; in get_new_segment() local 2469 if (secno >= MAIN_SECS(sbi)) { in get_new_segment() 2492 secno = left_start; in get_new_segment() 2494 segno = GET_SEG_FROM_SEC(sbi, secno); in get_new_segment() 4565 if (IS_CURSEC(sbi, secno)) in init_dirty_segmap() [all …]
|