/fs/gfs2/ |
D | log.h | 24 static inline void gfs2_log_lock(struct gfs2_sbd *sdp) in gfs2_log_lock() 36 static inline void gfs2_log_unlock(struct gfs2_sbd *sdp) in gfs2_log_unlock() 42 static inline void gfs2_log_pointers_init(struct gfs2_sbd *sdp, in gfs2_log_pointers_init() 51 extern unsigned int gfs2_struct2blk(struct gfs2_sbd *sdp, unsigned int nstruct, 54 extern int gfs2_log_reserve(struct gfs2_sbd *sdp, unsigned int blks); 55 extern void gfs2_log_incr_head(struct gfs2_sbd *sdp); 56 extern u64 gfs2_log_bmap(struct gfs2_sbd *sdp, unsigned int lbn); 57 extern void gfs2_log_flush(struct gfs2_sbd *sdp, struct gfs2_glock *gl); 58 extern void gfs2_log_commit(struct gfs2_sbd *sdp, struct gfs2_trans *trans); 60 extern void gfs2_ail1_flush(struct gfs2_sbd *sdp, struct writeback_control *wbc); [all …]
|
D | super.h | 17 extern void gfs2_lm_unmount(struct gfs2_sbd *sdp); 19 static inline unsigned int gfs2_jindex_size(struct gfs2_sbd *sdp) in gfs2_jindex_size() 28 extern void gfs2_jindex_free(struct gfs2_sbd *sdp); 32 extern struct gfs2_jdesc *gfs2_jdesc_find(struct gfs2_sbd *sdp, unsigned int jid); 35 extern int gfs2_lookup_in_master_dir(struct gfs2_sbd *sdp, char *filename, 38 extern int gfs2_make_fs_rw(struct gfs2_sbd *sdp); 39 extern void gfs2_online_uevent(struct gfs2_sbd *sdp); 40 extern int gfs2_statfs_init(struct gfs2_sbd *sdp); 41 extern void gfs2_statfs_change(struct gfs2_sbd *sdp, s64 total, s64 free, 45 extern void update_statfs(struct gfs2_sbd *sdp, struct buffer_head *m_bh, [all …]
|
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 fsname_show(struct gfs2_sbd *sdp, char *buf) in fsname_show() 82 static ssize_t uuid_show(struct gfs2_sbd *sdp, char *buf) in uuid_show() 92 static ssize_t freeze_show(struct gfs2_sbd *sdp, char *buf) in freeze_show() 103 static ssize_t freeze_store(struct gfs2_sbd *sdp, const char *buf, size_t len) in freeze_store() 129 static ssize_t withdraw_show(struct gfs2_sbd *sdp, char *buf) in withdraw_show() [all …]
|
D | util.h | 30 void gfs2_assert_i(struct gfs2_sbd *sdp); 41 int gfs2_assert_withdraw_i(struct gfs2_sbd *sdp, char *assertion, 49 int gfs2_assert_warn_i(struct gfs2_sbd *sdp, char *assertion, 57 int gfs2_consist_i(struct gfs2_sbd *sdp, int cluster_wide, 78 int gfs2_meta_check_ii(struct gfs2_sbd *sdp, struct buffer_head *bh, 82 static inline int gfs2_meta_check_i(struct gfs2_sbd *sdp, in gfs2_meta_check_i() 99 int gfs2_metatype_check_ii(struct gfs2_sbd *sdp, struct buffer_head *bh, 104 static inline int gfs2_metatype_check_i(struct gfs2_sbd *sdp, in gfs2_metatype_check_i() 135 int gfs2_io_error_i(struct gfs2_sbd *sdp, const char *function, 142 int gfs2_io_error_bh_i(struct gfs2_sbd *sdp, struct buffer_head *bh, [all …]
|
D | glock.h | 124 int (*lm_mount) (struct gfs2_sbd *sdp, const char *table); 125 void (*lm_first_done) (struct gfs2_sbd *sdp); 126 void (*lm_recovery_result) (struct gfs2_sbd *sdp, unsigned int jid, 128 void (*lm_unmount) (struct gfs2_sbd *sdp); 129 void (*lm_withdraw) (struct gfs2_sbd *sdp); 181 int gfs2_glock_get(struct gfs2_sbd *sdp, 199 int gfs2_glock_nq_num(struct gfs2_sbd *sdp, 237 extern void gfs2_gl_hash_clear(struct gfs2_sbd *sdp); 239 extern void gfs2_glock_thaw(struct gfs2_sbd *sdp); 246 extern int gfs2_create_debugfs_file(struct gfs2_sbd *sdp); [all …]
|
D | util.c | 30 void gfs2_assert_i(struct gfs2_sbd *sdp) in gfs2_assert_i() 36 int gfs2_lm_withdraw(struct gfs2_sbd *sdp, char *fmt, ...) in gfs2_lm_withdraw() 76 int gfs2_assert_withdraw_i(struct gfs2_sbd *sdp, char *assertion, in gfs2_assert_withdraw_i() 95 int gfs2_assert_warn_i(struct gfs2_sbd *sdp, char *assertion, in gfs2_assert_warn_i() 132 int gfs2_consist_i(struct gfs2_sbd *sdp, int cluster_wide, const char *function, in gfs2_consist_i() 153 struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode); in gfs2_consist_inode_i() 175 struct gfs2_sbd *sdp = rgd->rd_sbd; in gfs2_consist_rgrpd_i() 193 int gfs2_meta_check_ii(struct gfs2_sbd *sdp, struct buffer_head *bh, in gfs2_meta_check_ii() 214 int gfs2_metatype_check_ii(struct gfs2_sbd *sdp, struct buffer_head *bh, in gfs2_metatype_check_ii() 235 int gfs2_io_error_i(struct gfs2_sbd *sdp, const char *function, char *file, in gfs2_io_error_i() [all …]
|
D | log.c | 49 unsigned int gfs2_struct2blk(struct gfs2_sbd *sdp, unsigned int nstruct, in gfs2_struct2blk() 93 static int gfs2_ail1_start_one(struct gfs2_sbd *sdp, in gfs2_ail1_start_one() 146 void gfs2_ail1_flush(struct gfs2_sbd *sdp, struct writeback_control *wbc) in gfs2_ail1_flush() 169 static void gfs2_ail1_start(struct gfs2_sbd *sdp) in gfs2_ail1_start() 188 static void gfs2_ail1_empty_one(struct gfs2_sbd *sdp, struct gfs2_ail *ai) in gfs2_ail1_empty_one() 213 static int gfs2_ail1_empty(struct gfs2_sbd *sdp) in gfs2_ail1_empty() 232 static void gfs2_ail1_wait(struct gfs2_sbd *sdp) in gfs2_ail1_wait() 261 static void gfs2_ail2_empty_one(struct gfs2_sbd *sdp, struct gfs2_ail *ai) in gfs2_ail2_empty_one() 274 static void ail2_empty(struct gfs2_sbd *sdp, unsigned int new_tail) in ail2_empty() 320 int gfs2_log_reserve(struct gfs2_sbd *sdp, unsigned int blks) in gfs2_log_reserve() [all …]
|
D | rgrp.h | 17 struct gfs2_sbd; 22 extern struct gfs2_rgrpd *gfs2_blk2rgrpd(struct gfs2_sbd *sdp, u64 blk, bool exact); 23 extern struct gfs2_rgrpd *gfs2_rgrpd_get_first(struct gfs2_sbd *sdp); 26 extern void gfs2_clear_rgrpd(struct gfs2_sbd *sdp); 27 extern int gfs2_rindex_update(struct gfs2_sbd *sdp); 50 extern int gfs2_check_blk_type(struct gfs2_sbd *sdp, u64 no_addr, 64 extern u64 gfs2_ri_total(struct gfs2_sbd *sdp); 66 extern int gfs2_rgrp_send_discards(struct gfs2_sbd *sdp, u64 offset,
|
D | quota.h | 14 struct gfs2_sbd; 30 extern int gfs2_quota_refresh(struct gfs2_sbd *sdp, int user, u32 id); 32 extern int gfs2_quota_init(struct gfs2_sbd *sdp); 33 extern void gfs2_quota_cleanup(struct gfs2_sbd *sdp); 36 extern void gfs2_wake_up_statfs(struct gfs2_sbd *sdp); 40 struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode); in gfs2_quota_lock_check()
|
D | trans.h | 14 struct gfs2_sbd; 39 extern int gfs2_trans_begin(struct gfs2_sbd *sdp, unsigned int blocks, 42 extern void gfs2_trans_end(struct gfs2_sbd *sdp); 44 extern void gfs2_trans_add_revoke(struct gfs2_sbd *sdp, struct gfs2_bufdata *bd); 45 extern void gfs2_trans_add_unrevoke(struct gfs2_sbd *sdp, u64 blkno, unsigned int len);
|
D | lops.c | 40 static void gfs2_pin(struct gfs2_sbd *sdp, struct buffer_head *bh) in gfs2_pin() 72 struct gfs2_sbd *sdp = gl->gl_sbd; in maybe_release_space() 96 static void gfs2_unpin(struct gfs2_sbd *sdp, struct buffer_head *bh, in gfs2_unpin() 156 struct gfs2_sbd *sdp = bh->b_private; in gfs2_log_write_endio() 171 static struct buffer_head *gfs2_log_get_buf(struct gfs2_sbd *sdp) in gfs2_log_get_buf() 200 struct gfs2_sbd *sdp = bd->bd_gl->gl_sbd; in gfs2_fake_write_endio() 218 static struct buffer_head *gfs2_log_fake_buf(struct gfs2_sbd *sdp, in gfs2_log_fake_buf() 240 static struct buffer_head *gfs2_get_log_desc(struct gfs2_sbd *sdp, u32 ld_type) in gfs2_get_log_desc() 255 static void buf_lo_add(struct gfs2_sbd *sdp, struct gfs2_log_element *le) in buf_lo_add() 281 static void buf_lo_before_commit(struct gfs2_sbd *sdp) in buf_lo_before_commit() [all …]
|
D | sys.h | 14 struct gfs2_sbd; 16 int gfs2_sys_fs_add(struct gfs2_sbd *sdp); 17 void gfs2_sys_fs_del(struct gfs2_sbd *sdp); 22 int gfs2_recover_set(struct gfs2_sbd *sdp, unsigned jid);
|
D | recovery.h | 17 static inline void gfs2_replay_incr_blk(struct gfs2_sbd *sdp, unsigned int *blk) in gfs2_replay_incr_blk() 26 extern int gfs2_revoke_add(struct gfs2_sbd *sdp, u64 blkno, unsigned int where); 27 extern int gfs2_revoke_check(struct gfs2_sbd *sdp, u64 blkno, unsigned int where); 28 extern void gfs2_revoke_clean(struct gfs2_sbd *sdp);
|
D | quota.c | 84 struct gfs2_sbd *sdp; in gfs2_shrink_qd_memory() 133 static int qd_alloc(struct gfs2_sbd *sdp, int user, u32 id, in qd_alloc() 164 static int qd_get(struct gfs2_sbd *sdp, int user, u32 id, in qd_get() 219 struct gfs2_sbd *sdp = qd->qd_gl->gl_sbd; in qd_hold() 236 struct gfs2_sbd *sdp = qd->qd_gl->gl_sbd; in slot_get() 279 struct gfs2_sbd *sdp = qd->qd_gl->gl_sbd; in slot_hold() 289 struct gfs2_sbd *sdp = qd->qd_gl->gl_sbd; in slot_put() 302 struct gfs2_sbd *sdp = qd->qd_gl->gl_sbd; in bh_get() 349 struct gfs2_sbd *sdp = qd->qd_gl->gl_sbd; in bh_put() 361 static int qd_fish(struct gfs2_sbd *sdp, struct gfs2_quota_data **qdp) in qd_fish() [all …]
|
D | lops.h | 31 static inline unsigned int buf_limit(struct gfs2_sbd *sdp) in buf_limit() 39 static inline unsigned int databuf_limit(struct gfs2_sbd *sdp) in databuf_limit() 54 static inline void lops_add(struct gfs2_sbd *sdp, struct gfs2_log_element *le) in lops_add() 60 static inline void lops_before_commit(struct gfs2_sbd *sdp) in lops_before_commit() 68 static inline void lops_after_commit(struct gfs2_sbd *sdp, struct gfs2_ail *ai) in lops_after_commit()
|
D | trans.c | 28 int gfs2_trans_begin(struct gfs2_sbd *sdp, unsigned int blocks, in gfs2_trans_begin() 86 static void gfs2_log_release(struct gfs2_sbd *sdp, unsigned int blks) in gfs2_log_release() 96 void gfs2_trans_end(struct gfs2_sbd *sdp) in gfs2_trans_end() 145 struct gfs2_sbd *sdp = gl->gl_sbd; in gfs2_trans_add_bh() 166 void gfs2_trans_add_revoke(struct gfs2_sbd *sdp, struct gfs2_bufdata *bd) in gfs2_trans_add_revoke() 175 void gfs2_trans_add_unrevoke(struct gfs2_sbd *sdp, u64 blkno, unsigned int len) in gfs2_trans_add_unrevoke()
|
D | ops_fstype.c | 61 static struct gfs2_sbd *init_sbd(struct super_block *sb) in init_sbd() 63 struct gfs2_sbd *sdp; in init_sbd() 65 sdp = kzalloc(sizeof(struct gfs2_sbd), GFP_KERNEL); in init_sbd() 135 static int gfs2_check_sb(struct gfs2_sbd *sdp, int silent) in gfs2_check_sb() 168 static void gfs2_sb_in(struct gfs2_sbd *sdp, const void *buf) in gfs2_sb_in() 210 static int gfs2_read_super(struct gfs2_sbd *sdp, sector_t sector, int silent) in gfs2_read_super() 253 static int gfs2_read_sb(struct gfs2_sbd *sdp, int silent) in gfs2_read_sb() 338 static int init_names(struct gfs2_sbd *sdp, int silent) in init_names() 372 static int init_locking(struct gfs2_sbd *sdp, struct gfs2_holder *mount_gh, in init_locking() 430 struct gfs2_sbd *sdp = sb->s_fs_info; in gfs2_lookup_root() [all …]
|
D | lock_dlm.c | 279 struct gfs2_sbd *sdp = gl->gl_sbd; in gdlm_put_lock() 484 static int sync_unlock(struct gfs2_sbd *sdp, struct dlm_lksb *lksb, char *name) in sync_unlock() 506 static int sync_lock(struct gfs2_sbd *sdp, int mode, uint32_t flags, in sync_lock() 537 static int mounted_unlock(struct gfs2_sbd *sdp) in mounted_unlock() 543 static int mounted_lock(struct gfs2_sbd *sdp, int mode, uint32_t flags) in mounted_lock() 550 static int control_unlock(struct gfs2_sbd *sdp) in control_unlock() 556 static int control_lock(struct gfs2_sbd *sdp, int mode, uint32_t flags) in control_lock() 565 struct gfs2_sbd *sdp = container_of(work, struct gfs2_sbd, sd_control_work.work); in gfs2_control_func() 742 static int control_mount(struct gfs2_sbd *sdp) in control_mount() 933 static int control_first_done(struct gfs2_sbd *sdp) in control_first_done() [all …]
|
D | rgrp.c | 274 struct gfs2_sbd *sdp = rgd->rd_sbd; in gfs2_rgrp_verify() 330 struct gfs2_rgrpd *gfs2_blk2rgrpd(struct gfs2_sbd *sdp, u64 blk, bool exact) in gfs2_blk2rgrpd() 368 struct gfs2_rgrpd *gfs2_rgrpd_get_first(struct gfs2_sbd *sdp) in gfs2_rgrpd_get_first() 390 struct gfs2_sbd *sdp = rgd->rd_sbd; in gfs2_rgrpd_get_next() 418 void gfs2_clear_rgrpd(struct gfs2_sbd *sdp) in gfs2_clear_rgrpd() 464 struct gfs2_sbd *sdp = rgd->rd_sbd; in compute_bitstructs() 534 u64 gfs2_ri_total(struct gfs2_sbd *sdp) in gfs2_ri_total() 560 struct gfs2_sbd *sdp = rgd->rd_sbd; in rgd_insert() 593 struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode); in read_rindex_entry() 657 struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode); in gfs2_ri_update() [all …]
|
D | inode.h | 38 const struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode); in gfs2_is_writeback() 44 const struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode); in gfs2_is_ordered() 102 extern struct inode *gfs2_lookup_by_inum(struct gfs2_sbd *sdp, u64 no_addr, 128 static inline int gfs2_localflocks(const struct gfs2_sbd *sdp) in gfs2_localflocks() 136 static inline int gfs2_localflocks(const struct gfs2_sbd *sdp) in gfs2_localflocks()
|
D | super.c | 286 void gfs2_jindex_free(struct gfs2_sbd *sdp) in gfs2_jindex_free() 332 struct gfs2_jdesc *gfs2_jdesc_find(struct gfs2_sbd *sdp, unsigned int jid) in gfs2_jdesc_find() 346 struct gfs2_sbd *sdp = GFS2_SB(jd->jd_inode); in gfs2_jdesc_check() 369 int gfs2_make_fs_rw(struct gfs2_sbd *sdp) in gfs2_make_fs_rw() 432 int gfs2_statfs_init(struct gfs2_sbd *sdp) in gfs2_statfs_init() 478 void gfs2_statfs_change(struct gfs2_sbd *sdp, s64 total, s64 free, in gfs2_statfs_change() 513 void update_statfs(struct gfs2_sbd *sdp, struct buffer_head *m_bh, in update_statfs() 538 struct gfs2_sbd *sdp = sb->s_fs_info; in gfs2_statfs_sync() 602 static int gfs2_lock_fs_check_clean(struct gfs2_sbd *sdp, in gfs2_lock_fs_check_clean() 667 int gfs2_freeze_fs(struct gfs2_sbd *sdp) in gfs2_freeze_fs() [all …]
|
D | incore.h | 36 struct gfs2_sbd; 55 void (*lo_add) (struct gfs2_sbd *sdp, struct gfs2_log_element *le); 56 void (*lo_before_commit) (struct gfs2_sbd *sdp); 57 void (*lo_after_commit) (struct gfs2_sbd *sdp, struct gfs2_ail *ai); 96 struct gfs2_sbd *rd_sbd; 264 struct gfs2_sbd *gl_sbd; 354 static inline struct gfs2_sbd *GFS2_SB(const struct inode *inode) in GFS2_SB() 586 struct gfs2_sbd { struct 763 const struct gfs2_sbd *sdp = gl->gl_sbd; in gfs2_sbstats_inc() argument
|
D | meta_io.c | 130 struct gfs2_sbd *sdp = gl->gl_sbd; in gfs2_getbuf() 213 struct gfs2_sbd *sdp = gl->gl_sbd; in gfs2_meta_read() 252 int gfs2_meta_wait(struct gfs2_sbd *sdp, struct buffer_head *bh) in gfs2_meta_wait() 310 struct gfs2_sbd *sdp = gfs2_mapping2sbd(mapping); in gfs2_remove_from_journal() 354 struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode); in gfs2_meta_wipe() 387 struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode); in gfs2_meta_indirect_buffer() 421 struct gfs2_sbd *sdp = gl->gl_sbd; in gfs2_meta_ra()
|
D | aops.c | 100 struct gfs2_sbd *sdp = GFS2_SB(inode); in gfs2_writepage_common() 183 struct gfs2_sbd *sdp = GFS2_SB(inode); in __gfs2_jdata_writepage() 207 struct gfs2_sbd *sdp = GFS2_SB(inode); in gfs2_jdata_writepage() 264 struct gfs2_sbd *sdp = GFS2_SB(inode); in gfs2_write_jdata_pagevec() 396 struct gfs2_sbd *sdp = GFS2_SB(mapping->host); in gfs2_jdata_writepages() 465 struct gfs2_sbd *sdp = GFS2_SB(page->mapping->host); in __gfs2_readpage() 577 struct gfs2_sbd *sdp = GFS2_SB(inode); in gfs2_readpages() 613 struct gfs2_sbd *sdp = GFS2_SB(mapping->host); in gfs2_write_begin() 732 struct gfs2_sbd *sdp = inode->i_sb->s_fs_info; in adjust_fs_space() 784 struct gfs2_sbd *sdp = GFS2_SB(inode); in gfs2_stuffed_write_end() [all …]
|
D | glops.c | 52 struct gfs2_sbd *sdp = gl->gl_sbd; in __gfs2_ail_flush() 85 struct gfs2_sbd *sdp = gl->gl_sbd; in gfs2_ail_empty_gl() 110 struct gfs2_sbd *sdp = gl->gl_sbd; in gfs2_ail_flush() 265 struct gfs2_sbd *sdp = gl->gl_sbd; in inode_go_demote_ok() 405 struct gfs2_sbd *sdp = gl->gl_sbd; in inode_go_lock() 464 struct gfs2_sbd *sdp = gl->gl_sbd; in trans_go_sync() 481 struct gfs2_sbd *sdp = gl->gl_sbd; in trans_go_xmote_bh() 526 struct gfs2_sbd *sdp = gl->gl_sbd; in iopen_go_callback()
|