Lines Matching refs:secno
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
74 if ((*bhp = bh = sb_getblk(s, secno)) != NULL) { in hpfs_get_sector()
86 void *hpfs_map_4sectors(struct super_block *s, unsigned secno, struct quad_buffer_head *qbh, in hpfs_map_4sectors() argument
95 if (secno & 3) { in hpfs_map_4sectors()
100 hpfs_prefetch_sectors(s, secno, 4 + ahead); in hpfs_map_4sectors()
102 if (!(qbh->bh[0] = sb_bread(s, secno + 0))) goto bail0; in hpfs_map_4sectors()
103 if (!(qbh->bh[1] = sb_bread(s, secno + 1))) goto bail1; in hpfs_map_4sectors()
104 if (!(qbh->bh[2] = sb_bread(s, secno + 2))) goto bail2; in hpfs_map_4sectors()
105 if (!(qbh->bh[3] = sb_bread(s, secno + 3))) goto bail3; in hpfs_map_4sectors()
140 void *hpfs_get_4sectors(struct super_block *s, unsigned secno, in hpfs_get_4sectors() argument
147 if (secno & 3) { in hpfs_get_4sectors()
152 if (!hpfs_get_sector(s, secno + 0, &qbh->bh[0])) goto bail0; in hpfs_get_4sectors()
153 if (!hpfs_get_sector(s, secno + 1, &qbh->bh[1])) goto bail1; in hpfs_get_4sectors()
154 if (!hpfs_get_sector(s, secno + 2, &qbh->bh[2])) goto bail2; in hpfs_get_4sectors()
155 if (!hpfs_get_sector(s, secno + 3, &qbh->bh[3])) goto bail3; in hpfs_get_4sectors()