Home
last modified time | relevance | path

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

/Linux-v6.1/fs/gfs2/
Dglock.h150 struct gfs2_holder *gh; in gfs2_glock_is_locked_by_me() local
156 list_for_each_entry(gh, &gl->gl_holders, gh_list) { in gfs2_glock_is_locked_by_me()
157 if (!test_bit(HIF_HOLDER, &gh->gh_iflags)) in gfs2_glock_is_locked_by_me()
159 if (test_bit(HIF_MAY_DEMOTE, &gh->gh_iflags)) in gfs2_glock_is_locked_by_me()
161 if (gh->gh_owner_pid == pid) in gfs2_glock_is_locked_by_me()
164 gh = NULL; in gfs2_glock_is_locked_by_me()
168 return gh; in gfs2_glock_is_locked_by_me()
204 u16 flags, struct gfs2_holder *gh,
207 u16 flags, struct gfs2_holder *gh) { in gfs2_holder_init() argument
208 __gfs2_holder_init(gl, state, flags, gh, _RET_IP_); in gfs2_holder_init()
[all …]
Dglock.c63 static void do_xmote(struct gfs2_glock *gl, struct gfs2_holder *gh, unsigned int target);
64 static void __gfs2_glock_dq(struct gfs2_holder *gh);
333 struct gfs2_holder *gh) in may_grant() argument
347 return gh->gh_state == LM_ST_EXCLUSIVE && in may_grant()
349 (gh->gh_flags & LM_FLAG_NODE_SCOPE); in may_grant()
353 return gh->gh_state == current_gh->gh_state; in may_grant()
360 if (gl->gl_state == gh->gh_state) in may_grant()
362 if (gh->gh_flags & GL_EXACT) in may_grant()
365 return gh->gh_state == LM_ST_SHARED || in may_grant()
366 gh->gh_state == LM_ST_DEFERRED; in may_grant()
[all …]
Dfile.c161 struct gfs2_holder gh; in gfs2_fileattr_get() local
168 gfs2_holder_init(ip->i_gl, LM_ST_SHARED, 0, &gh); in gfs2_fileattr_get()
169 error = gfs2_glock_nq(&gh); in gfs2_fileattr_get()
177 gfs2_glock_dq(&gh); in gfs2_fileattr_get()
179 gfs2_holder_uninit(&gh); in gfs2_fileattr_get()
223 struct gfs2_holder gh; in do_gfs2_set_flags() local
227 error = gfs2_glock_nq_init(ip->i_gl, LM_ST_EXCLUSIVE, 0, &gh); in do_gfs2_set_flags()
272 gfs2_glock_dq_uninit(&gh); in do_gfs2_set_flags()
424 struct gfs2_holder gh; in gfs2_page_mkwrite() local
431 gfs2_holder_init(ip->i_gl, LM_ST_EXCLUSIVE, 0, &gh); in gfs2_page_mkwrite()
[all …]
Dsuper.c183 struct gfs2_holder gh; in gfs2_statfs_init() local
187 &gh); in gfs2_statfs_init()
212 gfs2_glock_dq_uninit(&gh); in gfs2_statfs_init()
272 struct gfs2_holder gh; in gfs2_statfs_sync() local
277 &gh); in gfs2_statfs_sync()
306 gfs2_glock_dq_uninit(&gh); in gfs2_statfs_sync()
313 struct gfs2_holder gh; member
340 error = gfs2_glock_nq_init(ip->i_gl, LM_ST_SHARED, 0, &lfcc->gh); in gfs2_lock_fs_check_clean()
374 gfs2_glock_dq_uninit(&lfcc->gh); in gfs2_lock_fs_check_clean()
473 struct gfs2_holder gh; in gfs2_dirty_inode() local
[all …]
Dacl.c63 struct gfs2_holder gh; in gfs2_get_acl() local
72 LM_FLAG_ANY, &gh); in gfs2_get_acl()
79 gfs2_glock_dq_uninit(&gh); in gfs2_get_acl()
116 struct gfs2_holder gh; in gfs2_set_acl() local
129 ret = gfs2_glock_nq_init(ip->i_gl, LM_ST_EXCLUSIVE, 0, &gh); in gfs2_set_acl()
150 gfs2_glock_dq_uninit(&gh); in gfs2_set_acl()
Dtrace_gfs2.h200 TP_PROTO(const struct gfs2_holder *gh),
202 TP_ARGS(gh),
212 __entry->dev = gh->gh_gl->gl_name.ln_sbd->sd_vfs->s_dev;
213 __entry->glnum = gh->gh_gl->gl_name.ln_number;
214 __entry->gltype = gh->gh_gl->gl_name.ln_type;
215 __entry->state = glock_trace_state(gh->gh_state);
227 TP_PROTO(const struct gfs2_holder *gh, int queue),
229 TP_ARGS(gh, queue),
240 __entry->dev = gh->gh_gl->gl_name.ln_sbd->sd_vfs->s_dev;
241 __entry->glnum = gh->gh_gl->gl_name.ln_number;
[all …]
Dinode.c866 struct gfs2_holder gh; in __gfs2_lookup() local
879 error = gfs2_glock_nq_init(gl, LM_ST_SHARED, LM_FLAG_ANY, &gh); in __gfs2_lookup()
887 gfs2_glock_dq_uninit(&gh); in __gfs2_lookup()
893 gfs2_glock_dq_uninit(&gh); in __gfs2_lookup()
2036 struct gfs2_holder gh; in gfs2_getattr() local
2040 gfs2_holder_mark_uninitialized(&gh); in gfs2_getattr()
2042 error = gfs2_glock_nq_init(ip->i_gl, LM_ST_SHARED, LM_FLAG_ANY, &gh); in gfs2_getattr()
2061 if (gfs2_holder_initialized(&gh)) in gfs2_getattr()
2062 gfs2_glock_dq_uninit(&gh); in gfs2_getattr()
2071 struct gfs2_holder gh; in gfs2_fiemap() local
[all …]
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()
Dxattr.c608 struct gfs2_holder gh; in gfs2_xattr_get() local
614 ret = gfs2_glock_nq_init(ip->i_gl, LM_ST_SHARED, LM_FLAG_ANY, &gh); in gfs2_xattr_get()
618 gfs2_holder_mark_uninitialized(&gh); in gfs2_xattr_get()
621 if (gfs2_holder_initialized(&gh)) in gfs2_xattr_get()
622 gfs2_glock_dq_uninit(&gh); in gfs2_xattr_get()
1234 struct gfs2_holder gh; in gfs2_xattr_set() local
1244 ret = gfs2_glock_nq_init(ip->i_gl, LM_ST_EXCLUSIVE, 0, &gh); in gfs2_xattr_set()
1252 gfs2_holder_mark_uninitialized(&gh); in gfs2_xattr_set()
1255 if (gfs2_holder_initialized(&gh)) in gfs2_xattr_set()
1256 gfs2_glock_dq_uninit(&gh); in gfs2_xattr_set()
[all …]
Dglops.c498 static int inode_go_held(struct gfs2_holder *gh) in inode_go_held() argument
500 struct gfs2_glock *gl = gh->gh_gl; in inode_go_held()
507 if (gh->gh_state != LM_ST_DEFERRED) in inode_go_held()
512 (gh->gh_state == LM_ST_EXCLUSIVE)) in inode_go_held()
Drgrp.c1262 static int update_rgrp_lvb(struct gfs2_rgrpd *rgd, struct gfs2_holder *gh) in update_rgrp_lvb() argument
1266 if (!test_bit(GLF_INSTANTIATE_NEEDED, &gh->gh_gl->gl_flags)) in update_rgrp_lvb()
1270 return gfs2_instantiate(gh); in update_rgrp_lvb()
1392 struct gfs2_holder gh; in gfs2_fitrim() local
1435 LM_FLAG_NODE_SCOPE, &gh); in gfs2_fitrim()
1449 gfs2_glock_dq_uninit(&gh); in gfs2_fitrim()
1467 gfs2_glock_dq_uninit(&gh); in gfs2_fitrim()
Dincore.h223 int (*go_held)(struct gfs2_holder *gh);
/Linux-v6.1/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-v6.1/drivers/net/
Dgeneve.c487 static int geneve_hlen(struct genevehdr *gh) in geneve_hlen() argument
489 return sizeof(*gh) + gh->opt_len * 4; in geneve_hlen()
498 struct genevehdr *gh, *gh2; in geneve_gro_receive() local
505 hlen = off_gnv + sizeof(*gh); in geneve_gro_receive()
506 gh = skb_gro_header(skb, hlen, off_gnv); in geneve_gro_receive()
507 if (unlikely(!gh)) in geneve_gro_receive()
510 if (gh->ver != GENEVE_VER || gh->oam) in geneve_gro_receive()
512 gh_len = geneve_hlen(gh); in geneve_gro_receive()
516 gh = skb_gro_header_slow(skb, hlen, off_gnv); in geneve_gro_receive()
517 if (unlikely(!gh)) in geneve_gro_receive()
[all …]
/Linux-v6.1/tools/testing/selftests/net/mptcp/
Dpm_nl_ctl.c54 struct genlmsghdr *gh; in init_genl_req() local
62 gh = (void *)(data + off); in init_genl_req()
63 gh->cmd = cmd; in init_genl_req()
64 gh->version = version; in init_genl_req()
65 off += NLMSG_ALIGN(sizeof(*gh)); in init_genl_req()
/Linux-v6.1/net/ipv4/
Dip_gre.c308 unsigned char *gh; in erspan_rcv() local
325 gh = skb_network_header(skb) + in erspan_rcv()
327 pkt_md = (struct erspan_metadata *)(gh + gre_hdr_len + in erspan_rcv()
/Linux-v6.1/net/ipv6/
Dip6_gre.c553 unsigned char *gh; in ip6erspan_rcv() local
570 gh = skb_network_header(skb) + in ip6erspan_rcv()
572 pkt_md = (struct erspan_metadata *)(gh + gre_hdr_len + in ip6erspan_rcv()