/kernel/linux/linux-5.10/fs/gfs2/ |
D | super.c | 139 struct gfs2_glock *j_gl = ip->i_gl; in gfs2_make_fs_rw() 194 error = gfs2_glock_nq_init(m_ip->i_gl, LM_ST_EXCLUSIVE, GL_NOCACHE, in gfs2_statfs_init() 245 gfs2_trans_add_meta(l_ip->i_gl, l_bh); in gfs2_statfs_change() 273 gfs2_trans_add_meta(l_ip->i_gl, l_bh); in update_statfs() 274 gfs2_trans_add_meta(m_ip->i_gl, m_bh); in update_statfs() 299 error = gfs2_glock_nq_init(m_ip->i_gl, LM_ST_EXCLUSIVE, GL_NOCACHE, in gfs2_statfs_sync() 372 error = gfs2_glock_nq_init(ip->i_gl, LM_ST_SHARED, 0, &lfcc->gh); in gfs2_lock_fs_check_clean() 460 struct address_space *metamapping = gfs2_glock2aspace(ip->i_gl); in gfs2_write_inode() 466 gfs2_log_flush(GFS2_SB(inode), ip->i_gl, in gfs2_write_inode() 513 if (!gfs2_glock_is_locked_by_me(ip->i_gl)) { in gfs2_dirty_inode() [all …]
|
D | inode.c | 145 error = gfs2_glock_get(sdp, no_addr, &gfs2_inode_glops, CREATE, &ip->i_gl); in gfs2_inode_lookup() 148 flush_delayed_work(&ip->i_gl->gl_work); in gfs2_inode_lookup() 162 error = gfs2_glock_nq_init(ip->i_gl, LM_ST_EXCLUSIVE, in gfs2_inode_lookup() 169 gfs2_inode_already_deleted(ip->i_gl, no_formal_ino)) in gfs2_inode_lookup() 180 glock_set_object(ip->i_gl, ip); in gfs2_inode_lookup() 317 if (gfs2_glock_is_locked_by_me(dip->i_gl) == NULL) { in gfs2_lookupi() 318 error = gfs2_glock_nq_init(dip->i_gl, LM_ST_SHARED, 0, &d_gh); in gfs2_lookupi() 456 bh = gfs2_meta_new(ip->i_gl, ip->i_eattr); in gfs2_init_xattr() 457 gfs2_trans_add_meta(ip->i_gl, bh); in gfs2_init_xattr() 484 dibh = gfs2_meta_new(ip->i_gl, ip->i_no_addr); in init_dinode() [all …]
|
D | xattr.c | 120 error = gfs2_meta_read(ip->i_gl, ip->i_eattr, DIO_WAIT, 0, &bh); in ea_foreach() 144 error = gfs2_meta_read(ip->i_gl, bn, DIO_WAIT, 0, &eabh); in ea_foreach() 271 gfs2_trans_add_meta(ip->i_gl, bh); in ea_dealloc_unstuffed() 411 error = gfs2_glock_nq_init(ip->i_gl, LM_ST_SHARED, LM_FLAG_ANY, &i_gh); in gfs2_listxattr() 457 error = gfs2_meta_read(ip->i_gl, be64_to_cpu(*dataptrs), 0, 0, in gfs2_iter_unstuffed() 490 gfs2_trans_add_meta(ip->i_gl, bh[x]); in gfs2_iter_unstuffed() 599 if (!gfs2_glock_is_locked_by_me(ip->i_gl)) { in gfs2_xattr_get() 600 ret = gfs2_glock_nq_init(ip->i_gl, LM_ST_SHARED, LM_FLAG_ANY, &gh); in gfs2_xattr_get() 632 *bhp = gfs2_meta_new(ip->i_gl, block); in ea_alloc_blk() 633 gfs2_trans_add_meta(ip->i_gl, *bhp); in ea_alloc_blk() [all …]
|
D | acl.c | 67 if (!gfs2_glock_is_locked_by_me(ip->i_gl)) { in gfs2_get_acl() 68 int ret = gfs2_glock_nq_init(ip->i_gl, LM_ST_SHARED, in gfs2_get_acl() 124 if (!gfs2_glock_is_locked_by_me(ip->i_gl)) { in gfs2_set_acl() 125 ret = gfs2_glock_nq_init(ip->i_gl, LM_ST_EXCLUSIVE, 0, &gh); in gfs2_set_acl()
|
D | util.c | 59 error = gfs2_glock_nq_init(ip->i_gl, LM_ST_SHARED, LM_FLAG_NOEXP | in check_journal_clean() 124 struct gfs2_glock *i_gl; in signal_our_withdraw() local 135 i_gl = ip->i_gl; in signal_our_withdraw() 189 wait_on_bit(&i_gl->gl_flags, GLF_DEMOTE, in signal_our_withdraw() 210 if (i_gl->gl_ops->go_free) { in signal_our_withdraw() 211 set_bit(GLF_FREEING, &i_gl->gl_flags); in signal_our_withdraw() 212 wait_on_bit(&i_gl->gl_flags, GLF_FREEING, TASK_UNINTERRUPTIBLE); in signal_our_withdraw()
|
D | file.c | 64 error = gfs2_glock_nq_init(ip->i_gl, LM_ST_SHARED, LM_FLAG_ANY, in gfs2_llseek() 110 error = gfs2_glock_nq_init(dip->i_gl, LM_ST_SHARED, 0, &d_gh); in gfs2_readdir() 164 gfs2_holder_init(ip->i_gl, LM_ST_SHARED, 0, &gh); in gfs2_get_flags() 231 error = gfs2_glock_nq_init(ip->i_gl, LM_ST_EXCLUSIVE, 0, &gh); in do_gfs2_set_flags() 265 gfs2_log_flush(sdp, ip->i_gl, in do_gfs2_set_flags() 284 gfs2_trans_add_meta(ip->i_gl, bh); in do_gfs2_set_flags() 461 gfs2_holder_init(ip->i_gl, LM_ST_EXCLUSIVE, 0, &gh); in gfs2_page_mkwrite() 484 set_bit(GLF_DIRTY, &ip->i_gl->gl_flags); in gfs2_page_mkwrite() 569 gfs2_holder_init(ip->i_gl, LM_ST_SHARED, 0, &gh); in gfs2_fault() 609 error = gfs2_glock_nq_init(ip->i_gl, LM_ST_SHARED, LM_FLAG_ANY, in gfs2_mmap() [all …]
|
D | dentry.c | 63 had_lock = (gfs2_glock_is_locked_by_me(dip->i_gl) != NULL); in gfs2_drevalidate() 65 error = gfs2_glock_nq_init(dip->i_gl, LM_ST_SHARED, 0, &d_gh); in gfs2_drevalidate()
|
D | dir.c | 94 bh = gfs2_meta_new(ip->i_gl, block); in gfs2_dir_get_new_buffer() 95 gfs2_trans_add_meta(ip->i_gl, bh); in gfs2_dir_get_new_buffer() 108 error = gfs2_meta_read(ip->i_gl, block, DIO_WAIT, 0, &bh); in gfs2_dir_get_existing_buffer() 129 gfs2_trans_add_meta(ip->i_gl, dibh); in gfs2_dir_write_stuffed() 210 gfs2_trans_add_meta(ip->i_gl, bh); in gfs2_dir_write_data() 232 gfs2_trans_add_meta(ip->i_gl, dibh); in gfs2_dir_write_data() 302 bh = gfs2_meta_ra(ip->i_gl, dblock, extlen); in gfs2_dir_read_data() 304 error = gfs2_meta_read(ip->i_gl, dblock, DIO_WAIT, 0, &bh); in gfs2_dir_read_data() 679 gfs2_trans_add_meta(dip->i_gl, bh); in dirent_del() 718 gfs2_trans_add_meta(ip->i_gl, bh); in do_init_dirent() [all …]
|
D | bmap.c | 94 gfs2_trans_add_data(ip->i_gl, bh); in gfs2_unstuffer_page() 158 gfs2_trans_add_meta(ip->i_gl, dibh); in gfs2_unstuff_dinode() 682 gfs2_trans_add_meta(ip->i_gl, dibh); in gfs2_iomap_alloc() 726 gfs2_indirect_init(mp, ip->i_gl, i, 0, bn++); in gfs2_iomap_alloc() 752 gfs2_trans_add_meta(ip->i_gl, mp->mp_bh[i-1]); in gfs2_iomap_alloc() 754 gfs2_indirect_init(mp, ip->i_gl, i, in gfs2_iomap_alloc() 764 gfs2_trans_add_meta(ip->i_gl, mp->mp_bh[end_of_metadata]); in gfs2_iomap_alloc() 996 gfs2_holder_init(ip->i_gl, LM_ST_EXCLUSIVE, 0, &ip->i_gh); in gfs2_write_lock() 1003 error = gfs2_glock_nq_init(m_ip->i_gl, LM_ST_EXCLUSIVE, in gfs2_write_lock() 1252 set_bit(GLF_DIRTY, &ip->i_gl->gl_flags); in gfs2_iomap_end() [all …]
|
D | aops.c | 57 gfs2_trans_add_data(ip->i_gl, bh); in gfs2_page_add_databufs() 96 if (gfs2_assert_withdraw(sdp, gfs2_glock_is_held_excl(ip->i_gl))) in gfs2_writepage() 183 if (gfs2_assert_withdraw(sdp, gfs2_glock_is_held_excl(ip->i_gl))) in gfs2_jdata_writepage() 418 gfs2_log_flush(sdp, ip->i_gl, GFS2_LOG_HEAD_FLUSH_NORMAL | in gfs2_jdata_writepages() 646 error = gfs2_glock_nq_init(ip->i_gl, LM_ST_SHARED, LM_FLAG_ANY, &i_gh); in gfs2_bmap()
|
D | lops.c | 761 struct gfs2_glock *gl = ip->i_gl; in buf_lo_scan_elements() 828 gfs2_inode_metasync(ip->i_gl); in buf_lo_after_scan() 834 gfs2_inode_metasync(ip->i_gl); in buf_lo_after_scan() 992 struct gfs2_glock *gl = ip->i_gl; in databuf_lo_scan_elements() 1043 gfs2_inode_metasync(ip->i_gl); in databuf_lo_after_scan() 1050 gfs2_inode_metasync(ip->i_gl); in databuf_lo_after_scan()
|
D | recovery.c | 36 struct gfs2_glock *gl = ip->i_gl; in gfs2_replay_read_block() 352 gfs2_inode_metasync(ip->i_gl); in update_statfs_inode() 445 error = gfs2_glock_nq_init(ip->i_gl, LM_ST_SHARED, in gfs2_recover_func()
|
D | quota.c | 388 error = gfs2_meta_read(ip->i_gl, bh_map.b_blocknr, DIO_WAIT, 0, &bh); in bh_get() 668 gfs2_trans_add_meta(ip->i_gl, qd->qd_bh); in do_qc() 751 gfs2_trans_add_data(ip->i_gl, bh); in gfs2_write_buf_to_page() 916 error = gfs2_glock_nq_init(ip->i_gl, LM_ST_EXCLUSIVE, 0, &i_gh); in do_sync() 975 gfs2_log_flush(ip->i_gl->gl_name.ln_sbd, ip->i_gl, in do_sync() 1032 error = gfs2_glock_nq_init(ip->i_gl, LM_ST_SHARED, 0, &i_gh); in do_glock() 1392 bh = gfs2_meta_ra(ip->i_gl, dblock, extlen); in gfs2_quota_init() 1705 error = gfs2_glock_nq_init(ip->i_gl, LM_ST_EXCLUSIVE, 0, &i_gh); in gfs2_set_dqblk()
|
D | meta_io.c | 443 bh = gfs2_getbuf(ip->i_gl, bstart, NO_CREATE); in gfs2_journal_wipe() 478 struct gfs2_glock *gl = ip->i_gl; in gfs2_meta_indirect_buffer()
|
D | trace_gfs2.h | 458 __entry->dev = ip->i_gl->gl_name.ln_sbd->sd_vfs->s_dev; 494 __entry->dev = ip->i_gl->gl_name.ln_sbd->sd_vfs->s_dev; 526 __entry->dev = ip->i_gl->gl_name.ln_sbd->sd_vfs->s_dev;
|
D | export.c | 112 error = gfs2_glock_nq_init(dip->i_gl, LM_ST_SHARED, 0, &gh); in gfs2_get_name()
|
D | ops_fstype.c | 568 error = gfs2_glock_nq_init(dip->i_gl, LM_ST_SHARED, 0, ji_gh); in gfs2_jindex_hold() 681 error = gfs2_glock_nq_init(ip->i_gl, LM_ST_EXCLUSIVE, 0, in init_statfs() 769 sdp->sd_jinode_gl = ip->i_gl; in init_journal() 770 error = gfs2_glock_nq_init(ip->i_gl, LM_ST_SHARED, in init_journal() 942 error = gfs2_glock_nq_init(ip->i_gl, LM_ST_EXCLUSIVE, 0, in init_per_node()
|
D | incore.h | 411 struct gfs2_glock *i_gl; /* Move into i_gh? */ member
|
D | glock.c | 577 if (gl == m_ip->i_gl) in is_system_glock() 852 inode_gl = ip->i_gl; in gfs2_try_evict() 2022 struct gfs2_glock *gl = ip->i_gl; in gfs2_glock_finish_truncate()
|
D | glops.c | 618 struct gfs2_glock *j_gl = ip->i_gl; in freeze_go_xmote_bh()
|
D | rgrp.c | 1020 struct gfs2_glock *gl = ip->i_gl; in gfs2_rindex_update() 2389 gfs2_trans_add_meta(ip->i_gl, dibh); in gfs2_alloc_blocks()
|