Home
last modified time | relevance | path

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

/Linux-v4.19/fs/gfs2/
Dglock.h141 struct gfs2_holder *gh; in gfs2_glock_is_locked_by_me() local
147 list_for_each_entry(gh, &gl->gl_holders, gh_list) { in gfs2_glock_is_locked_by_me()
148 if (!test_bit(HIF_HOLDER, &gh->gh_iflags)) in gfs2_glock_is_locked_by_me()
150 if (gh->gh_owner_pid == pid) in gfs2_glock_is_locked_by_me()
153 gh = NULL; in gfs2_glock_is_locked_by_me()
157 return gh; in gfs2_glock_is_locked_by_me()
189 u16 flags, struct gfs2_holder *gh);
191 struct gfs2_holder *gh);
192 extern void gfs2_holder_uninit(struct gfs2_holder *gh);
193 extern int gfs2_glock_nq(struct gfs2_holder *gh);
[all …]
Dglock.c63 static void do_xmote(struct gfs2_glock *gl, struct gfs2_holder *gh, unsigned int target);
280 static inline int may_grant(const struct gfs2_glock *gl, const struct gfs2_holder *gh) in may_grant() argument
283 if ((gh->gh_state == LM_ST_EXCLUSIVE || in may_grant()
284 gh_head->gh_state == LM_ST_EXCLUSIVE) && gh != gh_head) in may_grant()
286 if (gl->gl_state == gh->gh_state) in may_grant()
288 if (gh->gh_flags & GL_EXACT) in may_grant()
291 if (gh->gh_state == LM_ST_SHARED && gh_head->gh_state == LM_ST_SHARED) in may_grant()
293 if (gh->gh_state == LM_ST_DEFERRED && gh_head->gh_state == LM_ST_DEFERRED) in may_grant()
296 if (gl->gl_state != LM_ST_UNLOCKED && (gh->gh_flags & LM_FLAG_ANY)) in may_grant()
301 static void gfs2_holder_wake(struct gfs2_holder *gh) in gfs2_holder_wake() argument
[all …]
Dacl.c65 struct gfs2_holder gh; in gfs2_get_acl() local
71 LM_FLAG_ANY, &gh); in gfs2_get_acl()
78 gfs2_glock_dq_uninit(&gh); in gfs2_get_acl()
114 struct gfs2_holder gh; in gfs2_set_acl() local
127 ret = gfs2_glock_nq_init(ip->i_gl, LM_ST_EXCLUSIVE, 0, &gh); in gfs2_set_acl()
148 gfs2_glock_dq_uninit(&gh); in gfs2_set_acl()
Dfile.c146 struct gfs2_holder gh; in gfs2_get_flags() local
150 gfs2_holder_init(ip->i_gl, LM_ST_SHARED, 0, &gh); in gfs2_get_flags()
151 error = gfs2_glock_nq(&gh); in gfs2_get_flags()
167 gfs2_glock_dq(&gh); in gfs2_get_flags()
169 gfs2_holder_uninit(&gh); in gfs2_get_flags()
214 struct gfs2_holder gh; in do_gfs2_set_flags() local
222 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()
402 struct gfs2_holder gh; in gfs2_page_mkwrite() local
414 gfs2_holder_init(ip->i_gl, LM_ST_EXCLUSIVE, 0, &gh); in gfs2_page_mkwrite()
[all …]
Dsuper.c486 struct gfs2_holder gh; in gfs2_statfs_init() local
490 &gh); in gfs2_statfs_init()
521 gfs2_glock_dq_uninit(&gh); in gfs2_statfs_init()
589 struct gfs2_holder gh; in gfs2_statfs_sync() local
595 &gh); in gfs2_statfs_sync()
630 gfs2_glock_dq_uninit(&gh); in gfs2_statfs_sync()
638 struct gfs2_holder gh; member
668 error = gfs2_glock_nq_init(ip->i_gl, LM_ST_SHARED, 0, &lfcc->gh); in gfs2_lock_fs_check_clean()
699 gfs2_glock_dq_uninit(&lfcc->gh); in gfs2_lock_fs_check_clean()
798 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.c544 struct gfs2_holder gh; in gfs2_readpage() local
548 gfs2_holder_init(ip->i_gl, LM_ST_SHARED, 0, &gh); in gfs2_readpage()
549 error = gfs2_glock_nq(&gh); in gfs2_readpage()
558 gfs2_glock_dq(&gh); in gfs2_readpage()
560 gfs2_holder_uninit(&gh); in gfs2_readpage()
629 struct gfs2_holder gh; in gfs2_readpages() local
632 gfs2_holder_init(ip->i_gl, LM_ST_SHARED, 0, &gh); in gfs2_readpages()
633 ret = gfs2_glock_nq(&gh); in gfs2_readpages()
638 gfs2_glock_dq(&gh); in gfs2_readpages()
640 gfs2_holder_uninit(&gh); in gfs2_readpages()
Dexport.c98 struct gfs2_holder gh; in gfs2_get_name() local
115 error = gfs2_glock_nq_init(dip->i_gl, LM_ST_SHARED, 0, &gh); in gfs2_get_name()
121 gfs2_glock_dq_uninit(&gh); in gfs2_get_name()
Dinode.c843 struct gfs2_holder gh; in __gfs2_lookup() local
856 error = gfs2_glock_nq_init(gl, LM_ST_SHARED, LM_FLAG_ANY, &gh); in __gfs2_lookup()
864 gfs2_glock_dq_uninit(&gh); in __gfs2_lookup()
870 gfs2_glock_dq_uninit(&gh); in __gfs2_lookup()
1976 struct gfs2_holder gh; in gfs2_getattr() local
1980 gfs2_holder_mark_uninitialized(&gh); in gfs2_getattr()
1982 error = gfs2_glock_nq_init(ip->i_gl, LM_ST_SHARED, LM_FLAG_ANY, &gh); in gfs2_getattr()
2001 if (gfs2_holder_initialized(&gh)) in gfs2_getattr()
2002 gfs2_glock_dq_uninit(&gh); in gfs2_getattr()
2011 struct gfs2_holder gh; in gfs2_fiemap() local
[all …]
Dxattr.c597 struct gfs2_holder gh; in gfs2_xattr_get() local
603 ret = gfs2_glock_nq_init(ip->i_gl, LM_ST_SHARED, LM_FLAG_ANY, &gh); in gfs2_xattr_get()
607 gfs2_holder_mark_uninitialized(&gh); in gfs2_xattr_get()
610 if (gfs2_holder_initialized(&gh)) in gfs2_xattr_get()
611 gfs2_glock_dq_uninit(&gh); in gfs2_xattr_get()
1225 struct gfs2_holder gh; in gfs2_xattr_set() local
1235 ret = gfs2_glock_nq_init(ip->i_gl, LM_ST_EXCLUSIVE, 0, &gh); in gfs2_xattr_set()
1241 gfs2_holder_mark_uninitialized(&gh); in gfs2_xattr_set()
1244 if (gfs2_holder_initialized(&gh)) in gfs2_xattr_set()
1245 gfs2_glock_dq_uninit(&gh); in gfs2_xattr_set()
[all …]
Drgrp.h38 extern int gfs2_rgrp_go_lock(struct gfs2_holder *gh);
40 extern void gfs2_rgrp_go_unlock(struct gfs2_holder *gh);
Dglops.c429 static int inode_go_lock(struct gfs2_holder *gh) in inode_go_lock() argument
431 struct gfs2_glock *gl = gh->gh_gl; in inode_go_lock()
436 if (!ip || (gh->gh_flags & GL_SKIP)) in inode_go_lock()
445 if (gh->gh_state != LM_ST_DEFERRED) in inode_go_lock()
450 (gh->gh_state == LM_ST_EXCLUSIVE)) { in inode_go_lock()
515 static int freeze_go_xmote_bh(struct gfs2_glock *gl, struct gfs2_holder *gh) in freeze_go_xmote_bh() argument
Dincore.h242 int (*go_xmote_bh) (struct gfs2_glock *gl, struct gfs2_holder *gh);
245 int (*go_lock) (struct gfs2_holder *gh);
246 void (*go_unlock) (struct gfs2_holder *gh);
Drgrp.c1239 int gfs2_rgrp_go_lock(struct gfs2_holder *gh) in gfs2_rgrp_go_lock() argument
1241 struct gfs2_rgrpd *rgd = gh->gh_gl->gl_object; in gfs2_rgrp_go_lock()
1244 if (gh->gh_flags & GL_SKIP && sdp->sd_args.ar_rgrplvb) in gfs2_rgrp_go_lock()
1275 void gfs2_rgrp_go_unlock(struct gfs2_holder *gh) in gfs2_rgrp_go_unlock() argument
1277 struct gfs2_rgrpd *rgd = gh->gh_gl->gl_object; in gfs2_rgrp_go_unlock()
1278 int demote_requested = test_bit(GLF_DEMOTE, &gh->gh_gl->gl_flags) | in gfs2_rgrp_go_unlock()
1279 test_bit(GLF_PENDING_DEMOTE, &gh->gh_gl->gl_flags); in gfs2_rgrp_go_unlock()
1368 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()
[all …]
/Linux-v4.19/drivers/acpi/arm64/
Dgtdt.c44 struct acpi_gtdt_header *gh = platform_timer; in next_platform_timer() local
46 platform_timer += gh->length; in next_platform_timer()
59 struct acpi_gtdt_header *gh = platform_timer; in is_timer_block() local
61 return gh->type == ACPI_GTDT_TYPE_TIMER_BLOCK; in is_timer_block()
66 struct acpi_gtdt_header *gh = platform_timer; in is_non_secure_watchdog() local
69 if (gh->type != ACPI_GTDT_TYPE_WATCHDOG) in is_non_secure_watchdog()
/Linux-v4.19/drivers/net/
Dgeneve.c417 static int geneve_hlen(struct genevehdr *gh) in geneve_hlen() argument
419 return sizeof(*gh) + gh->opt_len * 4; in geneve_hlen()
428 struct genevehdr *gh, *gh2; in geneve_gro_receive() local
435 hlen = off_gnv + sizeof(*gh); in geneve_gro_receive()
436 gh = skb_gro_header_fast(skb, off_gnv); in geneve_gro_receive()
438 gh = skb_gro_header_slow(skb, hlen, off_gnv); in geneve_gro_receive()
439 if (unlikely(!gh)) in geneve_gro_receive()
443 if (gh->ver != GENEVE_VER || gh->oam) in geneve_gro_receive()
445 gh_len = geneve_hlen(gh); in geneve_gro_receive()
449 gh = skb_gro_header_slow(skb, hlen, off_gnv); in geneve_gro_receive()
[all …]