• Home
  • Raw
  • Download

Lines Matching refs:jd

2170 void gfs2_free_journal_extents(struct gfs2_jdesc *jd)  in gfs2_free_journal_extents()  argument
2174 while(!list_empty(&jd->extent_list)) { in gfs2_free_journal_extents()
2175 jext = list_first_entry(&jd->extent_list, struct gfs2_journal_extent, list); in gfs2_free_journal_extents()
2191 static int gfs2_add_jextent(struct gfs2_jdesc *jd, u64 lblock, u64 dblock, u64 blocks) in gfs2_add_jextent() argument
2195 if (!list_empty(&jd->extent_list)) { in gfs2_add_jextent()
2196 jext = list_last_entry(&jd->extent_list, struct gfs2_journal_extent, list); in gfs2_add_jextent()
2209 list_add_tail(&jext->list, &jd->extent_list); in gfs2_add_jextent()
2210 jd->nr_extents++; in gfs2_add_jextent()
2234 int gfs2_map_journal_extents(struct gfs2_sbd *sdp, struct gfs2_jdesc *jd) in gfs2_map_journal_extents() argument
2238 struct gfs2_inode *ip = GFS2_I(jd->jd_inode); in gfs2_map_journal_extents()
2246 lblock_stop = i_size_read(jd->jd_inode) >> shift; in gfs2_map_journal_extents()
2248 jd->nr_extents = 0; in gfs2_map_journal_extents()
2249 WARN_ON(!list_empty(&jd->extent_list)); in gfs2_map_journal_extents()
2255 rc = gfs2_block_map(jd->jd_inode, lblock, &bh, 0); in gfs2_map_journal_extents()
2258 rc = gfs2_add_jextent(jd, lblock, bh.b_blocknr, bh.b_size >> shift); in gfs2_map_journal_extents()
2266 fs_info(sdp, "journal %d mapped with %u extents in %lldms\n", jd->jd_jid, in gfs2_map_journal_extents()
2267 jd->nr_extents, ktime_ms_delta(end, start)); in gfs2_map_journal_extents()
2272 rc, jd->jd_jid, in gfs2_map_journal_extents()
2273 (unsigned long long)(i_size_read(jd->jd_inode) - size), in gfs2_map_journal_extents()
2274 jd->nr_extents); in gfs2_map_journal_extents()
2278 gfs2_free_journal_extents(jd); in gfs2_map_journal_extents()