Home
last modified time | relevance | path

Searched refs:gh (Results 1 – 18 of 18) sorted by relevance

/Linux-v5.4/fs/gfs2/
Dglock.h138 struct gfs2_holder *gh; in gfs2_glock_is_locked_by_me() local
144 list_for_each_entry(gh, &gl->gl_holders, gh_list) { in gfs2_glock_is_locked_by_me()
145 if (!test_bit(HIF_HOLDER, &gh->gh_iflags)) in gfs2_glock_is_locked_by_me()
147 if (gh->gh_owner_pid == pid) in gfs2_glock_is_locked_by_me()
150 gh = NULL; in gfs2_glock_is_locked_by_me()
154 return gh; in gfs2_glock_is_locked_by_me()
186 u16 flags, struct gfs2_holder *gh);
188 struct gfs2_holder *gh);
189 extern void gfs2_holder_uninit(struct gfs2_holder *gh);
190 extern int gfs2_glock_nq(struct gfs2_holder *gh);
[all …]
Dglock.c60 static void do_xmote(struct gfs2_glock *gl, struct gfs2_holder *gh, unsigned int target);
282 static inline int may_grant(const struct gfs2_glock *gl, const struct gfs2_holder *gh) in may_grant() argument
285 if ((gh->gh_state == LM_ST_EXCLUSIVE || in may_grant()
286 gh_head->gh_state == LM_ST_EXCLUSIVE) && gh != gh_head) in may_grant()
288 if (gl->gl_state == gh->gh_state) in may_grant()
290 if (gh->gh_flags & GL_EXACT) in may_grant()
293 if (gh->gh_state == LM_ST_SHARED && gh_head->gh_state == LM_ST_SHARED) in may_grant()
295 if (gh->gh_state == LM_ST_DEFERRED && gh_head->gh_state == LM_ST_DEFERRED) in may_grant()
298 if (gl->gl_state != LM_ST_UNLOCKED && (gh->gh_flags & LM_FLAG_ANY)) in may_grant()
303 static void gfs2_holder_wake(struct gfs2_holder *gh) in gfs2_holder_wake() argument
[all …]
Dacl.c62 struct gfs2_holder gh; in gfs2_get_acl() local
68 LM_FLAG_ANY, &gh); in gfs2_get_acl()
75 gfs2_glock_dq_uninit(&gh); in gfs2_get_acl()
111 struct gfs2_holder gh; in gfs2_set_acl() local
124 ret = gfs2_glock_nq_init(ip->i_gl, LM_ST_EXCLUSIVE, 0, &gh); in gfs2_set_acl()
145 gfs2_glock_dq_uninit(&gh); in gfs2_set_acl()
Dfile.c159 struct gfs2_holder gh; in gfs2_get_flags() local
163 gfs2_holder_init(ip->i_gl, LM_ST_SHARED, 0, &gh); in gfs2_get_flags()
164 error = gfs2_glock_nq(&gh); in gfs2_get_flags()
173 gfs2_glock_dq(&gh); in gfs2_get_flags()
175 gfs2_holder_uninit(&gh); in gfs2_get_flags()
222 struct gfs2_holder gh; in do_gfs2_set_flags() local
230 error = gfs2_glock_nq_init(ip->i_gl, LM_ST_EXCLUSIVE, 0, &gh); in do_gfs2_set_flags()
292 gfs2_glock_dq_uninit(&gh); in do_gfs2_set_flags()
428 struct gfs2_holder gh; in gfs2_page_mkwrite() local
440 gfs2_holder_init(ip->i_gl, LM_ST_EXCLUSIVE, 0, &gh); in gfs2_page_mkwrite()
[all …]
Dsuper.c237 struct gfs2_holder gh; in gfs2_statfs_init() local
241 &gh); in gfs2_statfs_init()
272 gfs2_glock_dq_uninit(&gh); in gfs2_statfs_init()
340 struct gfs2_holder gh; in gfs2_statfs_sync() local
346 &gh); in gfs2_statfs_sync()
381 gfs2_glock_dq_uninit(&gh); in gfs2_statfs_sync()
389 struct gfs2_holder gh; member
419 error = gfs2_glock_nq_init(ip->i_gl, LM_ST_SHARED, 0, &lfcc->gh); in gfs2_lock_fs_check_clean()
450 gfs2_glock_dq_uninit(&lfcc->gh); in gfs2_lock_fs_check_clean()
549 struct gfs2_holder gh; in gfs2_dirty_inode() local
[all …]
Dtrace_gfs2.h201 TP_PROTO(const struct gfs2_holder *gh, int first),
203 TP_ARGS(gh, first),
214 __entry->dev = gh->gh_gl->gl_name.ln_sbd->sd_vfs->s_dev;
215 __entry->glnum = gh->gh_gl->gl_name.ln_number;
216 __entry->gltype = gh->gh_gl->gl_name.ln_type;
218 __entry->state = glock_trace_state(gh->gh_state);
231 TP_PROTO(const struct gfs2_holder *gh, int queue),
233 TP_ARGS(gh, queue),
244 __entry->dev = gh->gh_gl->gl_name.ln_sbd->sd_vfs->s_dev;
245 __entry->glnum = gh->gh_gl->gl_name.ln_number;
[all …]
Daops.c520 struct gfs2_holder gh; in gfs2_readpage() local
524 gfs2_holder_init(ip->i_gl, LM_ST_SHARED, 0, &gh); in gfs2_readpage()
525 error = gfs2_glock_nq(&gh); in gfs2_readpage()
534 gfs2_glock_dq(&gh); in gfs2_readpage()
536 gfs2_holder_uninit(&gh); in gfs2_readpage()
605 struct gfs2_holder gh; in gfs2_readpages() local
608 gfs2_holder_init(ip->i_gl, LM_ST_SHARED, 0, &gh); in gfs2_readpages()
609 ret = gfs2_glock_nq(&gh); in gfs2_readpages()
614 gfs2_glock_dq(&gh); in gfs2_readpages()
616 gfs2_holder_uninit(&gh); in gfs2_readpages()
Dexport.c95 struct gfs2_holder gh; in gfs2_get_name() local
112 error = gfs2_glock_nq_init(dip->i_gl, LM_ST_SHARED, 0, &gh); in gfs2_get_name()
118 gfs2_glock_dq_uninit(&gh); in gfs2_get_name()
Dinode.c840 struct gfs2_holder gh; in __gfs2_lookup() local
853 error = gfs2_glock_nq_init(gl, LM_ST_SHARED, LM_FLAG_ANY, &gh); in __gfs2_lookup()
861 gfs2_glock_dq_uninit(&gh); in __gfs2_lookup()
867 gfs2_glock_dq_uninit(&gh); in __gfs2_lookup()
1998 struct gfs2_holder gh; in gfs2_getattr() local
2002 gfs2_holder_mark_uninitialized(&gh); in gfs2_getattr()
2004 error = gfs2_glock_nq_init(ip->i_gl, LM_ST_SHARED, LM_FLAG_ANY, &gh); in gfs2_getattr()
2023 if (gfs2_holder_initialized(&gh)) in gfs2_getattr()
2024 gfs2_glock_dq_uninit(&gh); in gfs2_getattr()
2033 struct gfs2_holder gh; in gfs2_fiemap() local
[all …]
Dxattr.c594 struct gfs2_holder gh; in gfs2_xattr_get() local
600 ret = gfs2_glock_nq_init(ip->i_gl, LM_ST_SHARED, LM_FLAG_ANY, &gh); in gfs2_xattr_get()
604 gfs2_holder_mark_uninitialized(&gh); in gfs2_xattr_get()
607 if (gfs2_holder_initialized(&gh)) in gfs2_xattr_get()
608 gfs2_glock_dq_uninit(&gh); in gfs2_xattr_get()
1222 struct gfs2_holder gh; in gfs2_xattr_set() local
1232 ret = gfs2_glock_nq_init(ip->i_gl, LM_ST_EXCLUSIVE, 0, &gh); in gfs2_xattr_set()
1238 gfs2_holder_mark_uninitialized(&gh); in gfs2_xattr_set()
1241 if (gfs2_holder_initialized(&gh)) in gfs2_xattr_set()
1242 gfs2_glock_dq_uninit(&gh); in gfs2_xattr_set()
[all …]
Drgrp.h34 extern int gfs2_rgrp_go_lock(struct gfs2_holder *gh);
36 extern void gfs2_rgrp_go_unlock(struct gfs2_holder *gh);
Dglops.c427 static int inode_go_lock(struct gfs2_holder *gh) in inode_go_lock() argument
429 struct gfs2_glock *gl = gh->gh_gl; in inode_go_lock()
434 if (!ip || (gh->gh_flags & GL_SKIP)) in inode_go_lock()
443 if (gh->gh_state != LM_ST_DEFERRED) in inode_go_lock()
448 (gh->gh_state == LM_ST_EXCLUSIVE)) { in inode_go_lock()
525 static int freeze_go_xmote_bh(struct gfs2_glock *gl, struct gfs2_holder *gh) in freeze_go_xmote_bh() argument
Dincore.h238 int (*go_xmote_bh) (struct gfs2_glock *gl, struct gfs2_holder *gh);
241 int (*go_lock) (struct gfs2_holder *gh);
242 void (*go_unlock) (struct gfs2_holder *gh);
Drgrp.c1272 int gfs2_rgrp_go_lock(struct gfs2_holder *gh) in gfs2_rgrp_go_lock() argument
1274 struct gfs2_rgrpd *rgd = gh->gh_gl->gl_object; in gfs2_rgrp_go_lock()
1277 if (gh->gh_flags & GL_SKIP && sdp->sd_args.ar_rgrplvb) in gfs2_rgrp_go_lock()
1308 void gfs2_rgrp_go_unlock(struct gfs2_holder *gh) in gfs2_rgrp_go_unlock() argument
1310 struct gfs2_rgrpd *rgd = gh->gh_gl->gl_object; in gfs2_rgrp_go_unlock()
1311 int demote_requested = test_bit(GLF_DEMOTE, &gh->gh_gl->gl_flags) | in gfs2_rgrp_go_unlock()
1312 test_bit(GLF_PENDING_DEMOTE, &gh->gh_gl->gl_flags); in gfs2_rgrp_go_unlock()
1401 struct gfs2_holder gh; in gfs2_fitrim() local
1440 ret = gfs2_glock_nq_init(rgd->rd_gl, LM_ST_EXCLUSIVE, 0, &gh); in gfs2_fitrim()
1452 gfs2_glock_dq_uninit(&gh); in gfs2_fitrim()
[all …]
/Linux-v5.4/drivers/acpi/arm64/
Dgtdt.c41 struct acpi_gtdt_header *gh = platform_timer; in next_platform_timer() local
43 platform_timer += gh->length; in next_platform_timer()
56 struct acpi_gtdt_header *gh = platform_timer; in is_timer_block() local
58 return gh->type == ACPI_GTDT_TYPE_TIMER_BLOCK; in is_timer_block()
63 struct acpi_gtdt_header *gh = platform_timer; in is_non_secure_watchdog() local
66 if (gh->type != ACPI_GTDT_TYPE_WATCHDOG) in is_non_secure_watchdog()
/Linux-v5.4/drivers/net/
Dgeneve.c468 static int geneve_hlen(struct genevehdr *gh) in geneve_hlen() argument
470 return sizeof(*gh) + gh->opt_len * 4; in geneve_hlen()
479 struct genevehdr *gh, *gh2; in geneve_gro_receive() local
486 hlen = off_gnv + sizeof(*gh); in geneve_gro_receive()
487 gh = skb_gro_header_fast(skb, off_gnv); in geneve_gro_receive()
489 gh = skb_gro_header_slow(skb, hlen, off_gnv); in geneve_gro_receive()
490 if (unlikely(!gh)) in geneve_gro_receive()
494 if (gh->ver != GENEVE_VER || gh->oam) in geneve_gro_receive()
496 gh_len = geneve_hlen(gh); in geneve_gro_receive()
500 gh = skb_gro_header_slow(skb, hlen, off_gnv); in geneve_gro_receive()
[all …]
/Linux-v5.4/net/ipv4/
Dip_gre.c288 unsigned char *gh; in erspan_rcv() local
305 gh = skb_network_header(skb) + in erspan_rcv()
307 pkt_md = (struct erspan_metadata *)(gh + gre_hdr_len + in erspan_rcv()
/Linux-v5.4/net/ipv6/
Dip6_gre.c554 unsigned char *gh; in ip6erspan_rcv() local
571 gh = skb_network_header(skb) + in ip6erspan_rcv()
573 pkt_md = (struct erspan_metadata *)(gh + gre_hdr_len + in ip6erspan_rcv()