/Linux-v5.15/fs/gfs2/ |
D | glock.c | 60 static void do_xmote(struct gfs2_glock *gl, struct gfs2_holder *gh, unsigned int target); 311 static inline int may_grant(const struct gfs2_glock *gl, const struct gfs2_holder *gh) in may_grant() argument 315 if (gh != gh_head) { in may_grant() 324 gh->gh_state == LM_ST_EXCLUSIVE && in may_grant() 325 (gh->gh_flags & LM_FLAG_NODE_SCOPE)) in may_grant() 327 if ((gh->gh_state == LM_ST_EXCLUSIVE || in may_grant() 331 if (gl->gl_state == gh->gh_state) in may_grant() 333 if (gh->gh_flags & GL_EXACT) in may_grant() 336 if (gh->gh_state == LM_ST_SHARED && gh_head->gh_state == LM_ST_SHARED) in may_grant() 338 if (gh->gh_state == LM_ST_DEFERRED && gh_head->gh_state == LM_ST_DEFERRED) in may_grant() [all …]
|
D | glock.h | 144 struct gfs2_holder *gh; in gfs2_glock_is_locked_by_me() local 150 list_for_each_entry(gh, &gl->gl_holders, gh_list) { in gfs2_glock_is_locked_by_me() 151 if (!test_bit(HIF_HOLDER, &gh->gh_iflags)) in gfs2_glock_is_locked_by_me() 153 if (gh->gh_owner_pid == pid) in gfs2_glock_is_locked_by_me() 156 gh = NULL; in gfs2_glock_is_locked_by_me() 160 return gh; in gfs2_glock_is_locked_by_me() 192 u16 flags, struct gfs2_holder *gh); 194 struct gfs2_holder *gh); 195 extern void gfs2_holder_uninit(struct gfs2_holder *gh); 196 extern int gfs2_glock_nq(struct gfs2_holder *gh); [all …]
|
D | file.c | 161 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() 225 struct gfs2_holder gh; in do_gfs2_set_flags() local 229 error = gfs2_glock_nq_init(ip->i_gl, LM_ST_EXCLUSIVE, 0, &gh); in do_gfs2_set_flags() 279 gfs2_glock_dq_uninit(&gh); in do_gfs2_set_flags() 431 struct gfs2_holder gh; in gfs2_page_mkwrite() local 438 gfs2_holder_init(ip->i_gl, LM_ST_EXCLUSIVE, 0, &gh); in gfs2_page_mkwrite() [all …]
|
D | super.c | 183 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() 373 gfs2_glock_dq_uninit(&lfcc->gh); in gfs2_lock_fs_check_clean() 472 struct gfs2_holder gh; in gfs2_dirty_inode() local [all …]
|
D | acl.c | 63 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()
|
D | trace_gfs2.h | 200 TP_PROTO(const struct gfs2_holder *gh, int first), 202 TP_ARGS(gh, first), 213 __entry->dev = gh->gh_gl->gl_name.ln_sbd->sd_vfs->s_dev; 214 __entry->glnum = gh->gh_gl->gl_name.ln_number; 215 __entry->gltype = gh->gh_gl->gl_name.ln_type; 217 __entry->state = glock_trace_state(gh->gh_state); 230 TP_PROTO(const struct gfs2_holder *gh, int queue), 232 TP_ARGS(gh, queue), 243 __entry->dev = gh->gh_gl->gl_name.ln_sbd->sd_vfs->s_dev; 244 __entry->glnum = gh->gh_gl->gl_name.ln_number; [all …]
|
D | inode.c | 869 struct gfs2_holder gh; in __gfs2_lookup() local 882 error = gfs2_glock_nq_init(gl, LM_ST_SHARED, LM_FLAG_ANY, &gh); in __gfs2_lookup() 890 gfs2_glock_dq_uninit(&gh); in __gfs2_lookup() 896 gfs2_glock_dq_uninit(&gh); in __gfs2_lookup() 2039 struct gfs2_holder gh; in gfs2_getattr() local 2043 gfs2_holder_mark_uninitialized(&gh); in gfs2_getattr() 2045 error = gfs2_glock_nq_init(ip->i_gl, LM_ST_SHARED, LM_FLAG_ANY, &gh); in gfs2_getattr() 2064 if (gfs2_holder_initialized(&gh)) in gfs2_getattr() 2065 gfs2_glock_dq_uninit(&gh); in gfs2_getattr() 2074 struct gfs2_holder gh; in gfs2_fiemap() local [all …]
|
D | export.c | 95 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()
|
D | xattr.c | 608 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 …]
|
D | glops.c | 491 static int inode_go_lock(struct gfs2_holder *gh) in inode_go_lock() argument 493 struct gfs2_glock *gl = gh->gh_gl; in inode_go_lock() 498 if (!ip || (gh->gh_flags & GL_SKIP)) in inode_go_lock() 507 if (gh->gh_state != LM_ST_DEFERRED) in inode_go_lock() 512 (gh->gh_state == LM_ST_EXCLUSIVE)) { in inode_go_lock()
|
D | rgrp.h | 34 extern int gfs2_rgrp_go_lock(struct gfs2_holder *gh);
|
D | rgrp.c | 1291 int gfs2_rgrp_go_lock(struct gfs2_holder *gh) in gfs2_rgrp_go_lock() argument 1293 struct gfs2_rgrpd *rgd = gh->gh_gl->gl_object; in gfs2_rgrp_go_lock() 1296 if (gh->gh_flags & GL_SKIP && sdp->sd_args.ar_rgrplvb) in gfs2_rgrp_go_lock() 1403 struct gfs2_holder gh; in gfs2_fitrim() local 1446 LM_FLAG_NODE_SCOPE, &gh); in gfs2_fitrim() 1460 gfs2_glock_dq_uninit(&gh); in gfs2_fitrim() 1478 gfs2_glock_dq_uninit(&gh); in gfs2_fitrim()
|
D | incore.h | 223 int (*go_lock) (struct gfs2_holder *gh);
|
/Linux-v5.15/drivers/acpi/arm64/ |
D | gtdt.c | 41 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.15/drivers/net/ |
D | geneve.c | 468 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.15/tools/testing/selftests/net/mptcp/ |
D | pm_nl_ctl.c | 41 struct genlmsghdr *gh; in init_genl_req() local 49 gh = (void *)(data + off); in init_genl_req() 50 gh->cmd = cmd; in init_genl_req() 51 gh->version = version; in init_genl_req() 52 off += NLMSG_ALIGN(sizeof(*gh)); in init_genl_req()
|
/Linux-v5.15/net/ipv4/ |
D | ip_gre.c | 308 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-v5.15/net/ipv6/ |
D | ip6_gre.c | 558 unsigned char *gh; in ip6erspan_rcv() local 575 gh = skb_network_header(skb) + in ip6erspan_rcv() 577 pkt_md = (struct erspan_metadata *)(gh + gre_hdr_len + in ip6erspan_rcv()
|