| /Linux-v5.10/fs/gfs2/ |
| D | glock.c | 60 static void do_xmote(struct gfs2_glock *gl, struct gfs2_holder *gh, unsigned int target); 313 static inline int may_grant(const struct gfs2_glock *gl, const struct gfs2_holder *gh) in may_grant() argument 316 if ((gh->gh_state == LM_ST_EXCLUSIVE || in may_grant() 317 gh_head->gh_state == LM_ST_EXCLUSIVE) && gh != gh_head) in may_grant() 319 if (gl->gl_state == gh->gh_state) in may_grant() 321 if (gh->gh_flags & GL_EXACT) in may_grant() 324 if (gh->gh_state == LM_ST_SHARED && gh_head->gh_state == LM_ST_SHARED) in may_grant() 326 if (gh->gh_state == LM_ST_DEFERRED && gh_head->gh_state == LM_ST_DEFERRED) in may_grant() 329 if (gl->gl_state != LM_ST_UNLOCKED && (gh->gh_flags & LM_FLAG_ANY)) in may_grant() 334 static void gfs2_holder_wake(struct gfs2_holder *gh) in gfs2_holder_wake() argument [all …]
|
| D | glock.h | 138 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 …]
|
| D | file.c | 160 struct gfs2_holder gh; in gfs2_get_flags() local 164 gfs2_holder_init(ip->i_gl, LM_ST_SHARED, 0, &gh); in gfs2_get_flags() 165 error = gfs2_glock_nq(&gh); in gfs2_get_flags() 174 gfs2_glock_dq(&gh); in gfs2_get_flags() 176 gfs2_holder_uninit(&gh); in gfs2_get_flags() 223 struct gfs2_holder gh; in do_gfs2_set_flags() local 231 error = gfs2_glock_nq_init(ip->i_gl, LM_ST_EXCLUSIVE, 0, &gh); in do_gfs2_set_flags() 293 gfs2_glock_dq_uninit(&gh); in do_gfs2_set_flags() 454 struct gfs2_holder gh; in gfs2_page_mkwrite() local 461 gfs2_holder_init(ip->i_gl, LM_ST_EXCLUSIVE, 0, &gh); in gfs2_page_mkwrite() [all …]
|
| D | super.c | 249 struct gfs2_holder gh; in gfs2_statfs_init() local 253 &gh); in gfs2_statfs_init() 284 gfs2_glock_dq_uninit(&gh); in gfs2_statfs_init() 352 struct gfs2_holder gh; in gfs2_statfs_sync() local 358 &gh); in gfs2_statfs_sync() 393 gfs2_glock_dq_uninit(&gh); in gfs2_statfs_sync() 401 struct gfs2_holder gh; member 430 error = gfs2_glock_nq_init(ip->i_gl, LM_ST_SHARED, 0, &lfcc->gh); in gfs2_lock_fs_check_clean() 463 gfs2_glock_dq_uninit(&lfcc->gh); in gfs2_lock_fs_check_clean() 562 struct gfs2_holder gh; in gfs2_dirty_inode() local [all …]
|
| D | acl.c | 63 struct gfs2_holder gh; in gfs2_get_acl() local 69 LM_FLAG_ANY, &gh); in gfs2_get_acl() 76 gfs2_glock_dq_uninit(&gh); in gfs2_get_acl() 112 struct gfs2_holder gh; in gfs2_set_acl() local 125 ret = gfs2_glock_nq_init(ip->i_gl, LM_ST_EXCLUSIVE, 0, &gh); in gfs2_set_acl() 146 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 | 867 struct gfs2_holder gh; in __gfs2_lookup() local 880 error = gfs2_glock_nq_init(gl, LM_ST_SHARED, LM_FLAG_ANY, &gh); in __gfs2_lookup() 888 gfs2_glock_dq_uninit(&gh); in __gfs2_lookup() 894 gfs2_glock_dq_uninit(&gh); in __gfs2_lookup() 2029 struct gfs2_holder gh; in gfs2_getattr() local 2033 gfs2_holder_mark_uninitialized(&gh); in gfs2_getattr() 2035 error = gfs2_glock_nq_init(ip->i_gl, LM_ST_SHARED, LM_FLAG_ANY, &gh); in gfs2_getattr() 2054 if (gfs2_holder_initialized(&gh)) in gfs2_getattr() 2055 gfs2_glock_dq_uninit(&gh); in gfs2_getattr() 2064 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 | 594 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() 1240 gfs2_holder_mark_uninitialized(&gh); in gfs2_xattr_set() 1243 if (gfs2_holder_initialized(&gh)) in gfs2_xattr_set() 1244 gfs2_glock_dq_uninit(&gh); in gfs2_xattr_set() [all …]
|
| D | glops.c | 497 static int inode_go_lock(struct gfs2_holder *gh) in inode_go_lock() argument 499 struct gfs2_glock *gl = gh->gh_gl; in inode_go_lock() 504 if (!ip || (gh->gh_flags & GL_SKIP)) in inode_go_lock() 513 if (gh->gh_state != LM_ST_DEFERRED) in inode_go_lock() 518 (gh->gh_state == LM_ST_EXCLUSIVE)) { in inode_go_lock() 614 static int freeze_go_xmote_bh(struct gfs2_glock *gl, struct gfs2_holder *gh) in freeze_go_xmote_bh() argument
|
| D | rgrp.h | 34 extern int gfs2_rgrp_go_lock(struct gfs2_holder *gh);
|
| D | incore.h | 242 int (*go_xmote_bh) (struct gfs2_glock *gl, struct gfs2_holder *gh); 245 int (*go_lock) (struct gfs2_holder *gh);
|
| D | rgrp.c | 1253 int gfs2_rgrp_go_lock(struct gfs2_holder *gh) in gfs2_rgrp_go_lock() argument 1255 struct gfs2_rgrpd *rgd = gh->gh_gl->gl_object; in gfs2_rgrp_go_lock() 1258 if (gh->gh_flags & GL_SKIP && sdp->sd_args.ar_rgrplvb) in gfs2_rgrp_go_lock() 1365 struct gfs2_holder gh; in gfs2_fitrim() local 1407 ret = gfs2_glock_nq_init(rgd->rd_gl, LM_ST_EXCLUSIVE, 0, &gh); in gfs2_fitrim() 1419 gfs2_glock_dq_uninit(&gh); in gfs2_fitrim() 1435 gfs2_glock_dq_uninit(&gh); in gfs2_fitrim()
|
| /Linux-v5.10/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.10/drivers/net/ |
| D | geneve.c | 466 static int geneve_hlen(struct genevehdr *gh) in geneve_hlen() argument 468 return sizeof(*gh) + gh->opt_len * 4; in geneve_hlen() 477 struct genevehdr *gh, *gh2; in geneve_gro_receive() local 484 hlen = off_gnv + sizeof(*gh); in geneve_gro_receive() 485 gh = skb_gro_header_fast(skb, off_gnv); in geneve_gro_receive() 487 gh = skb_gro_header_slow(skb, hlen, off_gnv); in geneve_gro_receive() 488 if (unlikely(!gh)) in geneve_gro_receive() 492 if (gh->ver != GENEVE_VER || gh->oam) in geneve_gro_receive() 494 gh_len = geneve_hlen(gh); in geneve_gro_receive() 498 gh = skb_gro_header_slow(skb, hlen, off_gnv); in geneve_gro_receive() [all …]
|
| /Linux-v5.10/tools/testing/selftests/net/mptcp/ |
| D | pm_nl_ctl.c | 40 struct genlmsghdr *gh; in init_genl_req() local 48 gh = (void *)(data + off); in init_genl_req() 49 gh->cmd = cmd; in init_genl_req() 50 gh->version = version; in init_genl_req() 51 off += NLMSG_ALIGN(sizeof(*gh)); in init_genl_req()
|
| /Linux-v5.10/net/ipv4/ |
| D | ip_gre.c | 306 unsigned char *gh; in erspan_rcv() local 323 gh = skb_network_header(skb) + in erspan_rcv() 325 pkt_md = (struct erspan_metadata *)(gh + gre_hdr_len + in erspan_rcv()
|
| /Linux-v5.10/net/ipv6/ |
| D | ip6_gre.c | 559 unsigned char *gh; in ip6erspan_rcv() local 576 gh = skb_network_header(skb) + in ip6erspan_rcv() 578 pkt_md = (struct erspan_metadata *)(gh + gre_hdr_len + in ip6erspan_rcv()
|