Home
last modified time | relevance | path

Searched refs:bd (Results 1 – 10 of 10) sorted by relevance

/fs/gfs2/
Dtrans.c131 struct gfs2_bufdata *bd; in gfs2_alloc_bufdata() local
133 bd = kmem_cache_zalloc(gfs2_bufdata_cachep, GFP_NOFS | __GFP_NOFAIL); in gfs2_alloc_bufdata()
134 bd->bd_bh = bh; in gfs2_alloc_bufdata()
135 bd->bd_gl = gl; in gfs2_alloc_bufdata()
136 INIT_LIST_HEAD(&bd->bd_list); in gfs2_alloc_bufdata()
137 INIT_LIST_HEAD(&bd->bd_ail_st_list); in gfs2_alloc_bufdata()
138 INIT_LIST_HEAD(&bd->bd_ail_gl_list); in gfs2_alloc_bufdata()
139 bh->b_private = bd; in gfs2_alloc_bufdata()
140 return bd; in gfs2_alloc_bufdata()
161 struct gfs2_bufdata *bd; in gfs2_trans_add_data() local
[all …]
Dlog.c73 void gfs2_remove_from_ail(struct gfs2_bufdata *bd) in gfs2_remove_from_ail() argument
75 bd->bd_tr = NULL; in gfs2_remove_from_ail()
76 list_del_init(&bd->bd_ail_st_list); in gfs2_remove_from_ail()
77 list_del_init(&bd->bd_ail_gl_list); in gfs2_remove_from_ail()
78 atomic_dec(&bd->bd_gl->gl_ail_count); in gfs2_remove_from_ail()
79 brelse(bd->bd_bh); in gfs2_remove_from_ail()
98 struct gfs2_bufdata *bd, *s; in gfs2_ail1_start_one() local
102 list_for_each_entry_safe_reverse(bd, s, &tr->tr_ail1_list, bd_ail_st_list) { in gfs2_ail1_start_one()
103 bh = bd->bd_bh; in gfs2_ail1_start_one()
105 gfs2_assert(sdp, bd->bd_tr == tr); in gfs2_ail1_start_one()
[all …]
Dlops.c44 struct gfs2_bufdata *bd; in gfs2_pin() local
53 bd = bh->b_private; in gfs2_pin()
58 if (bd->bd_tr) in gfs2_pin()
59 list_move(&bd->bd_ail_st_list, &bd->bd_tr->tr_ail2_list); in gfs2_pin()
63 trace_gfs2_pin(bd, 1); in gfs2_pin()
66 static bool buffer_is_rgrp(const struct gfs2_bufdata *bd) in buffer_is_rgrp() argument
68 return bd->bd_gl->gl_name.ln_type == LM_TYPE_RGRP; in buffer_is_rgrp()
71 static void maybe_release_space(struct gfs2_bufdata *bd) in maybe_release_space() argument
73 struct gfs2_glock *gl = bd->bd_gl; in maybe_release_space()
76 unsigned int index = bd->bd_bh->b_blocknr - gl->gl_name.ln_number; in maybe_release_space()
[all …]
Daops.c657 struct gfs2_bufdata *bd; in gfs2_discard() local
662 bd = bh->b_private; in gfs2_discard()
663 if (bd) { in gfs2_discard()
664 if (!list_empty(&bd->bd_list) && !buffer_pinned(bh)) in gfs2_discard()
665 list_del_init(&bd->bd_list); in gfs2_discard()
726 struct gfs2_bufdata *bd; in gfs2_releasepage() local
746 bd = bh->b_private; in gfs2_releasepage()
747 if (bd && bd->bd_tr) in gfs2_releasepage()
756 bd = bh->b_private; in gfs2_releasepage()
757 if (bd) { in gfs2_releasepage()
[all …]
Dmeta_io.c334 struct gfs2_bufdata *bd = bh->b_private; in gfs2_remove_from_journal() local
339 trace_gfs2_pin(bd, 0); in gfs2_remove_from_journal()
341 list_del_init(&bd->bd_list); in gfs2_remove_from_journal()
350 if (bd) { in gfs2_remove_from_journal()
351 if (bd->bd_tr) { in gfs2_remove_from_journal()
352 gfs2_trans_add_revoke(sdp, bd); in gfs2_remove_from_journal()
355 kmem_cache_free(gfs2_bufdata_cachep, bd); in gfs2_remove_from_journal()
356 } else if (!list_empty(&bd->bd_ail_st_list) && in gfs2_remove_from_journal()
357 !list_empty(&bd->bd_ail_gl_list)) { in gfs2_remove_from_journal()
358 gfs2_remove_from_ail(bd); in gfs2_remove_from_journal()
[all …]
Dlog.h66 extern void gfs2_remove_from_ail(struct gfs2_bufdata *bd);
79 extern void gfs2_add_revoke(struct gfs2_sbd *sdp, struct gfs2_bufdata *bd);
Dtrace_gfs2.h324 TP_PROTO(const struct gfs2_bufdata *bd, int pin),
326 TP_ARGS(bd, pin),
337 __entry->dev = bd->bd_gl->gl_name.ln_sbd->sd_vfs->s_dev;
339 __entry->len = bd->bd_bh->b_size;
340 __entry->block = bd->bd_bh->b_blocknr;
341 __entry->ino = bd->bd_gl->gl_name.ln_number;
Dglops.c61 struct gfs2_bufdata *bd, *tmp; in __gfs2_ail_flush() local
67 list_for_each_entry_safe_reverse(bd, tmp, head, bd_ail_gl_list) { in __gfs2_ail_flush()
70 bh = bd->bd_bh; in __gfs2_ail_flush()
76 gfs2_trans_add_revoke(sdp, bd); in __gfs2_ail_flush()
Dtrans.h43 extern void gfs2_trans_add_revoke(struct gfs2_sbd *sdp, struct gfs2_bufdata *bd);
/fs/nfsd/
Dnfs4state.c891 struct bloom_pair *bd = &blocked_delegations; in delegation_blocked() local
893 if (bd->entries == 0) in delegation_blocked()
895 if (ktime_get_seconds() - bd->swap_time > 30) { in delegation_blocked()
897 if (ktime_get_seconds() - bd->swap_time > 30) { in delegation_blocked()
898 bd->entries -= bd->old_entries; in delegation_blocked()
899 bd->old_entries = bd->entries; in delegation_blocked()
900 memset(bd->set[bd->new], 0, in delegation_blocked()
901 sizeof(bd->set[0])); in delegation_blocked()
902 bd->new = 1-bd->new; in delegation_blocked()
903 bd->swap_time = ktime_get_seconds(); in delegation_blocked()
[all …]