Home
last modified time | relevance | path

Searched refs:gl (Results 1 – 38 of 38) sorted by relevance

/linux-4.1.27/fs/gfs2/
Dglock.c56 struct gfs2_glock *gl; /* current glock struct */ member
60 typedef void (*glock_examiner) (struct gfs2_glock * gl);
62 static void do_xmote(struct gfs2_glock *gl, struct gfs2_holder *gh, unsigned int target);
110 struct gfs2_glock *gl = container_of(rcu, struct gfs2_glock, gl_rcu); in gfs2_glock_dealloc() local
112 if (gl->gl_ops->go_flags & GLOF_ASPACE) { in gfs2_glock_dealloc()
113 kmem_cache_free(gfs2_glock_aspace_cachep, gl); in gfs2_glock_dealloc()
115 kfree(gl->gl_lksb.sb_lvbptr); in gfs2_glock_dealloc()
116 kmem_cache_free(gfs2_glock_cachep, gl); in gfs2_glock_dealloc()
120 void gfs2_glock_free(struct gfs2_glock *gl) in gfs2_glock_free() argument
122 struct gfs2_sbd *sdp = gl->gl_sbd; in gfs2_glock_free()
[all …]
Dglops.c33 static void gfs2_ail_error(struct gfs2_glock *gl, const struct buffer_head *bh) in gfs2_ail_error() argument
35 fs_err(gl->gl_sbd, "AIL buffer %p: blocknr %llu state 0x%08lx mapping %p page state 0x%lx\n", in gfs2_ail_error()
38 fs_err(gl->gl_sbd, "AIL glock %u:%llu mapping %p\n", in gfs2_ail_error()
39 gl->gl_name.ln_type, gl->gl_name.ln_number, in gfs2_ail_error()
40 gfs2_glock2aspace(gl)); in gfs2_ail_error()
41 gfs2_lm_withdraw(gl->gl_sbd, "AIL error\n"); in gfs2_ail_error()
52 static void __gfs2_ail_flush(struct gfs2_glock *gl, bool fsync, in __gfs2_ail_flush() argument
55 struct gfs2_sbd *sdp = gl->gl_sbd; in __gfs2_ail_flush()
56 struct list_head *head = &gl->gl_ail_list; in __gfs2_ail_flush()
70 gfs2_ail_error(gl, bh); in __gfs2_ail_flush()
[all …]
Dglock.h130 void (*lm_put_lock) (struct gfs2_glock *gl);
131 int (*lm_lock) (struct gfs2_glock *gl, unsigned int req_state,
133 void (*lm_cancel) (struct gfs2_glock *gl);
138 static inline struct gfs2_holder *gfs2_glock_is_locked_by_me(struct gfs2_glock *gl) in gfs2_glock_is_locked_by_me() argument
144 spin_lock(&gl->gl_spin); in gfs2_glock_is_locked_by_me()
146 list_for_each_entry(gh, &gl->gl_holders, gh_list) { in gfs2_glock_is_locked_by_me()
154 spin_unlock(&gl->gl_spin); in gfs2_glock_is_locked_by_me()
159 static inline int gfs2_glock_is_held_excl(struct gfs2_glock *gl) in gfs2_glock_is_held_excl() argument
161 return gl->gl_state == LM_ST_EXCLUSIVE; in gfs2_glock_is_held_excl()
164 static inline int gfs2_glock_is_held_dfrd(struct gfs2_glock *gl) in gfs2_glock_is_held_dfrd() argument
[all …]
Dlock_dlm.c73 static inline void gfs2_update_reply_times(struct gfs2_glock *gl) in gfs2_update_reply_times() argument
76 const unsigned gltype = gl->gl_name.ln_type; in gfs2_update_reply_times()
77 unsigned index = test_bit(GLF_BLOCKING, &gl->gl_flags) ? in gfs2_update_reply_times()
82 rtt = ktime_to_ns(ktime_sub(ktime_get_real(), gl->gl_dstamp)); in gfs2_update_reply_times()
83 lks = this_cpu_ptr(gl->gl_sbd->sd_lkstats); in gfs2_update_reply_times()
84 gfs2_update_stats(&gl->gl_stats, index, rtt); /* Local */ in gfs2_update_reply_times()
88 trace_gfs2_glock_lock_time(gl, rtt); in gfs2_update_reply_times()
100 static inline void gfs2_update_request_times(struct gfs2_glock *gl) in gfs2_update_request_times() argument
103 const unsigned gltype = gl->gl_name.ln_type; in gfs2_update_request_times()
108 dstamp = gl->gl_dstamp; in gfs2_update_request_times()
[all …]
Dtrace_gfs2.h91 TP_PROTO(const struct gfs2_glock *gl, unsigned int new_state),
93 TP_ARGS(gl, new_state),
107 __entry->dev = gl->gl_sbd->sd_vfs->s_dev;
108 __entry->glnum = gl->gl_name.ln_number;
109 __entry->gltype = gl->gl_name.ln_type;
110 __entry->cur_state = glock_trace_state(gl->gl_state);
112 __entry->tgt_state = glock_trace_state(gl->gl_target);
113 __entry->dmt_state = glock_trace_state(gl->gl_demote_state);
114 __entry->flags = gl->gl_flags | (gl->gl_object ? (1UL<<GLF_OBJECT) : 0);
130 TP_PROTO(const struct gfs2_glock *gl),
[all …]
Dmain.c50 struct gfs2_glock *gl = foo; in gfs2_init_glock_once() local
52 INIT_HLIST_BL_NODE(&gl->gl_list); in gfs2_init_glock_once()
53 spin_lock_init(&gl->gl_spin); in gfs2_init_glock_once()
54 INIT_LIST_HEAD(&gl->gl_holders); in gfs2_init_glock_once()
55 INIT_LIST_HEAD(&gl->gl_lru); in gfs2_init_glock_once()
56 INIT_LIST_HEAD(&gl->gl_ail_list); in gfs2_init_glock_once()
57 atomic_set(&gl->gl_ail_count, 0); in gfs2_init_glock_once()
58 atomic_set(&gl->gl_revokes, 0); in gfs2_init_glock_once()
63 struct gfs2_glock *gl = foo; in gfs2_init_gl_aspace_once() local
64 struct address_space *mapping = (struct address_space *)(gl + 1); in gfs2_init_gl_aspace_once()
[all …]
Dmeta_io.c114 struct buffer_head *gfs2_getbuf(struct gfs2_glock *gl, u64 blkno, int create) in gfs2_getbuf() argument
116 struct address_space *mapping = gfs2_glock2aspace(gl); in gfs2_getbuf()
117 struct gfs2_sbd *sdp = gl->gl_sbd; in gfs2_getbuf()
182 struct buffer_head *gfs2_meta_new(struct gfs2_glock *gl, u64 blkno) in gfs2_meta_new() argument
185 bh = gfs2_getbuf(gl, blkno, CREATE); in gfs2_meta_new()
200 int gfs2_meta_read(struct gfs2_glock *gl, u64 blkno, int flags, in gfs2_meta_read() argument
203 struct gfs2_sbd *sdp = gl->gl_sbd; in gfs2_meta_read()
211 *bhp = bh = gfs2_getbuf(gl, blkno, CREATE); in gfs2_meta_read()
340 struct gfs2_glock *gl = ip->i_gl; in gfs2_meta_indirect_buffer() local
345 ret = gfs2_meta_read(gl, num, DIO_WAIT, &bh); in gfs2_meta_indirect_buffer()
[all …]
Dtrans.c125 static struct gfs2_bufdata *gfs2_alloc_bufdata(struct gfs2_glock *gl, in gfs2_alloc_bufdata() argument
133 bd->bd_gl = gl; in gfs2_alloc_bufdata()
158 void gfs2_trans_add_data(struct gfs2_glock *gl, struct buffer_head *bh) in gfs2_trans_add_data() argument
161 struct gfs2_sbd *sdp = gl->gl_sbd; in gfs2_trans_add_data()
178 bd = gfs2_alloc_bufdata(gl, bh, &gfs2_databuf_lops); in gfs2_trans_add_data()
182 gfs2_assert(sdp, bd->bd_gl == gl); in gfs2_trans_add_data()
224 void gfs2_trans_add_meta(struct gfs2_glock *gl, struct buffer_head *bh) in gfs2_trans_add_meta() argument
227 struct gfs2_sbd *sdp = gl->gl_sbd; in gfs2_trans_add_meta()
238 bd = gfs2_alloc_bufdata(gl, bh, &gfs2_buf_lops); in gfs2_trans_add_meta()
243 gfs2_assert(sdp, bd->bd_gl == gl); in gfs2_trans_add_meta()
Dlops.c72 struct gfs2_glock *gl = bd->bd_gl; in maybe_release_space() local
73 struct gfs2_sbd *sdp = gl->gl_sbd; in maybe_release_space()
74 struct gfs2_rgrpd *rgd = gl->gl_object; in maybe_release_space()
75 unsigned int index = bd->bd_bh->b_blocknr - gl->gl_name.ln_number; in maybe_release_space()
118 struct gfs2_glock *gl = bd->bd_gl; in gfs2_unpin() local
119 list_add(&bd->bd_ail_gl_list, &gl->gl_ail_list); in gfs2_unpin()
120 atomic_inc(&gl->gl_ail_count); in gfs2_unpin()
536 struct gfs2_glock *gl = ip->i_gl; in buf_lo_scan_elements() local
559 bh_ip = gfs2_meta_new(gl, blkno); in buf_lo_scan_elements()
585 static void gfs2_meta_sync(struct gfs2_glock *gl) in gfs2_meta_sync() argument
[all …]
Dmeta_io.h54 extern struct buffer_head *gfs2_meta_new(struct gfs2_glock *gl, u64 blkno);
55 extern int gfs2_meta_read(struct gfs2_glock *gl, u64 blkno, int flags,
58 extern struct buffer_head *gfs2_getbuf(struct gfs2_glock *gl, u64 blkno,
72 struct buffer_head *gfs2_meta_ra(struct gfs2_glock *gl, u64 dblock, u32 extlen);
Dincore.h39 typedef void (*gfs2_glop_bh_t) (struct gfs2_glock *gl, unsigned int ret);
216 void (*go_sync) (struct gfs2_glock *gl);
217 int (*go_xmote_bh) (struct gfs2_glock *gl, struct gfs2_holder *gh);
218 void (*go_inval) (struct gfs2_glock *gl, int flags);
219 int (*go_demote_ok) (const struct gfs2_glock *gl);
222 void (*go_dump)(struct seq_file *seq, const struct gfs2_glock *gl);
223 void (*go_callback)(struct gfs2_glock *gl, bool remote);
829 static inline void gfs2_glstats_inc(struct gfs2_glock *gl, int which) in gfs2_glstats_inc() argument
831 gl->gl_stats.stats[which]++; in gfs2_glstats_inc()
834 static inline void gfs2_sbstats_inc(const struct gfs2_glock *gl, int which) in gfs2_sbstats_inc() argument
[all …]
Dtrans.h42 extern void gfs2_trans_add_data(struct gfs2_glock *gl, struct buffer_head *bh);
43 extern void gfs2_trans_add_meta(struct gfs2_glock *gl, struct buffer_head *bh);
Drgrp.c723 struct gfs2_glock *gl; in gfs2_clear_rgrpd() local
727 gl = rgd->rd_gl; in gfs2_clear_rgrpd()
731 if (gl) { in gfs2_clear_rgrpd()
732 spin_lock(&gl->gl_spin); in gfs2_clear_rgrpd()
733 gl->gl_object = NULL; in gfs2_clear_rgrpd()
734 spin_unlock(&gl->gl_spin); in gfs2_clear_rgrpd()
735 gfs2_glock_add_to_lru(gl); in gfs2_clear_rgrpd()
736 gfs2_glock_put(gl); in gfs2_clear_rgrpd()
1032 struct gfs2_glock *gl = ip->i_gl; in gfs2_rindex_update() local
1039 if (!gfs2_glock_is_locked_by_me(gl)) { in gfs2_rindex_update()
[all …]
Dlog.c98 struct gfs2_glock *gl = NULL; in gfs2_ail1_start_one() local
117 if (gl == bd->bd_gl) in gfs2_ail1_start_one()
119 gl = bd->bd_gl; in gfs2_ail1_start_one()
581 struct gfs2_glock *gl = bd->bd_gl; in gfs2_add_revoke() local
589 atomic_inc(&gl->gl_revokes); in gfs2_add_revoke()
590 set_bit(GLF_LFLUSH, &gl->gl_flags); in gfs2_add_revoke()
704 void gfs2_log_flush(struct gfs2_sbd *sdp, struct gfs2_glock *gl, in gfs2_log_flush() argument
713 if (gl && !test_bit(GLF_LFLUSH, &gl->gl_flags)) { in gfs2_log_flush()
Dglops.h28 extern void gfs2_ail_flush(struct gfs2_glock *gl, bool fsync);
Dlog.h74 extern void gfs2_log_flush(struct gfs2_sbd *sdp, struct gfs2_glock *gl,
Dfile.c1019 struct gfs2_glock *gl; in do_flock() local
1030 gl = fl_gh->gh_gl; in do_flock()
1031 if (gl) { in do_flock()
1040 &gfs2_flock_glops, CREATE, &gl); in do_flock()
1043 gfs2_holder_init(gl, state, flags, fl_gh); in do_flock()
1044 gfs2_glock_put(gl); in do_flock()
Dsys.c216 struct gfs2_glock *gl; in demote_rq_store() local
251 rv = gfs2_glock_get(sdp, glnum, glops, 0, &gl); in demote_rq_store()
254 gfs2_glock_cb(gl, glmode); in demote_rq_store()
255 gfs2_glock_put(gl); in demote_rq_store()
Drgrp.h73 extern void gfs2_rgrp_dump(struct seq_file *seq, const struct gfs2_glock *gl);
Dsuper.c1303 struct gfs2_glock *gl = ip->i_iopen_gh.gh_gl; in gfs2_drop_inode() local
1304 if (gl && test_bit(GLF_DEMOTE, &gl->gl_flags)) in gfs2_drop_inode()
1428 struct gfs2_glock *gl = ip->i_gl; in gfs2_final_release_pages() local
1433 if (atomic_read(&gl->gl_revokes) == 0) { in gfs2_final_release_pages()
1434 clear_bit(GLF_LFLUSH, &gl->gl_flags); in gfs2_final_release_pages()
1435 clear_bit(GLF_DIRTY, &gl->gl_flags); in gfs2_final_release_pages()
Dbmap.c273 static void gfs2_metapath_ra(struct gfs2_glock *gl, in gfs2_metapath_ra() argument
284 rabh = gfs2_getbuf(gl, be64_to_cpu(*t), CREATE); in gfs2_metapath_ra()
400 struct gfs2_glock *gl, unsigned int i, in gfs2_indirect_init() argument
408 mp->mp_bh[i] = gfs2_meta_new(gl, bn); in gfs2_indirect_init()
409 gfs2_trans_add_meta(gl, mp->mp_bh[i]); in gfs2_indirect_init()
Drecovery.c36 struct gfs2_glock *gl = ip->i_gl; in gfs2_replay_read_block() local
50 *bh = gfs2_meta_ra(gl, dblock, extlen); in gfs2_replay_read_block()
Dinode.c834 struct gfs2_glock *gl; in __gfs2_lookup() local
845 gl = GFS2_I(inode)->i_gl; in __gfs2_lookup()
846 error = gfs2_glock_nq_init(gl, LM_ST_SHARED, LM_FLAG_ANY, &gh); in __gfs2_lookup()
Ddir.c1393 struct gfs2_glock *gl = ip->i_gl; in gfs2_dir_readahead() local
1413 bh = gfs2_getbuf(gl, blocknr, 1); in gfs2_dir_readahead()
/linux-4.1.27/drivers/scsi/cxgbi/
Dlibcxgbi.c1267 struct cxgbi_gather_list *gl, unsigned int gidx) in cxgbi_ddp_ppod_set() argument
1273 ppod->addr[i] = gidx < gl->nelem ? in cxgbi_ddp_ppod_set()
1274 cpu_to_be64(gl->phys_addr[gidx]) : 0ULL; in cxgbi_ddp_ppod_set()
1288 struct cxgbi_gather_list *gl) in ddp_find_unused_entries() argument
1308 ddp->gl_map[k] = gl; in ddp_find_unused_entries()
1330 struct cxgbi_gather_list *gl) in ddp_gl_unmap() argument
1334 for (i = 0; i < gl->nelem; i++) in ddp_gl_unmap()
1335 dma_unmap_page(&pdev->dev, gl->phys_addr[i], PAGE_SIZE, in ddp_gl_unmap()
1340 struct cxgbi_gather_list *gl) in ddp_gl_map() argument
1344 for (i = 0; i < gl->nelem; i++) { in ddp_gl_map()
[all …]
/linux-4.1.27/drivers/net/ethernet/chelsio/cxgb4vf/
Dsge.c1457 const struct pkt_gl *gl, in copy_frags() argument
1463 __skb_fill_page_desc(skb, 0, gl->frags[0].page, in copy_frags()
1464 gl->frags[0].offset + offset, in copy_frags()
1465 gl->frags[0].size - offset); in copy_frags()
1466 skb_shinfo(skb)->nr_frags = gl->nfrags; in copy_frags()
1467 for (i = 1; i < gl->nfrags; i++) in copy_frags()
1468 __skb_fill_page_desc(skb, i, gl->frags[i].page, in copy_frags()
1469 gl->frags[i].offset, in copy_frags()
1470 gl->frags[i].size); in copy_frags()
1473 get_page(gl->frags[gl->nfrags - 1].page); in copy_frags()
[all …]
Dcxgb4vf_main.c429 const struct pkt_gl *gl) in fwevtq_handler() argument
/linux-4.1.27/drivers/net/ethernet/chelsio/cxgb4/
Dsge.c1694 const struct pkt_gl *gl, unsigned int offset) in copy_frags() argument
1699 __skb_fill_page_desc(skb, 0, gl->frags[0].page, in copy_frags()
1700 gl->frags[0].offset + offset, in copy_frags()
1701 gl->frags[0].size - offset); in copy_frags()
1702 skb_shinfo(skb)->nr_frags = gl->nfrags; in copy_frags()
1703 for (i = 1; i < gl->nfrags; i++) in copy_frags()
1704 __skb_fill_page_desc(skb, i, gl->frags[i].page, in copy_frags()
1705 gl->frags[i].offset, in copy_frags()
1706 gl->frags[i].size); in copy_frags()
1709 get_page(gl->frags[gl->nfrags - 1].page); in copy_frags()
[all …]
Dcxgb4_uld.h273 const struct pkt_gl *gl);
296 struct sk_buff *cxgb4_pktgl_to_skb(const struct pkt_gl *gl,
Dcxgb4.h476 const struct pkt_gl *gl);
1053 const struct pkt_gl *gl);
Dcxgb4_main.c589 const struct pkt_gl *gl) in fwevtq_handler() argument
681 const struct pkt_gl *gl) in uldrx_handler() argument
691 if (ulds[q->uld].rx_handler(q->adap->uld_handle[q->uld], rsp, gl)) { in uldrx_handler()
695 if (gl == NULL) in uldrx_handler()
697 else if (gl == CXGB4_MSG_AN) in uldrx_handler()
/linux-4.1.27/drivers/infiniband/hw/cxgb4/
Ddevice.c1067 static inline struct sk_buff *copy_gl_to_skb_pkt(const struct pkt_gl *gl, in copy_gl_to_skb_pkt() argument
1080 skb = alloc_skb(gl->tot_len + sizeof(struct cpl_pass_accept_req) + in copy_gl_to_skb_pkt()
1085 __skb_put(skb, gl->tot_len + sizeof(struct cpl_pass_accept_req) + in copy_gl_to_skb_pkt()
1100 gl->va + pktshift, in copy_gl_to_skb_pkt()
1101 gl->tot_len - pktshift); in copy_gl_to_skb_pkt()
1105 static inline int recv_rx_pkt(struct c4iw_dev *dev, const struct pkt_gl *gl, in recv_rx_pkt() argument
1114 skb = copy_gl_to_skb_pkt(gl , rsp, dev->rdev.lldi.sge_pktshift); in recv_rx_pkt()
1131 const struct pkt_gl *gl) in c4iw_uld_rx_handler() argument
1138 if (gl == NULL) { in c4iw_uld_rx_handler()
1147 } else if (gl == CXGB4_MSG_AN) { in c4iw_uld_rx_handler()
[all …]
/linux-4.1.27/Documentation/DocBook/media/
Dcrop.gif.b6495 UdmO6fP+wPVuJf5+7/uu8BXw8BmP8QrP7x0/AR0/8gl/8CKf8fhu8hpf8h4P8iHfuXpM7gAw8wBQ
/linux-4.1.27/drivers/scsi/cxgbi/cxgb4i/
Dcxgb4i.c1551 struct cxgbi_gather_list *gl, in ddp_ppod_write_idata() argument
1580 if (!hdr && !gl) in ddp_ppod_write_idata()
1583 cxgbi_ddp_ppod_set(ppod, hdr, gl, gl_pidx); in ddp_ppod_write_idata()
1592 struct cxgbi_gather_list *gl) in ddp_set_map() argument
1602 idx, cnt, gl, 4 * i); in ddp_set_map()
/linux-4.1.27/arch/sparc/include/asm/
Dhypervisor.h1217 unsigned char gl; /* Global register level */ member
/linux-4.1.27/tools/perf/util/
Dprobe-finder.c972 static int pubname_search_cb(Dwarf *dbg, Dwarf_Global *gl, void *data) in pubname_search_cb() argument
976 if (dwarf_offdie(dbg, gl->die_offset, param->sp_die)) { in pubname_search_cb()
981 if (!dwarf_offdie(dbg, gl->cu_offset, param->cu_die)) in pubname_search_cb()
/linux-4.1.27/drivers/scsi/cxgbi/cxgb3i/
Dcxgb3i.c1083 struct cxgbi_gather_list *gl) in ddp_set_map() argument
1092 csk, idx, npods, gl); in ddp_set_map()
1104 hdr, gl, i * PPOD_PAGES_MAX); in ddp_set_map()
/linux-4.1.27/Documentation/filesystems/
D9p.txt29 http://goo.gl/3WPDg