Lines Matching refs:jd
2173 void gfs2_free_journal_extents(struct gfs2_jdesc *jd) in gfs2_free_journal_extents() argument
2177 while(!list_empty(&jd->extent_list)) { in gfs2_free_journal_extents()
2178 jext = list_first_entry(&jd->extent_list, struct gfs2_journal_extent, list); in gfs2_free_journal_extents()
2194 static int gfs2_add_jextent(struct gfs2_jdesc *jd, u64 lblock, u64 dblock, u64 blocks) in gfs2_add_jextent() argument
2198 if (!list_empty(&jd->extent_list)) { in gfs2_add_jextent()
2199 jext = list_last_entry(&jd->extent_list, struct gfs2_journal_extent, list); in gfs2_add_jextent()
2212 list_add_tail(&jext->list, &jd->extent_list); in gfs2_add_jextent()
2213 jd->nr_extents++; in gfs2_add_jextent()
2237 int gfs2_map_journal_extents(struct gfs2_sbd *sdp, struct gfs2_jdesc *jd) in gfs2_map_journal_extents() argument
2241 struct gfs2_inode *ip = GFS2_I(jd->jd_inode); in gfs2_map_journal_extents()
2249 lblock_stop = i_size_read(jd->jd_inode) >> shift; in gfs2_map_journal_extents()
2251 jd->nr_extents = 0; in gfs2_map_journal_extents()
2252 WARN_ON(!list_empty(&jd->extent_list)); in gfs2_map_journal_extents()
2258 rc = gfs2_block_map(jd->jd_inode, lblock, &bh, 0); in gfs2_map_journal_extents()
2261 rc = gfs2_add_jextent(jd, lblock, bh.b_blocknr, bh.b_size >> shift); in gfs2_map_journal_extents()
2269 fs_info(sdp, "journal %d mapped with %u extents in %lldms\n", jd->jd_jid, in gfs2_map_journal_extents()
2270 jd->nr_extents, ktime_ms_delta(end, start)); in gfs2_map_journal_extents()
2275 rc, jd->jd_jid, in gfs2_map_journal_extents()
2276 (unsigned long long)(i_size_read(jd->jd_inode) - size), in gfs2_map_journal_extents()
2277 jd->nr_extents); in gfs2_map_journal_extents()
2281 gfs2_free_journal_extents(jd); in gfs2_map_journal_extents()