Home
last modified time | relevance | path

Searched refs:secno (Results 1 – 9 of 9) sorted by relevance

/linux/fs/hpfs/
H A Dbuffer.c14 secno hpfs_search_hotfix_map(struct super_block *s, secno sec) in hpfs_search_hotfix_map()
26 unsigned hpfs_search_hotfix_map_for_range(struct super_block *s, secno sec, unsigned n) in hpfs_search_hotfix_map_for_range()
38 void hpfs_prefetch_sectors(struct super_block *s, unsigned secno, int n) in hpfs_prefetch_sectors() argument
43 if (n <= 0 || unlikely(secno >= hpfs_sb(s)->sb_fs_size)) in hpfs_prefetch_sectors()
46 if (unlikely(hpfs_search_hotfix_map_for_range(s, secno, n) != n)) 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()
71 void *hpfs_map_sector(struct super_block *s, unsigned secno, struct buffer_head **bhp, in hpfs_map_sector() argument
[all …]
H A Dhpfs_fn.h93 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()
200 int hpfs_chk_sectors(struct super_block *, secno, int, char *);
201 secno hpfs_alloc_sector(struct super_block *, secno, unsigned, int);
202 int hpfs_alloc_if_possible(struct super_block *, secno);
203 void hpfs_free_sectors(struct super_block *, secno, unsigned);
205 void hpfs_free_dnode(struct super_block *, secno);
[all …]
H A Dmap.c20 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()
256 struct dnode *hpfs_map_dnode(struct super_block *s, unsigned secno, in hpfs_map_dnode() argument
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()
[all …]
H A Dalloc.c12 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()
38 static void hpfs_claim_dirband_alloc(struct super_block *s, secno sec) in hpfs_claim_dirband_alloc()
51 static void hpfs_claim_dirband_free(struct super_block *s, secno sec) in hpfs_claim_dirband_free()
69 static int chk_if_allocated(struct super_block *s, secno sec, char *msg) in chk_if_allocated()
100 int hpfs_chk_sectors(struct super_block *s, secno start, int len, char *msg) in hpfs_chk_sectors()
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()
[all …]
H A Danode.c14 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()
331 static secno anode_lookup(struct super_block *s, anode_secno a, unsigned sec) in anode_lookup()
339 int hpfs_ea_read(struct super_block *s, secno a, int ano, unsigned pos, in hpfs_ea_read()
344 secno sec; in hpfs_ea_read()
362 int hpfs_ea_write(struct super_block *s, secno a, int ano, unsigned pos, in hpfs_ea_write()
367 secno sec; in hpfs_ea_write()
386 void hpfs_ea_remove(struct super_block *s, secno a, int ano, unsigned len) in hpfs_ea_remove()
400 void hpfs_truncate_btree(struct super_block *s, secno f, int fno, unsigned secs) in hpfs_truncate_btree()
H A Dhpfs.h29 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 */
/linux/fs/f2fs/
H A Dsegment.h87 #define GET_SEG_FROM_SEC(sbi, secno) \ argument
88 ((secno) * SEGS_PER_SEC(sbi))
89 #define GET_ZONE_FROM_SEC(sbi, secno) \ argument
90 (((secno) == -1) ? -1 : (secno) / (sbi)->secs_per_zone)
308 static inline bool is_cursec(struct f2fs_sb_info *sbi, unsigned int secno) in is_cursec() argument
313 if (secno == GET_SEC_FROM_SEG(sbi, CURSEG_I(sbi, i)->segno)) in is_cursec()
358 unsigned int secno = GET_SEC_FROM_SEG(sbi, segno); in set_ckpt_valid_blocks() local
359 unsigned int start_segno = GET_SEG_FROM_SEC(sbi, secno); in set_ckpt_valid_blocks()
375 unsigned int secno = GET_SEC_FROM_SEG(sbi, segno); in sanity_check_valid_blocks() local
376 unsigned int start_segno = GET_SEG_FROM_SEC(sbi, secno); in sanity_check_valid_blocks()
[all …]
H A Dgc.c346 unsigned int secno; in check_bg_victims() local
353 for_each_set_bit(secno, dirty_i->victim_secmap, MAIN_SECS(sbi)) { in check_bg_victims()
354 if (sec_usage_check(sbi, secno)) in check_bg_victims()
356 clear_bit(secno, dirty_i->victim_secmap); in check_bg_victims()
357 return GET_SEG_FROM_SEC(sbi, secno); in check_bg_victims()
717 unsigned int secno = GET_SEC_FROM_SEG(sbi, segno); in f2fs_pin_section() local
721 if (!test_and_set_bit(secno, dirty_i->pinned_secmap)) in f2fs_pin_section()
732 unsigned int secno) in f2fs_section_is_pinned() argument
736 test_bit(secno, dirty_i->pinned_secmap); in f2fs_section_is_pinned()
777 unsigned int secno, last_victim; in f2fs_get_victim() local
[all …]
H A Dsegment.c841 unsigned int secno = GET_SEC_FROM_SEG(sbi, segno); in __locate_dirty_segment() local
850 if (!is_cursec(sbi, secno)) in __locate_dirty_segment()
851 set_bit(secno, dirty_i->dirty_secmap); in __locate_dirty_segment()
881 unsigned int secno = GET_SEC_FROM_SEG(sbi, segno); in __remove_dirty_segment() local
885 clear_bit(secno, dirty_i->dirty_secmap); in __remove_dirty_segment()
889 if (!is_cursec(sbi, secno)) in __remove_dirty_segment()
890 set_bit(secno, dirty_i->dirty_secmap); in __remove_dirty_segment()
2232 unsigned int secno, start_segno; in f2fs_clear_prefree_segments() local
2278 secno = GET_SEC_FROM_SEG(sbi, start); in f2fs_clear_prefree_segments()
2279 start_segno = GET_SEG_FROM_SEC(sbi, secno); in f2fs_clear_prefree_segments()
[all …]