• Home
  • Raw
  • Download

Lines Matching refs:secno

13 secno hpfs_search_hotfix_map(struct super_block *s, secno sec)  in hpfs_search_hotfix_map()
25 unsigned hpfs_search_hotfix_map_for_range(struct super_block *s, secno sec, unsigned n) in hpfs_search_hotfix_map_for_range()
37 void hpfs_prefetch_sectors(struct super_block *s, unsigned secno, int n) in hpfs_prefetch_sectors() argument
42 if (n <= 0 || unlikely(secno >= hpfs_sb(s)->sb_fs_size)) in hpfs_prefetch_sectors()
45 if (unlikely(hpfs_search_hotfix_map_for_range(s, secno, n) != n)) in hpfs_prefetch_sectors()
48 bh = sb_find_get_block(s, secno); in hpfs_prefetch_sectors()
59 if (unlikely(secno >= hpfs_sb(s)->sb_fs_size)) in hpfs_prefetch_sectors()
61 sb_breadahead(s, secno); in hpfs_prefetch_sectors()
62 secno++; in hpfs_prefetch_sectors()
70 void *hpfs_map_sector(struct super_block *s, unsigned secno, struct buffer_head **bhp, in hpfs_map_sector() argument
77 hpfs_prefetch_sectors(s, secno, ahead); in hpfs_map_sector()
81 *bhp = bh = sb_bread(s, hpfs_search_hotfix_map(s, secno)); in hpfs_map_sector()
92 void *hpfs_get_sector(struct super_block *s, unsigned secno, struct buffer_head **bhp) in hpfs_get_sector() argument
101 if ((*bhp = bh = sb_getblk(s, hpfs_search_hotfix_map(s, secno))) != NULL) { in hpfs_get_sector()
113 void *hpfs_map_4sectors(struct super_block *s, unsigned secno, struct quad_buffer_head *qbh, in hpfs_map_4sectors() argument
122 if (secno & 3) { in hpfs_map_4sectors()
127 hpfs_prefetch_sectors(s, secno, 4 + ahead); in hpfs_map_4sectors()
129 if (!hpfs_map_sector(s, secno + 0, &qbh->bh[0], 0)) goto bail0; in hpfs_map_4sectors()
130 if (!hpfs_map_sector(s, secno + 1, &qbh->bh[1], 0)) goto bail1; in hpfs_map_4sectors()
131 if (!hpfs_map_sector(s, secno + 2, &qbh->bh[2], 0)) goto bail2; in hpfs_map_4sectors()
132 if (!hpfs_map_sector(s, secno + 3, &qbh->bh[3], 0)) goto bail3; in hpfs_map_4sectors()
167 void *hpfs_get_4sectors(struct super_block *s, unsigned secno, in hpfs_get_4sectors() argument
174 if (secno & 3) { in hpfs_get_4sectors()
179 if (!hpfs_get_sector(s, secno + 0, &qbh->bh[0])) goto bail0; in hpfs_get_4sectors()
180 if (!hpfs_get_sector(s, secno + 1, &qbh->bh[1])) goto bail1; in hpfs_get_4sectors()
181 if (!hpfs_get_sector(s, secno + 2, &qbh->bh[2])) goto bail2; in hpfs_get_4sectors()
182 if (!hpfs_get_sector(s, secno + 3, &qbh->bh[3])) goto bail3; in hpfs_get_4sectors()