Home
last modified time | relevance | path

Searched refs:gfs2_glock (Results 1 – 25 of 25) sorted by relevance

/linux-4.4.14/fs/gfs2/
Dglock.h130 void (*lm_put_lock) (struct gfs2_glock *gl);
131 int (*lm_lock) (struct gfs2_glock *gl, unsigned int req_state,
133 void (*lm_cancel) (struct gfs2_glock *gl);
138 static inline struct gfs2_holder *gfs2_glock_is_locked_by_me(struct gfs2_glock *gl) in gfs2_glock_is_locked_by_me()
159 static inline int gfs2_glock_is_held_excl(struct gfs2_glock *gl) in gfs2_glock_is_held_excl()
164 static inline int gfs2_glock_is_held_dfrd(struct gfs2_glock *gl) in gfs2_glock_is_held_dfrd()
169 static inline int gfs2_glock_is_held_shrd(struct gfs2_glock *gl) in gfs2_glock_is_held_shrd()
174 static inline struct address_space *gfs2_glock2aspace(struct gfs2_glock *gl) in gfs2_glock2aspace()
183 int create, struct gfs2_glock **glp);
184 extern void gfs2_glock_put(struct gfs2_glock *gl);
[all …]
Dincore.h33 struct gfs2_glock;
40 typedef void (*gfs2_glop_bh_t) (struct gfs2_glock *gl, unsigned int ret);
81 struct gfs2_glock *rd_gl; /* Glock for this rgrp */
146 struct gfs2_glock *bd_gl;
219 void (*go_sync) (struct gfs2_glock *gl);
220 int (*go_xmote_bh) (struct gfs2_glock *gl, struct gfs2_holder *gh);
221 void (*go_inval) (struct gfs2_glock *gl, int flags);
222 int (*go_demote_ok) (const struct gfs2_glock *gl);
225 void (*go_dump)(struct seq_file *seq, const struct gfs2_glock *gl);
226 void (*go_callback)(struct gfs2_glock *gl, bool remote);
[all …]
Dglock.c56 struct gfs2_glock *gl; /* current glock struct */
60 typedef void (*glock_examiner) (struct gfs2_glock * gl);
62 static void do_xmote(struct gfs2_glock *gl, struct gfs2_holder *gh, unsigned int target);
77 .key_offset = offsetof(struct gfs2_glock, gl_name),
78 .head_offset = offsetof(struct gfs2_glock, gl_node),
83 void gfs2_glock_free(struct gfs2_glock *gl) in gfs2_glock_free()
103 static void gfs2_glock_hold(struct gfs2_glock *gl) in gfs2_glock_hold()
116 static int demote_ok(const struct gfs2_glock *gl) in demote_ok()
130 void gfs2_glock_add_to_lru(struct gfs2_glock *gl) in gfs2_glock_add_to_lru()
144 static void gfs2_glock_remove_from_lru(struct gfs2_glock *gl) in gfs2_glock_remove_from_lru()
[all …]
Dmeta_io.h47 return (((struct gfs2_glock *)mapping) - 1)->gl_name.ln_sbd; in gfs2_mapping2sbd()
54 extern struct buffer_head *gfs2_meta_new(struct gfs2_glock *gl, u64 blkno);
55 extern int gfs2_meta_read(struct gfs2_glock *gl, u64 blkno, int flags,
58 extern struct buffer_head *gfs2_getbuf(struct gfs2_glock *gl, u64 blkno,
72 struct buffer_head *gfs2_meta_ra(struct gfs2_glock *gl, u64 dblock, u32 extlen);
Dglops.c33 static void gfs2_ail_error(struct gfs2_glock *gl, const struct buffer_head *bh) in gfs2_ail_error()
54 static void __gfs2_ail_flush(struct gfs2_glock *gl, bool fsync, in __gfs2_ail_flush()
83 static void gfs2_ail_empty_gl(struct gfs2_glock *gl) in gfs2_ail_empty_gl()
112 void gfs2_ail_flush(struct gfs2_glock *gl, bool fsync) in gfs2_ail_flush()
142 static void rgrp_go_sync(struct gfs2_glock *gl) in rgrp_go_sync()
182 static void rgrp_go_inval(struct gfs2_glock *gl, int flags) in rgrp_go_inval()
205 static void inode_go_sync(struct gfs2_glock *gl) in inode_go_sync()
253 static void inode_go_inval(struct gfs2_glock *gl, int flags) in inode_go_inval()
284 static int inode_go_demote_ok(const struct gfs2_glock *gl) in inode_go_demote_ok()
420 struct gfs2_glock *gl = gh->gh_gl; in inode_go_lock()
[all …]
Dtrans.h16 struct gfs2_glock;
42 extern void gfs2_trans_add_data(struct gfs2_glock *gl, struct buffer_head *bh);
43 extern void gfs2_trans_add_meta(struct gfs2_glock *gl, struct buffer_head *bh);
Dmain.c50 struct gfs2_glock *gl = foo; in gfs2_init_glock_once()
63 struct gfs2_glock *gl = foo; in gfs2_init_gl_aspace_once()
98 sizeof(struct gfs2_glock), in init_gfs2_fs()
105 sizeof(struct gfs2_glock) + in init_gfs2_fs()
Dmeta_io.c114 struct buffer_head *gfs2_getbuf(struct gfs2_glock *gl, u64 blkno, int create) in gfs2_getbuf()
182 struct buffer_head *gfs2_meta_new(struct gfs2_glock *gl, u64 blkno) in gfs2_meta_new()
200 int gfs2_meta_read(struct gfs2_glock *gl, u64 blkno, int flags, in gfs2_meta_read()
340 struct gfs2_glock *gl = ip->i_gl; in gfs2_meta_indirect_buffer()
363 struct buffer_head *gfs2_meta_ra(struct gfs2_glock *gl, u64 dblock, u32 extlen) in gfs2_meta_ra()
Dglops.h28 extern void gfs2_ail_flush(struct gfs2_glock *gl, bool fsync);
Dtrans.c125 static struct gfs2_bufdata *gfs2_alloc_bufdata(struct gfs2_glock *gl, in gfs2_alloc_bufdata()
158 void gfs2_trans_add_data(struct gfs2_glock *gl, struct buffer_head *bh) in gfs2_trans_add_data()
226 void gfs2_trans_add_meta(struct gfs2_glock *gl, struct buffer_head *bh) in gfs2_trans_add_meta()
Dlock_dlm.c73 static inline void gfs2_update_reply_times(struct gfs2_glock *gl) in gfs2_update_reply_times()
100 static inline void gfs2_update_request_times(struct gfs2_glock *gl) in gfs2_update_request_times()
119 struct gfs2_glock *gl = arg; in gdlm_ast()
168 struct gfs2_glock *gl = arg; in gdlm_bast()
205 static u32 make_flags(struct gfs2_glock *gl, const unsigned int gfs_flags, in make_flags()
253 static int gdlm_lock(struct gfs2_glock *gl, unsigned int req_state, in gdlm_lock()
282 static void gdlm_put_lock(struct gfs2_glock *gl) in gdlm_put_lock()
320 static void gdlm_cancel(struct gfs2_glock *gl) in gdlm_cancel()
Dlops.c72 struct gfs2_glock *gl = bd->bd_gl; in maybe_release_space()
118 struct gfs2_glock *gl = bd->bd_gl; in gfs2_unpin()
529 struct gfs2_glock *gl = ip->i_gl; in buf_lo_scan_elements()
578 static void gfs2_meta_sync(struct gfs2_glock *gl) in gfs2_meta_sync()
656 struct gfs2_glock *gl; in revoke_lo_after_commit()
766 struct gfs2_glock *gl = ip->i_gl; in databuf_lo_scan_elements()
Dlog.h74 extern void gfs2_log_flush(struct gfs2_sbd *sdp, struct gfs2_glock *gl,
Dtrace_gfs2.h91 TP_PROTO(const struct gfs2_glock *gl, unsigned int new_state),
130 TP_PROTO(const struct gfs2_glock *gl),
162 TP_PROTO(const struct gfs2_glock *gl, bool remote),
259 TP_PROTO(const struct gfs2_glock *gl, s64 tdiff),
Drgrp.h74 extern void gfs2_rgrp_dump(struct seq_file *seq, const struct gfs2_glock *gl);
Dlog.c98 struct gfs2_glock *gl = NULL; in gfs2_ail1_start_one()
581 struct gfs2_glock *gl = bd->bd_gl; in gfs2_add_revoke()
704 void gfs2_log_flush(struct gfs2_sbd *sdp, struct gfs2_glock *gl, in gfs2_log_flush()
Drgrp.c723 struct gfs2_glock *gl; in gfs2_clear_rgrpd()
1033 struct gfs2_glock *gl = ip->i_gl; in gfs2_rindex_update()
1150 struct gfs2_glock *gl = rgd->rd_gl; in gfs2_rgrp_bh_get()
1782 struct gfs2_glock *gl; in try_rgrp_unlink()
1863 const struct gfs2_glock *gl = rgd->rd_gl; in gfs2_rgrp_congested()
1956 struct gfs2_glock *gl = rgd->rd_gl; in fast_to_acquire()
2226 void gfs2_rgrp_dump(struct seq_file *seq, const struct gfs2_glock *gl) in gfs2_rgrp_dump()
Dsuper.c402 struct gfs2_glock *j_gl = ip->i_gl; in gfs2_make_fs_rw()
1303 struct gfs2_glock *gl = ip->i_iopen_gh.gh_gl; in gfs2_drop_inode()
1428 struct gfs2_glock *gl = ip->i_gl; in gfs2_final_release_pages()
Drecovery.c36 struct gfs2_glock *gl = ip->i_gl; in gfs2_replay_read_block()
Dbmap.c273 static void gfs2_metapath_ra(struct gfs2_glock *gl, in gfs2_metapath_ra()
400 struct gfs2_glock *gl, unsigned int i, in gfs2_indirect_init()
Dinode.c145 struct gfs2_glock *io_gl = NULL; in gfs2_inode_lookup()
595 struct gfs2_glock *io_gl; in gfs2_create_inode()
834 struct gfs2_glock *gl; in __gfs2_lookup()
Dsys.c241 struct gfs2_glock *gl; in demote_rq_store()
Dfile.c1019 struct gfs2_glock *gl; in do_flock()
Ddir.c1398 struct gfs2_glock *gl = ip->i_gl; in gfs2_dir_readahead()
/linux-4.4.14/Documentation/filesystems/
Dgfs2-glocks.txt5 internals. Each glock (struct gfs2_glock in fs/gfs2/incore.h)