Lines Matching refs:jd

62 	struct gfs2_jdesc *jd;  in gfs2_jindex_free()  local
72 jd = list_first_entry(&list, struct gfs2_jdesc, jd_list); in gfs2_jindex_free()
73 gfs2_free_journal_extents(jd); in gfs2_jindex_free()
74 list_del(&jd->jd_list); in gfs2_jindex_free()
75 iput(jd->jd_inode); in gfs2_jindex_free()
76 jd->jd_inode = NULL; in gfs2_jindex_free()
77 kfree(jd); in gfs2_jindex_free()
83 struct gfs2_jdesc *jd; in jdesc_find_i() local
85 list_for_each_entry(jd, head, jd_list) { in jdesc_find_i()
86 if (jd->jd_jid == jid) in jdesc_find_i()
87 return jd; in jdesc_find_i()
94 struct gfs2_jdesc *jd; in gfs2_jdesc_find() local
97 jd = jdesc_find_i(&sdp->sd_jindex_list, jid); in gfs2_jdesc_find()
100 return jd; in gfs2_jdesc_find()
103 int gfs2_jdesc_check(struct gfs2_jdesc *jd) in gfs2_jdesc_check() argument
105 struct gfs2_inode *ip = GFS2_I(jd->jd_inode); in gfs2_jdesc_check()
106 struct gfs2_sbd *sdp = GFS2_SB(jd->jd_inode); in gfs2_jdesc_check()
107 u64 size = i_size_read(jd->jd_inode); in gfs2_jdesc_check()
109 if (gfs2_check_internal_file_size(jd->jd_inode, 8 << 20, BIT(30))) in gfs2_jdesc_check()
112 jd->jd_blocks = size >> sdp->sd_sb.sb_bsize_shift; in gfs2_jdesc_check()
331 struct gfs2_jdesc *jd; in gfs2_lock_fs_check_clean() local
342 list_for_each_entry(jd, &sdp->sd_jindex_list, jd_list) { in gfs2_lock_fs_check_clean()
348 ip = GFS2_I(jd->jd_inode); in gfs2_lock_fs_check_clean()
365 list_for_each_entry(jd, &sdp->sd_jindex_list, jd_list) { in gfs2_lock_fs_check_clean()
366 error = gfs2_jdesc_check(jd); in gfs2_lock_fs_check_clean()
369 error = gfs2_find_jhead(jd, &lh, false); in gfs2_lock_fs_check_clean()
586 struct gfs2_jdesc *jd; in gfs2_put_super() local
595 list_for_each_entry(jd, &sdp->sd_jindex_list, jd_list) { in gfs2_put_super()
596 if (!test_bit(JDF_RECOVERY, &jd->jd_flags)) in gfs2_put_super()
599 wait_on_bit(&jd->jd_flags, JDF_RECOVERY, in gfs2_put_super()