| /linux/fs/gfs2/ |
| H A D | glock.h | 141 void (*lm_put_lock) (struct gfs2_glock *gl); 142 int (*lm_lock) (struct gfs2_glock *gl, unsigned int req_state, 144 void (*lm_cancel) (struct gfs2_glock *gl); 149 struct gfs2_glock glock; 153 static inline struct gfs2_holder *gfs2_glock_is_locked_by_me(struct gfs2_glock *gl) in gfs2_glock_is_locked_by_me() 174 static inline struct address_space *gfs2_glock2aspace(struct gfs2_glock *gl) in gfs2_glock2aspace() 186 int create, struct gfs2_glock **glp); 187 struct gfs2_glock *gfs2_glock_hold(struct gfs2_glock *gl); 188 void gfs2_glock_put(struct gfs2_glock *gl); 189 void gfs2_glock_put_async(struct gfs2_glock *gl); [all …]
|
| H A D | glock.c | 57 struct gfs2_glock *gl; /* current glock struct */ 61 typedef void (*glock_examiner) (struct gfs2_glock * gl); 63 static void do_xmote(struct gfs2_glock *gl, struct gfs2_holder *gh, 65 static void request_demote(struct gfs2_glock *gl, unsigned int state, 79 .key_offset = offsetof(struct gfs2_glock, gl_name), 80 .head_offset = offsetof(struct gfs2_glock, gl_node), 120 static void wake_up_glock(struct gfs2_glock *gl) in wake_up_glock() 130 struct gfs2_glock *gl = container_of(rcu, struct gfs2_glock, gl_rcu); in gfs2_glock_dealloc() 141 static void __gfs2_glock_free(struct gfs2_glock *gl) in __gfs2_glock_free() 149 void gfs2_glock_free(struct gfs2_glock *gl) { in gfs2_glock_free() [all …]
|
| H A D | incore.h | 31 struct gfs2_glock; 38 typedef void (*gfs2_glop_bh_t) (struct gfs2_glock *gl, unsigned int ret); 103 struct gfs2_glock *rd_gl; /* Glock for this rgrp */ 142 struct gfs2_glock *bd_gl; 218 int (*go_sync) (struct gfs2_glock *gl); 219 int (*go_xmote_bh)(struct gfs2_glock *gl); 220 void (*go_inval) (struct gfs2_glock *gl, int flags); 221 int (*go_instantiate) (struct gfs2_glock *gl); 223 void (*go_dump)(struct seq_file *seq, const struct gfs2_glock *gl, 225 void (*go_callback)(struct gfs2_glock *gl, bool remote); [all …]
|
| H A D | glops.c | 33 static void gfs2_ail_error(struct gfs2_glock *gl, const struct buffer_head *bh) in gfs2_ail_error() 58 static void __gfs2_ail_flush(struct gfs2_glock *gl, bool fsync, in __gfs2_ail_flush() 87 static int gfs2_ail_empty_gl(struct gfs2_glock *gl) in gfs2_ail_empty_gl() 140 void gfs2_ail_flush(struct gfs2_glock *gl, bool fsync) in gfs2_ail_flush() 164 static int gfs2_rgrp_metasync(struct gfs2_glock *gl) in gfs2_rgrp_metasync() 192 static int rgrp_go_sync(struct gfs2_glock *gl) in rgrp_go_sync() 221 static void rgrp_go_inval(struct gfs2_glock *gl, int flags) in rgrp_go_inval() 239 static void gfs2_rgrp_go_dump(struct seq_file *seq, const struct gfs2_glock *gl, in gfs2_rgrp_go_dump() 248 static struct gfs2_inode *gfs2_glock2inode(struct gfs2_glock *gl) in gfs2_glock2inode() 260 struct gfs2_rgrpd *gfs2_glock2rgrp(struct gfs2_glock *gl) in gfs2_glock2rgrp() [all …]
|
| H A D | trans.h | 13 struct gfs2_glock; 44 void gfs2_trans_add_data(struct gfs2_glock *gl, struct buffer_head *bh); 45 void gfs2_trans_add_databufs(struct gfs2_glock *gl, struct folio *folio, 47 void gfs2_trans_add_meta(struct gfs2_glock *gl, struct buffer_head *bh);
|
| H A D | meta_io.h | 51 struct buffer_head *gfs2_meta_new(struct gfs2_glock *gl, u64 blkno); 52 int gfs2_meta_read(struct gfs2_glock *gl, u64 blkno, int flags, 55 struct buffer_head *gfs2_getbuf(struct gfs2_glock *gl, u64 blkno, 73 struct buffer_head *gfs2_meta_ra(struct gfs2_glock *gl, u64 dblock, u32 extlen);
|
| H A D | glops.h | 25 int gfs2_inode_metasync(struct gfs2_glock *gl); 26 void gfs2_ail_flush(struct gfs2_glock *gl, bool fsync);
|
| H A D | log.h | 75 void gfs2_log_flush(struct gfs2_sbd *sdp, struct gfs2_glock *gl, 83 void gfs2_glock_remove_revoke(struct gfs2_glock *gl);
|
| H A D | meta_io.c | 126 struct buffer_head *gfs2_getbuf(struct gfs2_glock *gl, u64 blkno, int create) in gfs2_getbuf() 193 struct buffer_head *gfs2_meta_new(struct gfs2_glock *gl, u64 blkno) in gfs2_meta_new() 259 int gfs2_meta_read(struct gfs2_glock *gl, u64 blkno, int flags, in gfs2_meta_read() 487 struct gfs2_glock *gl = ip->i_gl; in gfs2_meta_buffer() 514 struct buffer_head *gfs2_meta_ra(struct gfs2_glock *gl, u64 dblock, u32 extlen) in gfs2_meta_ra()
|
| H A D | trans.c | 168 static struct gfs2_bufdata *gfs2_alloc_bufdata(struct gfs2_glock *gl, in gfs2_alloc_bufdata() 197 void gfs2_trans_add_data(struct gfs2_glock *gl, struct buffer_head *bh) in gfs2_trans_add_data() 234 void gfs2_trans_add_databufs(struct gfs2_glock *gl, struct folio *folio, in gfs2_trans_add_databufs() 255 void gfs2_trans_add_meta(struct gfs2_glock *gl, struct buffer_head *bh) in gfs2_trans_add_meta()
|
| H A D | lock_dlm.c | 74 static inline void gfs2_update_reply_times(struct gfs2_glock *gl, in gfs2_update_reply_times() 101 static inline void gfs2_update_request_times(struct gfs2_glock *gl) in gfs2_update_request_times() 120 struct gfs2_glock *gl = arg; in gdlm_ast() 183 struct gfs2_glock *gl = arg; in gdlm_bast() 236 static u32 make_flags(struct gfs2_glock *gl, const unsigned int gfs_flags, in make_flags() 277 static int gdlm_lock(struct gfs2_glock *gl, unsigned int req_state, in gdlm_lock() 325 static void gdlm_put_lock(struct gfs2_glock *gl) in gdlm_put_lock() 384 static void gdlm_cancel(struct gfs2_glock *gl) in gdlm_cancel()
|
| H A D | main.c | 52 struct gfs2_glock *gl = foo; in gfs2_init_glock_once() 97 sizeof(struct gfs2_glock), in init_gfs2_fs()
|
| H A D | super.c | 136 struct gfs2_glock *j_gl = ip->i_gl; in gfs2_make_fs_rw() 1012 struct gfs2_glock *gl = ip->i_iopen_gh.gh_gl; in gfs2_drop_inode() 1025 struct gfs2_glock *gl = ip->i_iopen_gh.gh_gl; in gfs2_drop_inode() 1167 static void gfs2_glock_put_eventually(struct gfs2_glock *gl) in gfs2_glock_put_eventually() 1405 struct gfs2_glock *io_gl = ip->i_iopen_gh.gh_gl; in gfs2_evict_inode() 1436 struct gfs2_glock *gl = ip->i_iopen_gh.gh_gl; in gfs2_evict_inode()
|
| H A D | lops.c | 73 struct gfs2_glock *gl = bd->bd_gl; in maybe_release_space() 122 struct gfs2_glock *gl = bd->bd_gl; in gfs2_unpin() 780 struct gfs2_glock *gl = ip->i_gl; in buf_lo_scan_elements() 890 struct gfs2_glock *gl; in gfs2_drain_revokes() 1004 struct gfs2_glock *gl = ip->i_gl; in databuf_lo_scan_elements()
|
| H A D | trace_gfs2.h | 98 TP_PROTO(const struct gfs2_glock *gl, unsigned int new_state), 137 TP_PROTO(const struct gfs2_glock *gl), 169 TP_PROTO(const struct gfs2_glock *gl, bool remote), 263 TP_PROTO(const struct gfs2_glock *gl, s64 tdiff),
|
| H A D | rgrp.h | 34 int gfs2_rgrp_go_instantiate(struct gfs2_glock *gl);
|
| H A D | log.c | 98 struct gfs2_glock *gl = NULL; in gfs2_ail1_start_one() 765 struct gfs2_glock *gl = bd->bd_gl; in gfs2_add_revoke() 778 void gfs2_glock_remove_revoke(struct gfs2_glock *gl) in gfs2_glock_remove_revoke() 1028 void gfs2_log_flush(struct gfs2_sbd *sdp, struct gfs2_glock *gl, u32 flags) in gfs2_log_flush()
|
| H A D | inode.c | 145 struct gfs2_glock *io_gl; in gfs2_inode_lookup() 459 struct gfs2_glock *gl = ip->i_gl; in gfs2_final_release_pages() 711 struct gfs2_glock *io_gl; in gfs2_create_inode() 987 struct gfs2_glock *gl; in __gfs2_lookup() 1971 struct gfs2_glock *gl; in gfs2_permission() 2275 struct gfs2_glock *gl = ip->i_gl; in gfs2_update_time()
|
| H A D | rgrp.c | 720 struct gfs2_glock *gl; in gfs2_clear_rgrpd() 1037 struct gfs2_glock *gl = ip->i_gl; in gfs2_rindex_update() 1199 int gfs2_rgrp_go_instantiate(struct gfs2_glock *gl) in gfs2_rgrp_go_instantiate() 1846 struct gfs2_glock *gl; in try_rgrp_unlink() 1925 const struct gfs2_glock *gl = rgd->rd_gl; in gfs2_rgrp_congested() 2017 struct gfs2_glock *gl = rgd->rd_gl; in fast_to_acquire()
|
| H A D | recovery.c | 36 struct gfs2_glock *gl = ip->i_gl; in gfs2_replay_read_block()
|
| H A D | file.c | 1472 struct gfs2_glock *gl = gfs2_glock_hold(fl_gh->gh_gl); in __flock_holder_uninit() 1490 struct gfs2_glock *gl; in do_flock()
|
| H A D | sys.c | 296 struct gfs2_glock *gl; in demote_rq_store()
|
| H A D | bmap.c | 294 static void gfs2_metapath_ra(struct gfs2_glock *gl, __be64 *start, __be64 *end) in gfs2_metapath_ra() 609 struct gfs2_glock *gl, unsigned int i, in gfs2_indirect_init()
|
| /linux/Documentation/translations/zh_CN/filesystems/ |
| H A D | gfs2-glocks.rst | 20 fs/gfs2/incore.h 中的 struct gfs2_glock)包含两把主要的内部锁:
|
| /linux/Documentation/filesystems/gfs2/ |
| H A D | glocks.rst | 8 internals. Each glock (struct gfs2_glock in fs/gfs2/incore.h)
|