/linux/fs/gfs2/ |
H A D | log.h | 29 static inline void gfs2_log_lock(struct gfs2_sbd *sdp) in gfs2_log_lock() 41 static inline void gfs2_log_unlock(struct gfs2_sbd *sdp) in gfs2_log_unlock() 47 static inline void gfs2_log_pointers_init(struct gfs2_sbd *sdp, in gfs2_log_pointers_init() 60 struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode); in gfs2_ordered_add_inode() 76 bool gfs2_log_is_empty(struct gfs2_sbd *sdp); 78 void gfs2_log_release(struct gfs2_sbd *sdp, unsigned int blks); 81 void gfs2_log_reserve(struct gfs2_sbd *sdp, struct gfs2_trans *tr, 86 void gfs2_log_flush(struct gfs2_sbd *sdp, struct gfs2_glock *gl, 90 void log_flush_wait(struct gfs2_sbd *sdp); 95 void gfs2_flush_revokes(struct gfs2_sbd *sdp); [all …]
|
H A D | super.h | 18 void gfs2_lm_unmount(struct gfs2_sbd *sdp); 20 static inline unsigned int gfs2_jindex_size(struct gfs2_sbd *sdp) in gfs2_jindex_size() 29 void gfs2_jindex_free(struct gfs2_sbd *sdp); 36 int gfs2_make_fs_rw(struct gfs2_sbd *sdp); 37 void gfs2_make_fs_ro(struct gfs2_sbd *sdp); 38 void gfs2_online_uevent(struct gfs2_sbd *sdp); 39 void gfs2_destroy_threads(struct gfs2_sbd *sdp); 40 int gfs2_statfs_init(struct gfs2_sbd *sdp); 52 void free_local_statfs_inodes(struct gfs2_sbd *sdp); 53 struct inode *find_local_statfs_inode(struct gfs2_sbd *sdp, [all …]
|
H A D | util.h | 28 void gfs2_assert_i(struct gfs2_sbd *sdp); 39 void gfs2_assert_withdraw_i(struct gfs2_sbd *sdp, char *assertion, 61 void gfs2_assert_warn_i(struct gfs2_sbd *sdp, char *assertion, 73 void gfs2_consist_i(struct gfs2_sbd *sdp, 98 static inline int gfs2_meta_check(struct gfs2_sbd *sdp, in gfs2_meta_check() 116 static inline int gfs2_metatype_check_i(struct gfs2_sbd *sdp, in gfs2_metatype_check_i() 152 int gfs2_freeze_lock_shared(struct gfs2_sbd *sdp); 153 void gfs2_freeze_unlock(struct gfs2_sbd *sdp); 215 static inline bool gfs2_withdrawing(struct gfs2_sbd *sdp) in gfs2_withdrawing() 230 void gfs2_lm(struct gfs2_sbd *sdp, const char *fmt, ...); [all …]
|
H A D | sys.c | 32 ssize_t (*show)(struct gfs2_sbd *, char *); 33 ssize_t (*store)(struct gfs2_sbd *, const char *, size_t); 39 struct gfs2_sbd *sdp = container_of(kobj, struct gfs2_sbd, sd_kobj); in gfs2_attr_show() 47 struct gfs2_sbd *sdp = container_of(kobj, struct gfs2_sbd, sd_kobj); in gfs2_attr_store() 60 static ssize_t id_show(struct gfs2_sbd *sdp, char *buf) in id_show() 66 static ssize_t status_show(struct gfs2_sbd *sdp, char *buf) in status_show() 146 static ssize_t uuid_show(struct gfs2_sbd *sdp, char *buf) in uuid_show() 381 struct gfs2_sbd *sdp = container_of(kobj, struct gfs2_sbd, sd_kobj); in gfs2_sbd_release() 724 int gfs2_sys_fs_add(struct gfs2_sbd *sdp) in gfs2_sys_fs_add() 771 void gfs2_sys_fs_del(struct gfs2_sbd *sdp) in gfs2_sys_fs_del() [all …]
|
H A D | trans.h | 11 struct gfs2_sbd; 37 int __gfs2_trans_begin(struct gfs2_trans *tr, struct gfs2_sbd *sdp, 40 int gfs2_trans_begin(struct gfs2_sbd *sdp, unsigned int blocks, 43 void gfs2_trans_end(struct gfs2_sbd *sdp); 46 void gfs2_trans_add_revoke(struct gfs2_sbd *sdp, struct gfs2_bufdata *bd); 47 void gfs2_trans_remove_revoke(struct gfs2_sbd *sdp, u64 blkno, unsigned int len); 48 void gfs2_trans_free(struct gfs2_sbd *sdp, struct gfs2_trans *tr);
|
H A D | glock.h | 122 void (*lm_first_done) (struct gfs2_sbd *sdp); 125 void (*lm_unmount) (struct gfs2_sbd *sdp); 126 void (*lm_withdraw) (struct gfs2_sbd *sdp); 170 int gfs2_glock_get(struct gfs2_sbd *sdp, u64 number, 197 int gfs2_glock_nq_num(struct gfs2_sbd *sdp, u64 number, 249 void gfs2_flush_delete_work(struct gfs2_sbd *sdp); 250 void gfs2_gl_hash_clear(struct gfs2_sbd *sdp); 251 void gfs2_gl_dq_holders(struct gfs2_sbd *sdp); 252 void gfs2_glock_thaw(struct gfs2_sbd *sdp); 259 void gfs2_create_debugfs_file(struct gfs2_sbd *sdp); [all …]
|
H A D | lops.h | 15 void gfs2_log_incr_head(struct gfs2_sbd *sdp); 17 void gfs2_log_write(struct gfs2_sbd *sdp, struct gfs2_jdesc *jd, 21 void gfs2_pin(struct gfs2_sbd *sdp, struct buffer_head *bh); 24 void gfs2_drain_revokes(struct gfs2_sbd *sdp); 26 static inline unsigned int buf_limit(struct gfs2_sbd *sdp) in buf_limit() 31 static inline unsigned int databuf_limit(struct gfs2_sbd *sdp) in databuf_limit() 36 static inline void lops_before_commit(struct gfs2_sbd *sdp, in lops_before_commit() 45 static inline void lops_after_commit(struct gfs2_sbd *sdp, in lops_after_commit()
|
H A D | rgrp.h | 22 struct gfs2_sbd; 27 struct gfs2_rgrpd *gfs2_blk2rgrpd(struct gfs2_sbd *sdp, u64 blk, bool exact); 28 struct gfs2_rgrpd *gfs2_rgrpd_get_first(struct gfs2_sbd *sdp); 31 void gfs2_clear_rgrpd(struct gfs2_sbd *sdp); 32 int gfs2_rindex_update(struct gfs2_sbd *sdp); 55 int gfs2_check_blk_type(struct gfs2_sbd *sdp, u64 no_addr, 70 u64 gfs2_ri_total(struct gfs2_sbd *sdp); 73 int gfs2_rgrp_send_discards(struct gfs2_sbd *sdp, u64 offset,
|
H A D | log.c | 35 static void gfs2_log_shutdown(struct gfs2_sbd *sdp); 152 static void dump_ail_list(struct gfs2_sbd *sdp) in dump_ail_list() 237 static void gfs2_ail1_start(struct gfs2_sbd *sdp) in gfs2_ail1_start() 371 static void gfs2_ail1_wait(struct gfs2_sbd *sdp) in gfs2_ail1_wait() 428 bool gfs2_log_is_empty(struct gfs2_sbd *sdp) { in gfs2_log_is_empty() 664 static void log_pull_tail(struct gfs2_sbd *sdp) in log_pull_tail() 678 void log_flush_wait(struct gfs2_sbd *sdp) in log_flush_wait() 754 struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode); in gfs2_ordered_del_inode() 797 void gfs2_flush_revokes(struct gfs2_sbd *sdp) in gfs2_flush_revokes() 931 void gfs2_ail_drain(struct gfs2_sbd *sdp) in gfs2_ail_drain() [all …]
|
H A D | util.c | 39 void gfs2_assert_i(struct gfs2_sbd *sdp) in gfs2_assert_i() 52 int check_journal_clean(struct gfs2_sbd *sdp, struct gfs2_jdesc *jd, in check_journal_clean() 100 int gfs2_freeze_lock_shared(struct gfs2_sbd *sdp) in gfs2_freeze_lock_shared() 112 void gfs2_freeze_unlock(struct gfs2_sbd *sdp) in gfs2_freeze_unlock() 118 static void signal_our_withdraw(struct gfs2_sbd *sdp) in signal_our_withdraw() 305 void gfs2_lm(struct gfs2_sbd *sdp, const char *fmt, ...) in gfs2_lm() 321 int gfs2_withdraw(struct gfs2_sbd *sdp) in gfs2_withdraw() 400 void gfs2_assert_warn_i(struct gfs2_sbd *sdp, char *assertion, in gfs2_assert_warn_i() 431 void gfs2_consist_i(struct gfs2_sbd *sdp, const char *function, in gfs2_consist_i() 448 struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode); in gfs2_consist_inode_i() [all …]
|
H A D | quota.h | 13 struct gfs2_sbd; 32 int gfs2_quota_refresh(struct gfs2_sbd *sdp, struct kqid qid); 34 int gfs2_quota_init(struct gfs2_sbd *sdp); 35 void gfs2_quota_cleanup(struct gfs2_sbd *sdp); 38 void gfs2_wake_up_statfs(struct gfs2_sbd *sdp); 43 struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode); in gfs2_quota_lock_check()
|
H A D | sys.h | 11 struct gfs2_sbd; 13 int gfs2_sys_fs_add(struct gfs2_sbd *sdp); 14 void gfs2_sys_fs_del(struct gfs2_sbd *sdp); 19 int gfs2_recover_set(struct gfs2_sbd *sdp, unsigned jid);
|
H A D | lops.c | 74 struct gfs2_sbd *sdp = gl->gl_name.ln_sbd; in maybe_release_space() 136 void gfs2_log_incr_head(struct gfs2_sbd *sdp) in gfs2_log_incr_head() 204 struct gfs2_sbd *sdp = bio->bi_private; in gfs2_end_log_write() 245 struct gfs2_sbd *sdp = bio->bi_private; in gfs2_log_submit_bio() 421 struct gfs2_sbd *sdp = GFS2_SB(jd->jd_inode); in gfs2_jhead_pg_srch() 507 struct gfs2_sbd *sdp = GFS2_SB(jd->jd_inode); in gfs2_find_jhead() 760 struct gfs2_sbd *sdp = GFS2_SB(jd->jd_inode); in obsolete_rgrp() 783 struct gfs2_sbd *sdp = GFS2_SB(jd->jd_inode); in buf_lo_scan_elements() 836 struct gfs2_sbd *sdp = GFS2_SB(jd->jd_inode); in buf_lo_after_scan() 890 void gfs2_drain_revokes(struct gfs2_sbd *sdp) in gfs2_drain_revokes() [all …]
|
H A D | quota.c | 109 struct gfs2_sbd *sdp = qd->qd_sbd; in gfs2_qd_dealloc() 118 struct gfs2_sbd *sdp = qd->qd_sbd; in gfs2_qd_dispose() 321 struct gfs2_sbd *sdp = qd->qd_sbd; in __qd_hold() 328 struct gfs2_sbd *sdp; in qd_put() 350 struct gfs2_sbd *sdp = qd->qd_sbd; in slot_get() 373 struct gfs2_sbd *sdp = qd->qd_sbd; in slot_hold() 383 struct gfs2_sbd *sdp = qd->qd_sbd; in slot_put() 396 struct gfs2_sbd *sdp = qd->qd_sbd; in bh_get() 451 struct gfs2_sbd *sdp = qd->qd_sbd; in bh_put() 676 struct gfs2_sbd *sdp = qd->qd_sbd; in do_qc() [all …]
|
H A D | super.c | 59 void gfs2_jindex_free(struct gfs2_sbd *sdp) in gfs2_jindex_free() 133 int gfs2_make_fs_rw(struct gfs2_sbd *sdp) in gfs2_make_fs_rw() 276 struct gfs2_sbd *sdp = sb->s_fs_info; in gfs2_statfs_sync() 450 struct gfs2_sbd *sdp = GFS2_SB(inode); in gfs2_write_inode() 589 struct gfs2_sbd *sdp = sb->s_fs_info; in gfs2_put_super() 668 struct gfs2_sbd *sdp = sb->s_fs_info; in gfs2_sync_fs() 697 struct gfs2_sbd *sdp = container_of(work, struct gfs2_sbd, sd_freeze_work); in gfs2_freeze_func() 736 struct gfs2_sbd *sdp = sb->s_fs_info; in gfs2_freeze_super() 785 struct gfs2_sbd *sdp = sb->s_fs_info; in gfs2_freeze_fs() 804 struct gfs2_sbd *sdp = sb->s_fs_info; in gfs2_thaw_super() [all …]
|
H A D | inode.h | 30 static inline bool gfs2_is_ordered(const struct gfs2_sbd *sdp) in gfs2_is_ordered() 35 static inline bool gfs2_is_writeback(const struct gfs2_sbd *sdp) in gfs2_is_writeback() 92 struct inode *gfs2_lookup_by_inum(struct gfs2_sbd *sdp, u64 no_addr, 120 static inline int gfs2_localflocks(const struct gfs2_sbd *sdp) in gfs2_localflocks() 128 static inline int gfs2_localflocks(const struct gfs2_sbd *sdp) in gfs2_localflocks()
|
H A D | trans.c | 28 static void gfs2_print_trans(struct gfs2_sbd *sdp, const struct gfs2_trans *tr) in gfs2_print_trans() 40 int __gfs2_trans_begin(struct gfs2_trans *tr, struct gfs2_sbd *sdp, in __gfs2_trans_begin() 109 int gfs2_trans_begin(struct gfs2_sbd *sdp, unsigned int blocks, in gfs2_trans_begin() 124 void gfs2_trans_end(struct gfs2_sbd *sdp) in gfs2_trans_end() 195 struct gfs2_sbd *sdp = gl->gl_name.ln_sbd; in gfs2_trans_add_data() 232 struct gfs2_sbd *sdp = gl->gl_name.ln_sbd; in gfs2_trans_add_meta() 294 void gfs2_trans_add_revoke(struct gfs2_sbd *sdp, struct gfs2_bufdata *bd) in gfs2_trans_add_revoke() 304 void gfs2_trans_remove_revoke(struct gfs2_sbd *sdp, u64 blkno, unsigned int len) in gfs2_trans_remove_revoke() 326 void gfs2_trans_free(struct gfs2_sbd *sdp, struct gfs2_trans *tr) in gfs2_trans_free()
|
H A D | ops_fstype.c | 65 void free_sbd(struct gfs2_sbd *sdp) in free_sbd() 74 struct gfs2_sbd *sdp; in init_sbd() 436 struct gfs2_sbd *sdp = sb->s_fs_info; in gfs2_lookup_root() 621 static int init_statfs(struct gfs2_sbd *sdp) in init_statfs() 1053 void gfs2_lm_unmount(struct gfs2_sbd *sdp) in gfs2_lm_unmount() 1136 struct gfs2_sbd *sdp; in gfs2_fill_super() 1327 struct gfs2_sbd *sdp; in gfs2_get_tree() 1544 struct gfs2_sbd *sdp = sb->s_fs_info; in gfs2_reconfigure() 1671 struct gfs2_sbd *sdp; in gfs2_meta_get_tree() 1740 struct gfs2_sbd *sdp = sb->s_fs_info; in gfs2_evict_inodes() [all …]
|
H A D | lock_dlm.c | 308 struct gfs2_sbd *sdp = gl->gl_name.ln_sbd; in gdlm_put_lock() 590 static int mounted_unlock(struct gfs2_sbd *sdp) in mounted_unlock() 603 static int control_unlock(struct gfs2_sbd *sdp) in control_unlock() 620 static void remote_withdraw(struct gfs2_sbd *sdp) in remote_withdraw() 640 struct gfs2_sbd *sdp = container_of(work, struct gfs2_sbd, sd_control_work.work); in gfs2_control_func() 823 static int control_mount(struct gfs2_sbd *sdp) in control_mount() 1150 struct gfs2_sbd *sdp = arg; in gdlm_recover_prep() 1175 struct gfs2_sbd *sdp = arg; in gdlm_recover_slot() 1205 struct gfs2_sbd *sdp = arg; in gdlm_recover_done() 1381 static void gdlm_first_done(struct gfs2_sbd *sdp) in gdlm_first_done() [all …]
|
H A D | glops.c | 36 struct gfs2_sbd *sdp = gl->gl_name.ln_sbd; in gfs2_ail_error() 62 struct gfs2_sbd *sdp = gl->gl_name.ln_sbd; in __gfs2_ail_flush() 93 struct gfs2_sbd *sdp = gl->gl_name.ln_sbd; in gfs2_ail_empty_gl() 146 struct gfs2_sbd *sdp = gl->gl_name.ln_sbd; in gfs2_ail_flush() 170 struct gfs2_sbd *sdp = gl->gl_name.ln_sbd; in gfs2_rgrp_metasync() 198 struct gfs2_sbd *sdp = gl->gl_name.ln_sbd; in rgrp_go_sync() 227 struct gfs2_sbd *sdp = gl->gl_name.ln_sbd; in rgrp_go_inval() 559 struct gfs2_sbd *sdp = gl->gl_name.ln_sbd; in freeze_go_callback() 588 struct gfs2_sbd *sdp = gl->gl_name.ln_sbd; in freeze_go_xmote_bh() 619 struct gfs2_sbd *sdp = gl->gl_name.ln_sbd; in iopen_go_callback() [all …]
|
H A D | meta_io.c | 127 struct gfs2_sbd *sdp = gl->gl_name.ln_sbd; in gfs2_getbuf() 261 struct gfs2_sbd *sdp = gl->gl_name.ln_sbd; in gfs2_meta_read() 322 int gfs2_meta_wait(struct gfs2_sbd *sdp, struct buffer_head *bh) in gfs2_meta_wait() 346 struct gfs2_sbd *sdp = gfs2_mapping2sbd(mapping); in gfs2_remove_from_journal() 389 static void gfs2_ail1_wipe(struct gfs2_sbd *sdp, u64 bstart, u32 blen) in gfs2_ail1_wipe() 415 struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode); in gfs2_getjdatabuf() 443 struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode); in gfs2_journal_wipe() 490 struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode); in gfs2_meta_buffer() 520 struct gfs2_sbd *sdp = gl->gl_name.ln_sbd; in gfs2_meta_ra()
|
H A D | meta_io.h | 40 static inline struct gfs2_sbd *gfs2_mapping2sbd(struct address_space *mapping) in gfs2_mapping2sbd() 48 return container_of(mapping, struct gfs2_sbd, sd_aspace); in gfs2_mapping2sbd() 56 int gfs2_meta_wait(struct gfs2_sbd *sdp, struct buffer_head *bh);
|
H A D | incore.h | 35 struct gfs2_sbd; 57 void (*lo_before_commit) (struct gfs2_sbd *sdp, struct gfs2_trans *tr); 58 void (*lo_after_commit) (struct gfs2_sbd *sdp, struct gfs2_trans *tr); 116 struct gfs2_sbd *rd_sbd; 207 struct gfs2_sbd *ln_sbd; 415 static inline struct gfs2_sbd *GFS2_SB(const struct inode *inode) in GFS2_SB() 442 struct gfs2_sbd *qd_sbd; 682 struct gfs2_sbd { struct 859 const struct gfs2_sbd *sdp = gl->gl_name.ln_sbd; in gfs2_sbstats_inc() argument
|
H A D | recovery.c | 118 int __get_log_header(struct gfs2_sbd *sdp, const struct gfs2_log_header *lh, in __get_log_header() 168 struct gfs2_sbd *sdp = GFS2_SB(jd->jd_inode); in get_log_header() 199 struct gfs2_sbd *sdp = GFS2_SB(jd->jd_inode); in foreach_descriptor() 265 struct gfs2_sbd *sdp = GFS2_SB(jd->jd_inode); in clean_journal() 279 static void gfs2_recovery_done(struct gfs2_sbd *sdp, unsigned int jid, in gfs2_recovery_done() 311 struct gfs2_sbd *sdp = GFS2_SB(jd->jd_inode); in update_statfs_inode() 380 struct gfs2_sbd *sdp = GFS2_SB(jd->jd_inode); in recover_local_statfs() 405 struct gfs2_sbd *sdp = GFS2_SB(jd->jd_inode); in gfs2_recover_func()
|
H A D | rgrp.c | 109 struct gfs2_sbd *sdp = rbm->rgd->rd_sbd; in gfs2_setbit() 467 struct gfs2_sbd *sdp = rgd->rd_sbd; in gfs2_rgrp_verify() 584 struct gfs2_sbd *sdp = rgd->rd_sbd; in gfs2_rgrpd_get_next() 757 struct gfs2_sbd *sdp = rgd->rd_sbd; in compute_bitstructs() 865 struct gfs2_sbd *sdp = rgd->rd_sbd; in rgd_insert() 1115 struct gfs2_sbd *sdp = rgd->rd_sbd; in gfs2_rgrp_lvb_valid() 1202 struct gfs2_sbd *sdp = rgd->rd_sbd; in gfs2_rgrp_go_instantiate() 1845 struct gfs2_sbd *sdp = rgd->rd_sbd; in try_rgrp_unlink() 1999 struct gfs2_sbd *sdp = rgd->rd_sbd; in gfs2_select_rgrp() 2326 struct gfs2_sbd *sdp = rgd->rd_sbd; in gfs2_rgrp_error() [all …]
|