Home
last modified time | relevance | path

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

/linux-4.19.296/fs/gfs2/
Dinode.c159 error = gfs2_glock_nq_init(ip->i_gl, LM_ST_EXCLUSIVE, in gfs2_inode_lookup()
608 error = gfs2_glock_nq_init(dip->i_gl, LM_ST_EXCLUSIVE, 0, ghs); in gfs2_create_inode()
712 error = gfs2_glock_nq_init(ip->i_gl, LM_ST_EXCLUSIVE, GL_SKIP, ghs + 1); in gfs2_create_inode()
916 gfs2_holder_init(dip->i_gl, LM_ST_EXCLUSIVE, 0, ghs); in gfs2_link()
917 gfs2_holder_init(ip->i_gl, LM_ST_EXCLUSIVE, 0, ghs + 1); in gfs2_link()
1117 gfs2_holder_init(dip->i_gl, LM_ST_EXCLUSIVE, 0, ghs); in gfs2_unlink()
1118 gfs2_holder_init(ip->i_gl, LM_ST_EXCLUSIVE, 0, ghs + 1); in gfs2_unlink()
1124 gfs2_holder_init(rgd->rd_gl, LM_ST_EXCLUSIVE, 0, ghs + 2); in gfs2_unlink()
1379 error = gfs2_glock_nq_init(sdp->sd_rename_gl, LM_ST_EXCLUSIVE, in gfs2_rename()
1394 gfs2_holder_init(odip->i_gl, LM_ST_EXCLUSIVE, 0, ghs); in gfs2_rename()
[all …]
Dglock.h51 #define LM_ST_EXCLUSIVE 1 macro
162 return gl->gl_state == LM_ST_EXCLUSIVE; in gfs2_glock_is_held_excl()
Dglops.c162 GLOCK_BUG_ON(gl, gl->gl_state != LM_ST_EXCLUSIVE); in rgrp_go_sync()
258 GLOCK_BUG_ON(gl, gl->gl_state != LM_ST_EXCLUSIVE); in inode_go_sync()
455 (gl->gl_state == LM_ST_EXCLUSIVE) && in inode_go_lock()
456 (gh->gh_state == LM_ST_EXCLUSIVE)) { in inode_go_lock()
Dsuper.c489 error = gfs2_glock_nq_init(m_ip->i_gl, LM_ST_EXCLUSIVE, GL_NOCACHE, in gfs2_statfs_init()
594 error = gfs2_glock_nq_init(m_ip->i_gl, LM_ST_EXCLUSIVE, GL_NOCACHE, in gfs2_statfs_sync()
676 error = gfs2_glock_nq_init(sdp->sd_freeze_gl, LM_ST_EXCLUSIVE, in gfs2_lock_fs_check_clean()
808 ret = gfs2_glock_nq_init(ip->i_gl, LM_ST_EXCLUSIVE, 0, &gh); in gfs2_dirty_inode()
814 } else if (WARN_ON_ONCE(ip->i_gl->gl_state != LM_ST_EXCLUSIVE)) in gfs2_dirty_inode()
1517 error = gfs2_glock_nq_init(rgd->rd_gl, LM_ST_EXCLUSIVE, 0, &gh); in gfs2_dinode_dealloc()
1612 error = gfs2_glock_nq_init(ip->i_gl, LM_ST_EXCLUSIVE, GL_SKIP, &gh); in gfs2_evict_inode()
1641 gfs2_holder_reinit(LM_ST_EXCLUSIVE, LM_FLAG_TRY_1CB | GL_NOCACHE, in gfs2_evict_inode()
Dglock.c288 if ((gh->gh_state == LM_ST_EXCLUSIVE || in may_grant()
289 gh_head->gh_state == LM_ST_EXCLUSIVE) && gh != gh_head) in may_grant()
295 if (gl->gl_state == LM_ST_EXCLUSIVE) { in may_grant()
441 gl->gl_demote_state = LM_ST_EXCLUSIVE; in gfs2_demote_wake()
564 (gl->gl_state == LM_ST_EXCLUSIVE) || in do_xmote()
640 GLOCK_BUG_ON(gl, gl->gl_demote_state == LM_ST_EXCLUSIVE); in run_queue()
707 gl->gl_demote_state != LM_ST_EXCLUSIVE) { in glock_work_func()
834 gl->gl_demote_state = LM_ST_EXCLUSIVE; in gfs2_glock_get()
973 if (gl->gl_demote_state == LM_ST_EXCLUSIVE) { in handle_callback()
1671 case LM_ST_EXCLUSIVE: in state2str()
Dacl.c127 ret = gfs2_glock_nq_init(ip->i_gl, LM_ST_EXCLUSIVE, 0, &gh); in gfs2_set_acl()
Dxattr.c265 error = gfs2_glock_nq_init(rgd->rd_gl, LM_ST_EXCLUSIVE, 0, &rg_gh); in ea_dealloc_unstuffed()
1235 ret = gfs2_glock_nq_init(ip->i_gl, LM_ST_EXCLUSIVE, 0, &gh); in gfs2_xattr_set()
1239 if (WARN_ON_ONCE(ip->i_gl->gl_state != LM_ST_EXCLUSIVE)) in gfs2_xattr_set()
1302 gfs2_rlist_alloc(&rlist, LM_ST_EXCLUSIVE); in ea_dealloc_indirect()
1385 error = gfs2_glock_nq_init(rgd->rd_gl, LM_ST_EXCLUSIVE, 0, &gh); in ea_dealloc_block()
Dfile.c222 error = gfs2_glock_nq_init(ip->i_gl, LM_ST_EXCLUSIVE, 0, &gh); in do_gfs2_set_flags()
414 gfs2_holder_init(ip->i_gl, LM_ST_EXCLUSIVE, 0, &gh); in gfs2_page_mkwrite()
1069 gfs2_holder_init(ip->i_gl, LM_ST_EXCLUSIVE, 0, &gh); in gfs2_fallocate()
1175 state = (fl->fl_type == F_WRLCK) ? LM_ST_EXCLUSIVE : LM_ST_SHARED; in do_flock()
Dops_fstype.c397 LM_ST_EXCLUSIVE, LM_FLAG_NOEXP | GL_NOCACHE, in init_locking()
696 LM_ST_EXCLUSIVE, LM_FLAG_NOEXP, in init_journal()
884 error = gfs2_glock_nq_init(ip->i_gl, LM_ST_EXCLUSIVE, 0, in init_per_node()
892 error = gfs2_glock_nq_init(ip->i_gl, LM_ST_EXCLUSIVE, 0, in init_per_node()
Dquota.c896 error = gfs2_glock_nq_init(qda[qx]->qd_gl, LM_ST_EXCLUSIVE, in do_sync()
902 error = gfs2_glock_nq_init(ip->i_gl, LM_ST_EXCLUSIVE, 0, &i_gh); in do_sync()
1011 error = gfs2_glock_nq_init(qd->qd_gl, LM_ST_EXCLUSIVE, in do_glock()
1684 error = gfs2_glock_nq_init(qd->qd_gl, LM_ST_EXCLUSIVE, 0, &q_gh); in gfs2_set_dqblk()
1687 error = gfs2_glock_nq_init(ip->i_gl, LM_ST_EXCLUSIVE, 0, &i_gh); in gfs2_set_dqblk()
Drecovery.c429 LM_ST_EXCLUSIVE, in gfs2_recover_func()
Dbmap.c970 gfs2_holder_init(ip->i_gl, LM_ST_EXCLUSIVE, 0, &ip->i_gh); in gfs2_write_lock()
977 error = gfs2_glock_nq_init(m_ip->i_gl, LM_ST_EXCLUSIVE, in gfs2_write_lock()
1529 ret = gfs2_glock_nq_init(rgd->rd_gl, LM_ST_EXCLUSIVE, in sweep_bh_for_rgrps()
Dtrace_gfs2.h73 case LM_ST_EXCLUSIVE: in glock_trace_state()
Dlock_dlm.c193 case LM_ST_EXCLUSIVE: in make_mode()
Drgrp.c1426 ret = gfs2_glock_nq_init(rgd->rd_gl, LM_ST_EXCLUSIVE, 0, &gh); in gfs2_fitrim()
2074 LM_ST_EXCLUSIVE, flags, in gfs2_inplace_reserve()
Ddir.c2021 gfs2_rlist_alloc(&rlist, LM_ST_EXCLUSIVE); in leaf_dealloc()