| /linux/fs/gfs2/ |
| H A D | glock.h | 155 struct gfs2_holder *gh; in gfs2_glock_is_locked_by_me() local 161 list_for_each_entry(gh, &gl->gl_holders, gh_list) { in gfs2_glock_is_locked_by_me() 162 if (!test_bit(HIF_HOLDER, &gh->gh_iflags)) in gfs2_glock_is_locked_by_me() 164 if (gh->gh_owner_pid == pid) in gfs2_glock_is_locked_by_me() 167 gh = NULL; in gfs2_glock_is_locked_by_me() 171 return gh; in gfs2_glock_is_locked_by_me() 192 u16 flags, struct gfs2_holder *gh, 195 u16 flags, struct gfs2_holder *gh) { in gfs2_holder_init() argument 196 __gfs2_holder_init(gl, state, flags, gh, _RET_IP_); in gfs2_holder_init() 200 struct gfs2_holder *gh); [all …]
|
| H A D | glock.c | 63 static void do_xmote(struct gfs2_glock *gl, struct gfs2_holder *gh, 314 struct gfs2_holder *gh) in may_grant() argument 328 return gh->gh_state == LM_ST_EXCLUSIVE && in may_grant() 330 (gh->gh_flags & LM_FLAG_NODE_SCOPE); in may_grant() 334 return gh->gh_state == current_gh->gh_state; in may_grant() 341 if (gl->gl_state == gh->gh_state) in may_grant() 343 if (gh->gh_flags & GL_EXACT) in may_grant() 346 return gh->gh_state == LM_ST_SHARED || in may_grant() 347 gh->gh_state == LM_ST_DEFERRED; in may_grant() 349 if (gh->gh_flags & LM_FLAG_ANY) in may_grant() [all …]
|
| H A D | file.c | 162 struct gfs2_holder gh; in gfs2_fileattr_get() local 169 gfs2_holder_init(ip->i_gl, LM_ST_SHARED, 0, &gh); in gfs2_fileattr_get() 170 error = gfs2_glock_nq(&gh); in gfs2_fileattr_get() 178 gfs2_glock_dq(&gh); in gfs2_fileattr_get() 180 gfs2_holder_uninit(&gh); in gfs2_fileattr_get() 224 struct gfs2_holder gh; in do_gfs2_set_flags() local 228 error = gfs2_glock_nq_init(ip->i_gl, LM_ST_EXCLUSIVE, 0, &gh); in do_gfs2_set_flags() 274 gfs2_glock_dq_uninit(&gh); in do_gfs2_set_flags() 426 struct gfs2_holder gh; in gfs2_page_mkwrite() local 433 gfs2_holder_init(ip->i_gl, LM_ST_EXCLUSIVE, 0, &gh); in gfs2_page_mkwrite() [all …]
|
| H A 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 345 error = gfs2_glock_nq_init(ip->i_gl, LM_ST_SHARED, 0, &lfcc->gh); in gfs2_lock_fs_check_clean() 387 gfs2_glock_dq_uninit(&lfcc->gh); in gfs2_lock_fs_check_clean() 487 struct gfs2_holder gh; in gfs2_dirty_inode() local [all …]
|
| H A 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() 110 struct gfs2_holder gh; in gfs2_set_acl() local 123 ret = gfs2_glock_nq_init(ip->i_gl, LM_ST_EXCLUSIVE, 0, &gh); in gfs2_set_acl() 144 gfs2_glock_dq_uninit(&gh); in gfs2_set_acl()
|
| H A D | inode.c | 478 struct gfs2_holder gh; in gfs2_dinode_dealloc() local 500 LM_FLAG_NODE_SCOPE, &gh); in gfs2_dinode_dealloc() 516 gfs2_glock_dq_uninit(&gh); in gfs2_dinode_dealloc() 707 struct gfs2_holder d_gh, gh; in gfs2_create_inode() local 732 gfs2_holder_mark_uninitialized(&gh); in gfs2_create_inode() 850 error = gfs2_glock_nq_init(ip->i_gl, LM_ST_EXCLUSIVE, GL_SKIP, &gh); in gfs2_create_inode() 904 gfs2_glock_dq_uninit(&gh); in gfs2_create_inode() 947 if (gfs2_holder_initialized(&gh)) in gfs2_create_inode() 948 gfs2_glock_dq_uninit(&gh); in gfs2_create_inode() 986 struct gfs2_holder gh; in __gfs2_lookup() local [all …]
|
| H A D | trace_gfs2.h | 206 TP_PROTO(const struct gfs2_holder *gh), 208 TP_ARGS(gh), 218 __entry->dev = glock_sbd(gh->gh_gl)->sd_vfs->s_dev; 219 __entry->glnum = glock_number(gh->gh_gl); 220 __entry->gltype = glock_type(gh->gh_gl); 221 __entry->state = glock_trace_state(gh->gh_state); 233 TP_PROTO(const struct gfs2_holder *gh, int queue), 235 TP_ARGS(gh, queue), 246 __entry->dev = glock_sbd(gh->gh_gl)->sd_vfs->s_dev; 247 __entry->glnum = glock_number(gh->gh_gl); [all …]
|
| H A 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()
|
| H A D | xattr.c | 612 struct gfs2_holder gh; in gfs2_xattr_get() local 618 ret = gfs2_glock_nq_init(ip->i_gl, LM_ST_SHARED, LM_FLAG_ANY, &gh); in gfs2_xattr_get() 622 gfs2_holder_mark_uninitialized(&gh); in gfs2_xattr_get() 625 if (gfs2_holder_initialized(&gh)) in gfs2_xattr_get() 626 gfs2_glock_dq_uninit(&gh); in gfs2_xattr_get() 1238 struct gfs2_holder gh; in gfs2_xattr_set() local 1248 ret = gfs2_glock_nq_init(ip->i_gl, LM_ST_EXCLUSIVE, 0, &gh); in gfs2_xattr_set() 1256 gfs2_holder_mark_uninitialized(&gh); in gfs2_xattr_set() 1259 if (gfs2_holder_initialized(&gh)) in gfs2_xattr_set() 1260 gfs2_glock_dq_uninit(&gh); in gfs2_xattr_set() [all …]
|
| H A D | glops.c | 515 static int inode_go_held(struct gfs2_holder *gh) in inode_go_held() argument 517 struct gfs2_glock *gl = gh->gh_gl; in inode_go_held() 524 if (gh->gh_state != LM_ST_DEFERRED) in inode_go_held() 529 (gh->gh_state == LM_ST_EXCLUSIVE)) in inode_go_held()
|
| H A D | rgrp.c | 1262 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()
|
| H A D | incore.h | 222 int (*go_held)(struct gfs2_holder *gh);
|
| /linux/drivers/acpi/arm64/ |
| H A D | gtdt.c | 41 struct acpi_gtdt_header *gh = platform_timer; in platform_timer_valid() local 45 gh->length != 0 && in platform_timer_valid() 46 platform_timer + gh->length <= acpi_gtdt_desc.gtdt_end); in platform_timer_valid() 51 struct acpi_gtdt_header *gh = platform_timer; in next_platform_timer() local 53 return platform_timer + gh->length; in next_platform_timer() 62 struct acpi_gtdt_header *gh = platform_timer; in is_timer_block() local 64 return gh->type == ACPI_GTDT_TYPE_TIMER_BLOCK; in is_timer_block() 69 struct acpi_gtdt_header *gh = platform_timer; in is_non_secure_watchdog() local 72 if (gh->type != ACPI_GTDT_TYPE_WATCHDOG) in is_non_secure_watchdog()
|
| /linux/drivers/net/ |
| H A D | geneve.c | 406 static int geneve_hlen(const struct genevehdr *gh) in geneve_hlen() argument 408 return sizeof(*gh) + gh->opt_len * 4; in geneve_hlen() 416 geneve_opt_gro_hint_off(const struct genevehdr *gh, __be16 *type, in geneve_opt_gro_hint_off() argument 419 struct geneve_opt *opt = (void *)(gh + 1); in geneve_opt_gro_hint_off() 420 unsigned int id, opt_len = gh->opt_len; in geneve_opt_gro_hint_off() 464 return (void *)gro_hint - (void *)gh; in geneve_opt_gro_hint_off() 468 geneve_opt_gro_hint(const struct genevehdr *gh, unsigned int hint_off) in geneve_opt_gro_hint() argument 470 return (const struct geneve_opt_gro_hint *)((void *)gh + hint_off); in geneve_opt_gro_hint() 474 geneve_sk_gro_hint_off(const struct sock *sk, const struct genevehdr *gh, in geneve_sk_gro_hint_off() argument 481 return geneve_opt_gro_hint_off(gh, type, gh_len); in geneve_sk_gro_hint_off() [all …]
|
| /linux/tools/testing/selftests/net/mptcp/ |
| H A D | pm_nl_ctl.c | 51 struct genlmsghdr *gh; in init_genl_req() local 59 gh = (void *)(data + off); in init_genl_req() 60 gh->cmd = cmd; in init_genl_req() 61 gh->version = version; in init_genl_req() 62 off += NLMSG_ALIGN(sizeof(*gh)); in init_genl_req()
|
| /linux/net/ipv4/ |
| H A D | ip_gre.c | 321 unsigned char *gh; in erspan_rcv() local 341 gh = skb_network_header(skb) + in erspan_rcv() 343 pkt_md = (struct erspan_metadata *)(gh + gre_hdr_len + in erspan_rcv()
|
| /linux/net/ipv6/ |
| H A D | ip6_gre.c | 526 unsigned char *gh; in ip6erspan_rcv() local 546 gh = skb_network_header(skb) + in ip6erspan_rcv() 548 pkt_md = (struct erspan_metadata *)(gh + gre_hdr_len + in ip6erspan_rcv()
|