Home
last modified time | relevance | path

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

/fs/gfs2/
Dtrans.c126 struct gfs2_bufdata *bd; in gfs2_alloc_bufdata() local
128 bd = kmem_cache_zalloc(gfs2_bufdata_cachep, GFP_NOFS | __GFP_NOFAIL); in gfs2_alloc_bufdata()
129 bd->bd_bh = bh; in gfs2_alloc_bufdata()
130 bd->bd_gl = gl; in gfs2_alloc_bufdata()
131 INIT_LIST_HEAD(&bd->bd_list); in gfs2_alloc_bufdata()
132 bh->b_private = bd; in gfs2_alloc_bufdata()
133 return bd; in gfs2_alloc_bufdata()
154 struct gfs2_bufdata *bd; in gfs2_trans_add_data() local
162 bd = bh->b_private; in gfs2_trans_add_data()
163 if (bd == NULL) { in gfs2_trans_add_data()
[all …]
Dlops.c43 struct gfs2_bufdata *bd; in gfs2_pin() local
52 bd = bh->b_private; in gfs2_pin()
57 if (bd->bd_tr) in gfs2_pin()
58 list_move(&bd->bd_ail_st_list, &bd->bd_tr->tr_ail2_list); in gfs2_pin()
62 trace_gfs2_pin(bd, 1); in gfs2_pin()
65 static bool buffer_is_rgrp(const struct gfs2_bufdata *bd) in buffer_is_rgrp() argument
67 return bd->bd_gl->gl_name.ln_type == LM_TYPE_RGRP; in buffer_is_rgrp()
70 static void maybe_release_space(struct gfs2_bufdata *bd) in maybe_release_space() argument
72 struct gfs2_glock *gl = bd->bd_gl; in maybe_release_space()
75 unsigned int index = bd->bd_bh->b_blocknr - gl->gl_name.ln_number; in maybe_release_space()
[all …]
Dlog.c73 static 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()
99 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 …]
Daops.c709 struct gfs2_bufdata *bd; in gfs2_discard() local
714 bd = bh->b_private; in gfs2_discard()
715 if (bd) { in gfs2_discard()
716 if (!list_empty(&bd->bd_list) && !buffer_pinned(bh)) in gfs2_discard()
717 list_del_init(&bd->bd_list); in gfs2_discard()
775 struct gfs2_bufdata *bd; in gfs2_releasepage() local
796 bd = bh->b_private; in gfs2_releasepage()
797 if (bd && bd->bd_tr) in gfs2_releasepage()
807 bd = bh->b_private; in gfs2_releasepage()
808 if (bd) { in gfs2_releasepage()
[all …]
Dmeta_io.c333 struct gfs2_bufdata *bd = bh->b_private; in gfs2_remove_from_journal() local
338 trace_gfs2_pin(bd, 0); in gfs2_remove_from_journal()
340 list_del_init(&bd->bd_list); in gfs2_remove_from_journal()
349 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()
Dtrace_gfs2.h325 TP_PROTO(const struct gfs2_bufdata *bd, int pin),
327 TP_ARGS(bd, pin),
338 __entry->dev = bd->bd_gl->gl_name.ln_sbd->sd_vfs->s_dev;
340 __entry->len = bd->bd_bh->b_size;
341 __entry->block = bd->bd_bh->b_blocknr;
342 __entry->ino = bd->bd_gl->gl_name.ln_number;
Dglops.c58 struct gfs2_bufdata *bd, *tmp; in __gfs2_ail_flush() local
64 list_for_each_entry_safe_reverse(bd, tmp, head, bd_ail_gl_list) { in __gfs2_ail_flush()
67 bh = bd->bd_bh; in __gfs2_ail_flush()
73 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);
Dlog.h79 extern void gfs2_add_revoke(struct gfs2_sbd *sdp, struct gfs2_bufdata *bd);
/fs/nfsd/
Dnfs4state.c817 struct bloom_pair *bd = &blocked_delegations; in delegation_blocked() local
819 if (bd->entries == 0) in delegation_blocked()
821 if (seconds_since_boot() - bd->swap_time > 30) { in delegation_blocked()
823 if (seconds_since_boot() - bd->swap_time > 30) { in delegation_blocked()
824 bd->entries -= bd->old_entries; in delegation_blocked()
825 bd->old_entries = bd->entries; in delegation_blocked()
826 memset(bd->set[bd->new], 0, in delegation_blocked()
827 sizeof(bd->set[0])); in delegation_blocked()
828 bd->new = 1-bd->new; in delegation_blocked()
829 bd->swap_time = seconds_since_boot(); in delegation_blocked()
[all …]