• Home
  • Raw
  • Download

Lines Matching refs:s

14 secno hpfs_search_hotfix_map(struct super_block *s, secno sec)  in hpfs_search_hotfix_map()  argument
17 struct hpfs_sb_info *sbi = hpfs_sb(s); 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() argument
29 struct hpfs_sb_info *sbi = hpfs_sb(s); 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()
71 void *hpfs_map_sector(struct super_block *s, unsigned secno, struct buffer_head **bhp, in hpfs_map_sector() argument
76 hpfs_lock_assert(s); in hpfs_map_sector()
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()
93 void *hpfs_get_sector(struct super_block *s, unsigned secno, struct buffer_head **bhp) in hpfs_get_sector() argument
98 hpfs_lock_assert(s); in hpfs_get_sector()
102 if ((*bhp = bh = sb_getblk(s, hpfs_search_hotfix_map(s, secno))) != NULL) { in hpfs_get_sector()
114 void *hpfs_map_4sectors(struct super_block *s, unsigned secno, struct quad_buffer_head *qbh, in hpfs_map_4sectors() argument
119 hpfs_lock_assert(s); in hpfs_map_4sectors()
128 hpfs_prefetch_sectors(s, secno, 4 + ahead); in hpfs_map_4sectors()
130 if (!hpfs_map_sector(s, secno + 0, &qbh->bh[0], 0)) goto bail0; in hpfs_map_4sectors()
131 if (!hpfs_map_sector(s, secno + 1, &qbh->bh[1], 0)) goto bail1; in hpfs_map_4sectors()
132 if (!hpfs_map_sector(s, secno + 2, &qbh->bh[2], 0)) goto bail2; in hpfs_map_4sectors()
133 if (!hpfs_map_sector(s, secno + 3, &qbh->bh[3], 0)) goto bail3; in hpfs_map_4sectors()
168 void *hpfs_get_4sectors(struct super_block *s, unsigned secno, in hpfs_get_4sectors() argument
173 hpfs_lock_assert(s); in hpfs_get_4sectors()
180 if (!hpfs_get_sector(s, secno + 0, &qbh->bh[0])) goto bail0; in hpfs_get_4sectors()
181 if (!hpfs_get_sector(s, secno + 1, &qbh->bh[1])) goto bail1; in hpfs_get_4sectors()
182 if (!hpfs_get_sector(s, secno + 2, &qbh->bh[2])) goto bail2; in hpfs_get_4sectors()
183 if (!hpfs_get_sector(s, secno + 3, &qbh->bh[3])) goto bail3; in hpfs_get_4sectors()