Home
last modified time | relevance | path

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

/linux-4.19.296/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);
285 static inline int may_grant(const struct gfs2_glock *gl, const struct gfs2_holder *gh) in may_grant() argument
288 if ((gh->gh_state == LM_ST_EXCLUSIVE || in may_grant()
289 gh_head->gh_state == LM_ST_EXCLUSIVE) && gh != gh_head) in may_grant()
291 if (gl->gl_state == gh->gh_state) in may_grant()
293 if (gh->gh_flags & GL_EXACT) in may_grant()
296 if (gh->gh_state == LM_ST_SHARED && gh_head->gh_state == LM_ST_SHARED) in may_grant()
298 if (gh->gh_state == LM_ST_DEFERRED && gh_head->gh_state == LM_ST_DEFERRED) in may_grant()
301 if (gl->gl_state != LM_ST_UNLOCKED && (gh->gh_flags & LM_FLAG_ANY)) in may_grant()
306 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.c541 struct gfs2_holder gh; in gfs2_readpage() local
545 gfs2_holder_init(ip->i_gl, LM_ST_SHARED, 0, &gh); in gfs2_readpage()
546 error = gfs2_glock_nq(&gh); in gfs2_readpage()
555 gfs2_glock_dq(&gh); in gfs2_readpage()
557 gfs2_holder_uninit(&gh); in gfs2_readpage()
626 struct gfs2_holder gh; in gfs2_readpages() local
629 gfs2_holder_init(ip->i_gl, LM_ST_SHARED, 0, &gh); in gfs2_readpages()
630 ret = gfs2_glock_nq(&gh); in gfs2_readpages()
635 gfs2_glock_dq(&gh); in gfs2_readpages()
637 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()
Drgrp.h38 extern int gfs2_rgrp_go_lock(struct gfs2_holder *gh);
40 extern void gfs2_rgrp_go_unlock(struct gfs2_holder *gh);
Dinode.c844 struct gfs2_holder gh; in __gfs2_lookup() local
857 error = gfs2_glock_nq_init(gl, LM_ST_SHARED, LM_FLAG_ANY, &gh); in __gfs2_lookup()
865 gfs2_glock_dq_uninit(&gh); in __gfs2_lookup()
871 gfs2_glock_dq_uninit(&gh); in __gfs2_lookup()
1977 struct gfs2_holder gh; in gfs2_getattr() local
1981 gfs2_holder_mark_uninitialized(&gh); in gfs2_getattr()
1983 error = gfs2_glock_nq_init(ip->i_gl, LM_ST_SHARED, LM_FLAG_ANY, &gh); in gfs2_getattr()
2002 if (gfs2_holder_initialized(&gh)) in gfs2_getattr()
2003 gfs2_glock_dq_uninit(&gh); in gfs2_getattr()
2012 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 …]
Dglops.c435 static int inode_go_lock(struct gfs2_holder *gh) in inode_go_lock() argument
437 struct gfs2_glock *gl = gh->gh_gl; in inode_go_lock()
442 if (!ip || (gh->gh_flags & GL_SKIP)) in inode_go_lock()
451 if (gh->gh_state != LM_ST_DEFERRED) in inode_go_lock()
456 (gh->gh_state == LM_ST_EXCLUSIVE)) { in inode_go_lock()
521 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.c1254 int gfs2_rgrp_go_lock(struct gfs2_holder *gh) in gfs2_rgrp_go_lock() argument
1256 struct gfs2_rgrpd *rgd = gh->gh_gl->gl_object; in gfs2_rgrp_go_lock()
1259 if (gh->gh_flags & GL_SKIP && sdp->sd_args.ar_rgrplvb) in gfs2_rgrp_go_lock()
1290 void gfs2_rgrp_go_unlock(struct gfs2_holder *gh) in gfs2_rgrp_go_unlock() argument
1292 struct gfs2_rgrpd *rgd = gh->gh_gl->gl_object; in gfs2_rgrp_go_unlock()
1293 int demote_requested = test_bit(GLF_DEMOTE, &gh->gh_gl->gl_flags) | in gfs2_rgrp_go_unlock()
1294 test_bit(GLF_PENDING_DEMOTE, &gh->gh_gl->gl_flags); in gfs2_rgrp_go_unlock()
1383 struct gfs2_holder gh; in gfs2_fitrim() local
1426 ret = gfs2_glock_nq_init(rgd->rd_gl, LM_ST_EXCLUSIVE, 0, &gh); in gfs2_fitrim()
1438 gfs2_glock_dq_uninit(&gh); in gfs2_fitrim()
[all …]