Home
last modified time | relevance | path

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

/fs/gfs2/
Dtrans.c166 struct gfs2_bufdata *bd; in gfs2_alloc_bufdata() local
168 bd = kmem_cache_zalloc(gfs2_bufdata_cachep, GFP_NOFS | __GFP_NOFAIL); in gfs2_alloc_bufdata()
169 bd->bd_bh = bh; in gfs2_alloc_bufdata()
170 bd->bd_gl = gl; in gfs2_alloc_bufdata()
171 INIT_LIST_HEAD(&bd->bd_list); in gfs2_alloc_bufdata()
172 INIT_LIST_HEAD(&bd->bd_ail_st_list); in gfs2_alloc_bufdata()
173 INIT_LIST_HEAD(&bd->bd_ail_gl_list); in gfs2_alloc_bufdata()
174 bh->b_private = bd; in gfs2_alloc_bufdata()
175 return bd; in gfs2_alloc_bufdata()
196 struct gfs2_bufdata *bd; in gfs2_trans_add_data() local
[all …]
Dlog.c74 void gfs2_remove_from_ail(struct gfs2_bufdata *bd) in gfs2_remove_from_ail() argument
76 bd->bd_tr = NULL; in gfs2_remove_from_ail()
77 list_del_init(&bd->bd_ail_st_list); in gfs2_remove_from_ail()
78 list_del_init(&bd->bd_ail_gl_list); in gfs2_remove_from_ail()
79 atomic_dec(&bd->bd_gl->gl_ail_count); in gfs2_remove_from_ail()
80 brelse(bd->bd_bh); in gfs2_remove_from_ail()
99 struct gfs2_bufdata *bd, *s; in gfs2_ail1_start_one() local
103 list_for_each_entry_safe_reverse(bd, s, &tr->tr_ail1_list, bd_ail_st_list) { in gfs2_ail1_start_one()
104 bh = bd->bd_bh; in gfs2_ail1_start_one()
106 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.c649 struct gfs2_bufdata *bd; in gfs2_discard() local
654 bd = bh->b_private; in gfs2_discard()
655 if (bd) { in gfs2_discard()
656 if (!list_empty(&bd->bd_list) && !buffer_pinned(bh)) in gfs2_discard()
657 list_del_init(&bd->bd_list); in gfs2_discard()
718 struct gfs2_bufdata *bd; in gfs2_releasepage() local
738 bd = bh->b_private; in gfs2_releasepage()
739 if (bd && bd->bd_tr) in gfs2_releasepage()
748 bd = bh->b_private; in gfs2_releasepage()
749 if (bd) { in gfs2_releasepage()
[all …]
Dmeta_io.c340 struct gfs2_bufdata *bd = bh->b_private; in gfs2_remove_from_journal() local
345 trace_gfs2_pin(bd, 0); in gfs2_remove_from_journal()
347 list_del_init(&bd->bd_list); in gfs2_remove_from_journal()
356 if (bd) { in gfs2_remove_from_journal()
357 if (bd->bd_tr) { in gfs2_remove_from_journal()
358 gfs2_trans_add_revoke(sdp, bd); in gfs2_remove_from_journal()
361 kmem_cache_free(gfs2_bufdata_cachep, bd); in gfs2_remove_from_journal()
362 } else if (!list_empty(&bd->bd_ail_st_list) && in gfs2_remove_from_journal()
363 !list_empty(&bd->bd_ail_gl_list)) { in gfs2_remove_from_journal()
364 gfs2_remove_from_ail(bd); in gfs2_remove_from_journal()
[all …]
Dlog.h75 extern void gfs2_remove_from_ail(struct gfs2_bufdata *bd);
93 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.c64 struct gfs2_bufdata *bd, *tmp; in __gfs2_ail_flush() local
70 list_for_each_entry_safe_reverse(bd, tmp, head, bd_ail_gl_list) { in __gfs2_ail_flush()
73 bh = bd->bd_bh; in __gfs2_ail_flush()
79 gfs2_trans_add_revoke(sdp, bd); in __gfs2_ail_flush()
Dtrans.h46 extern void gfs2_trans_add_revoke(struct gfs2_sbd *sdp, struct gfs2_bufdata *bd);
/fs/nfsd/
Dnfs4state.c1009 struct bloom_pair *bd = &blocked_delegations; in delegation_blocked() local
1011 if (bd->entries == 0) in delegation_blocked()
1013 if (ktime_get_seconds() - bd->swap_time > 30) { in delegation_blocked()
1015 if (ktime_get_seconds() - bd->swap_time > 30) { in delegation_blocked()
1016 bd->entries -= bd->old_entries; in delegation_blocked()
1017 bd->old_entries = bd->entries; in delegation_blocked()
1018 memset(bd->set[bd->new], 0, in delegation_blocked()
1019 sizeof(bd->set[0])); in delegation_blocked()
1020 bd->new = 1-bd->new; in delegation_blocked()
1021 bd->swap_time = ktime_get_seconds(); in delegation_blocked()
[all …]