Home
last modified time | relevance | path

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

12

/linux-4.19.296/fs/gfs2/
Dlog.h25 static inline void gfs2_log_lock(struct gfs2_sbd *sdp) in gfs2_log_lock()
37 static inline void gfs2_log_unlock(struct gfs2_sbd *sdp) in gfs2_log_unlock()
43 static inline void gfs2_log_pointers_init(struct gfs2_sbd *sdp, in gfs2_log_pointers_init()
54 struct gfs2_sbd *sdp; in gfs2_ordered_add_inode()
68 extern unsigned int gfs2_struct2blk(struct gfs2_sbd *sdp, unsigned int nstruct,
71 extern void gfs2_log_release(struct gfs2_sbd *sdp, unsigned int blks);
72 extern int gfs2_log_reserve(struct gfs2_sbd *sdp, unsigned int blks);
73 extern void gfs2_write_log_header(struct gfs2_sbd *sdp, struct gfs2_jdesc *jd,
75 extern void gfs2_log_flush(struct gfs2_sbd *sdp, struct gfs2_glock *gl,
77 extern void gfs2_log_commit(struct gfs2_sbd *sdp, struct gfs2_trans *trans);
[all …]
Dsuper.h17 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,
Dsys.c35 ssize_t (*show)(struct gfs2_sbd *, char *);
36 ssize_t (*store)(struct gfs2_sbd *, const char *, size_t);
42 struct gfs2_sbd *sdp = container_of(kobj, struct gfs2_sbd, sd_kobj); in gfs2_attr_show()
50 struct gfs2_sbd *sdp = container_of(kobj, struct gfs2_sbd, sd_kobj); in gfs2_attr_store()
63 static ssize_t id_show(struct gfs2_sbd *sdp, char *buf) in id_show()
69 static ssize_t fsname_show(struct gfs2_sbd *sdp, char *buf) in fsname_show()
74 static ssize_t uuid_show(struct gfs2_sbd *sdp, char *buf) in uuid_show()
84 static ssize_t freeze_show(struct gfs2_sbd *sdp, char *buf) in freeze_show()
92 static ssize_t freeze_store(struct gfs2_sbd *sdp, const char *buf, size_t len) in freeze_store()
122 static ssize_t withdraw_show(struct gfs2_sbd *sdp, char *buf) in withdraw_show()
[all …]
Dlops.h29 extern u64 gfs2_log_bmap(struct gfs2_sbd *sdp);
30 extern void gfs2_log_write(struct gfs2_sbd *sdp, struct page *page,
32 extern void gfs2_log_write_page(struct gfs2_sbd *sdp, struct page *page);
33 extern void gfs2_log_flush_bio(struct gfs2_sbd *sdp, int op, int op_flags);
34 extern void gfs2_pin(struct gfs2_sbd *sdp, struct buffer_head *bh);
36 static inline unsigned int buf_limit(struct gfs2_sbd *sdp) in buf_limit()
44 static inline unsigned int databuf_limit(struct gfs2_sbd *sdp) in databuf_limit()
52 static inline void lops_before_commit(struct gfs2_sbd *sdp, in lops_before_commit()
61 static inline void lops_after_commit(struct gfs2_sbd *sdp, in lops_after_commit()
Dutil.h31 void gfs2_assert_i(struct gfs2_sbd *sdp);
42 int gfs2_assert_withdraw_i(struct gfs2_sbd *sdp, char *assertion,
50 int gfs2_assert_warn_i(struct gfs2_sbd *sdp, char *assertion,
58 int gfs2_consist_i(struct gfs2_sbd *sdp, int cluster_wide,
79 int gfs2_meta_check_ii(struct gfs2_sbd *sdp, struct buffer_head *bh,
83 static inline int gfs2_meta_check(struct gfs2_sbd *sdp, in gfs2_meta_check()
96 int gfs2_metatype_check_ii(struct gfs2_sbd *sdp, struct buffer_head *bh,
101 static inline int gfs2_metatype_check_i(struct gfs2_sbd *sdp, in gfs2_metatype_check_i()
132 int gfs2_io_error_i(struct gfs2_sbd *sdp, const char *function,
139 void gfs2_io_error_bh_i(struct gfs2_sbd *sdp, struct buffer_head *bh,
[all …]
Dutil.c33 void gfs2_assert_i(struct gfs2_sbd *sdp) in gfs2_assert_i()
38 int gfs2_lm_withdraw(struct gfs2_sbd *sdp, const char *fmt, ...) in gfs2_lm_withdraw()
90 int gfs2_assert_withdraw_i(struct gfs2_sbd *sdp, char *assertion, in gfs2_assert_withdraw_i()
108 int gfs2_assert_warn_i(struct gfs2_sbd *sdp, char *assertion, in gfs2_assert_warn_i()
142 int gfs2_consist_i(struct gfs2_sbd *sdp, int cluster_wide, const char *function, in gfs2_consist_i()
161 struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode); in gfs2_consist_inode_i()
182 struct gfs2_sbd *sdp = rgd->rd_sbd; in gfs2_consist_rgrpd_i()
199 int gfs2_meta_check_ii(struct gfs2_sbd *sdp, struct buffer_head *bh, in gfs2_meta_check_ii()
219 int gfs2_metatype_check_ii(struct gfs2_sbd *sdp, struct buffer_head *bh, in gfs2_metatype_check_ii()
239 int gfs2_io_error_i(struct gfs2_sbd *sdp, const char *function, char *file, in gfs2_io_error_i()
[all …]
Drgrp.h26 struct gfs2_sbd;
31 extern struct gfs2_rgrpd *gfs2_blk2rgrpd(struct gfs2_sbd *sdp, u64 blk, bool exact);
32 extern struct gfs2_rgrpd *gfs2_rgrpd_get_first(struct gfs2_sbd *sdp);
35 extern void gfs2_clear_rgrpd(struct gfs2_sbd *sdp);
36 extern int gfs2_rindex_update(struct gfs2_sbd *sdp);
59 extern int gfs2_check_blk_type(struct gfs2_sbd *sdp, u64 no_addr,
73 extern u64 gfs2_ri_total(struct gfs2_sbd *sdp);
75 extern int gfs2_rgrp_send_discards(struct gfs2_sbd *sdp, u64 offset,
Dglock.h125 int (*lm_mount) (struct gfs2_sbd *sdp, const char *table);
126 void (*lm_first_done) (struct gfs2_sbd *sdp);
127 void (*lm_recovery_result) (struct gfs2_sbd *sdp, unsigned int jid,
129 void (*lm_unmount) (struct gfs2_sbd *sdp);
130 void (*lm_withdraw) (struct gfs2_sbd *sdp);
182 extern int gfs2_glock_get(struct gfs2_sbd *sdp, u64 number,
199 extern int gfs2_glock_nq_num(struct gfs2_sbd *sdp, u64 number,
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 …]
Dtrans.h14 struct gfs2_sbd;
40 extern int gfs2_trans_begin(struct gfs2_sbd *sdp, unsigned int blocks,
43 extern void gfs2_trans_end(struct gfs2_sbd *sdp);
46 extern void gfs2_trans_add_revoke(struct gfs2_sbd *sdp, struct gfs2_bufdata *bd);
47 extern void gfs2_trans_add_unrevoke(struct gfs2_sbd *sdp, u64 blkno, unsigned int len);
Dsys.h14 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);
Dquota.h16 struct gfs2_sbd;
35 extern int gfs2_quota_refresh(struct gfs2_sbd *sdp, struct kqid qid);
37 extern int gfs2_quota_init(struct gfs2_sbd *sdp);
38 extern void gfs2_quota_cleanup(struct gfs2_sbd *sdp);
41 extern void gfs2_wake_up_statfs(struct gfs2_sbd *sdp);
46 struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode); in gfs2_quota_lock_check()
Dlops.c42 void gfs2_pin(struct gfs2_sbd *sdp, struct buffer_head *bh) in gfs2_pin()
74 struct gfs2_sbd *sdp = gl->gl_name.ln_sbd; in maybe_release_space()
99 static void gfs2_unpin(struct gfs2_sbd *sdp, struct buffer_head *bh, in gfs2_unpin()
133 static void gfs2_log_incr_head(struct gfs2_sbd *sdp) in gfs2_log_incr_head()
142 u64 gfs2_log_bmap(struct gfs2_sbd *sdp) in gfs2_log_bmap()
171 static void gfs2_end_log_write_bh(struct gfs2_sbd *sdp, struct bio_vec *bvec, in gfs2_end_log_write_bh()
206 struct gfs2_sbd *sdp = bio->bi_private; in gfs2_end_log_write()
240 void gfs2_log_flush_bio(struct gfs2_sbd *sdp, int op, int op_flags) in gfs2_log_flush_bio()
263 static struct bio *gfs2_log_alloc_bio(struct gfs2_sbd *sdp, u64 blkno) in gfs2_log_alloc_bio()
294 static struct bio *gfs2_log_get_bio(struct gfs2_sbd *sdp, u64 blkno) in gfs2_log_get_bio()
[all …]
Dlog.c49 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()
151 void gfs2_ail1_flush(struct gfs2_sbd *sdp, struct writeback_control *wbc) in gfs2_ail1_flush()
180 static void gfs2_ail1_start(struct gfs2_sbd *sdp) in gfs2_ail1_start()
199 static void gfs2_ail1_empty_one(struct gfs2_sbd *sdp, struct gfs2_trans *tr, in gfs2_ail1_empty_one()
227 static int gfs2_ail1_empty(struct gfs2_sbd *sdp) in gfs2_ail1_empty()
251 static void gfs2_ail1_wait(struct gfs2_sbd *sdp) in gfs2_ail1_wait()
280 static void gfs2_ail2_empty_one(struct gfs2_sbd *sdp, struct gfs2_trans *tr) in gfs2_ail2_empty_one()
293 static void ail2_empty(struct gfs2_sbd *sdp, unsigned int new_tail) in ail2_empty()
326 void gfs2_log_release(struct gfs2_sbd *sdp, unsigned int blks) in gfs2_log_release()
[all …]
Dquota.c88 static unsigned int gfs2_qd_hash(const struct gfs2_sbd *sdp, in gfs2_qd_hash()
93 h = jhash(&sdp, sizeof(struct gfs2_sbd *), 0); in gfs2_qd_hash()
118 struct gfs2_sbd *sdp; in gfs2_qd_dispose()
214 static struct gfs2_quota_data *qd_alloc(unsigned hash, struct gfs2_sbd *sdp, struct kqid qid) in qd_alloc()
244 const struct gfs2_sbd *sdp, in gfs2_qd_search_bucket()
265 static int qd_get(struct gfs2_sbd *sdp, struct kqid qid, in qd_get()
305 struct gfs2_sbd *sdp = qd->qd_gl->gl_name.ln_sbd; in qd_hold()
323 struct gfs2_sbd *sdp = qd->qd_sbd; in slot_get()
347 struct gfs2_sbd *sdp = qd->qd_sbd; in slot_hold()
357 struct gfs2_sbd *sdp = qd->qd_sbd; in slot_put()
[all …]
Dinode.h35 const struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode); in gfs2_is_writeback()
41 const struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode); in gfs2_is_ordered()
99 extern struct inode *gfs2_lookup_by_inum(struct gfs2_sbd *sdp, u64 no_addr,
127 static inline int gfs2_localflocks(const struct gfs2_sbd *sdp) in gfs2_localflocks()
135 static inline int gfs2_localflocks(const struct gfs2_sbd *sdp) in gfs2_localflocks()
Dops_fstype.c66 static struct gfs2_sbd *init_sbd(struct super_block *sb) in init_sbd()
68 struct gfs2_sbd *sdp; in init_sbd()
71 sdp = kzalloc(sizeof(struct gfs2_sbd), GFP_KERNEL); in init_sbd()
153 static int gfs2_check_sb(struct gfs2_sbd *sdp, int silent) in gfs2_check_sb()
193 static void gfs2_sb_in(struct gfs2_sbd *sdp, const void *buf) in gfs2_sb_in()
235 static int gfs2_read_super(struct gfs2_sbd *sdp, sector_t sector, int silent) in gfs2_read_super()
279 static int gfs2_read_sb(struct gfs2_sbd *sdp, int silent) in gfs2_read_sb()
351 static int init_names(struct gfs2_sbd *sdp, int silent) in init_names()
387 static int init_locking(struct gfs2_sbd *sdp, struct gfs2_holder *mount_gh, in init_locking()
445 struct gfs2_sbd *sdp = sb->s_fs_info; in gfs2_lookup_root()
[all …]
Dlock_dlm.c284 struct gfs2_sbd *sdp = gl->gl_name.ln_sbd; in gdlm_put_lock()
499 static int sync_unlock(struct gfs2_sbd *sdp, struct dlm_lksb *lksb, char *name) in sync_unlock()
521 static int sync_lock(struct gfs2_sbd *sdp, int mode, uint32_t flags, in sync_lock()
552 static int mounted_unlock(struct gfs2_sbd *sdp) in mounted_unlock()
558 static int mounted_lock(struct gfs2_sbd *sdp, int mode, uint32_t flags) in mounted_lock()
565 static int control_unlock(struct gfs2_sbd *sdp) in control_unlock()
571 static int control_lock(struct gfs2_sbd *sdp, int mode, uint32_t flags) in control_lock()
580 struct gfs2_sbd *sdp = container_of(work, struct gfs2_sbd, sd_control_work.work); in gfs2_control_func()
756 static int control_mount(struct gfs2_sbd *sdp) in control_mount()
954 static int control_first_done(struct gfs2_sbd *sdp) in control_first_done()
[all …]
Dsuper.c307 void gfs2_jindex_free(struct gfs2_sbd *sdp) in gfs2_jindex_free()
345 struct gfs2_jdesc *gfs2_jdesc_find(struct gfs2_sbd *sdp, unsigned int jid) in gfs2_jdesc_find()
359 struct gfs2_sbd *sdp = GFS2_SB(jd->jd_inode); in gfs2_jdesc_check()
375 static int init_threads(struct gfs2_sbd *sdp) in init_threads()
409 int gfs2_make_fs_rw(struct gfs2_sbd *sdp) in gfs2_make_fs_rw()
479 int gfs2_statfs_init(struct gfs2_sbd *sdp) in gfs2_statfs_init()
525 void gfs2_statfs_change(struct gfs2_sbd *sdp, s64 total, s64 free, in gfs2_statfs_change()
560 void update_statfs(struct gfs2_sbd *sdp, struct buffer_head *m_bh, in update_statfs()
584 struct gfs2_sbd *sdp = sb->s_fs_info; in gfs2_statfs_sync()
651 static int gfs2_lock_fs_check_clean(struct gfs2_sbd *sdp, in gfs2_lock_fs_check_clean()
[all …]
Dmeta_io.h43 static inline struct gfs2_sbd *gfs2_mapping2sbd(struct address_space *mapping) in gfs2_mapping2sbd()
49 return container_of(mapping, struct gfs2_sbd, sd_aspace); in gfs2_mapping2sbd()
57 extern int gfs2_meta_wait(struct gfs2_sbd *sdp, struct buffer_head *bh);
Dglops.c58 struct gfs2_sbd *sdp = gl->gl_name.ln_sbd; in __gfs2_ail_flush()
86 struct gfs2_sbd *sdp = gl->gl_name.ln_sbd; in gfs2_ail_empty_gl()
118 struct gfs2_sbd *sdp = gl->gl_name.ln_sbd; in gfs2_ail_flush()
149 struct gfs2_sbd *sdp = gl->gl_name.ln_sbd; in rgrp_go_sync()
190 struct gfs2_sbd *sdp = gl->gl_name.ln_sbd; in rgrp_go_inval()
332 struct gfs2_sbd *sdp = gl->gl_name.ln_sbd; in inode_go_demote_ok()
342 struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode); in gfs2_dinode_in()
438 struct gfs2_sbd *sdp = gl->gl_name.ln_sbd; in inode_go_lock()
499 struct gfs2_sbd *sdp = gl->gl_name.ln_sbd; in freeze_go_sync()
523 struct gfs2_sbd *sdp = gl->gl_name.ln_sbd; in freeze_go_xmote_bh()
[all …]
Dtrans.c31 int gfs2_trans_begin(struct gfs2_sbd *sdp, unsigned int blocks, in gfs2_trans_begin()
91 void gfs2_trans_end(struct gfs2_sbd *sdp) in gfs2_trans_end()
160 struct gfs2_sbd *sdp = gl->gl_name.ln_sbd; in gfs2_trans_add_data()
197 struct gfs2_sbd *sdp = gl->gl_name.ln_sbd; in gfs2_trans_add_meta()
249 void gfs2_trans_add_revoke(struct gfs2_sbd *sdp, struct gfs2_bufdata *bd) in gfs2_trans_add_revoke()
259 void gfs2_trans_add_unrevoke(struct gfs2_sbd *sdp, u64 blkno, unsigned int len) in gfs2_trans_add_unrevoke()
Dmeta_io.c116 struct gfs2_sbd *sdp = gl->gl_name.ln_sbd; in gfs2_getbuf()
253 struct gfs2_sbd *sdp = gl->gl_name.ln_sbd; in gfs2_meta_read()
313 int gfs2_meta_wait(struct gfs2_sbd *sdp, struct buffer_head *bh) in gfs2_meta_wait()
335 struct gfs2_sbd *sdp = gfs2_mapping2sbd(mapping); in gfs2_remove_from_journal()
376 struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode); in gfs2_meta_wipe()
408 struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode); in gfs2_meta_indirect_buffer()
439 struct gfs2_sbd *sdp = gl->gl_name.ln_sbd; in gfs2_meta_ra()
Dincore.h37 struct gfs2_sbd;
55 void (*lo_before_commit) (struct gfs2_sbd *sdp, struct gfs2_trans *tr);
56 void (*lo_after_commit) (struct gfs2_sbd *sdp, struct gfs2_trans *tr);
113 struct gfs2_sbd *rd_sbd;
230 struct gfs2_sbd *ln_sbd;
442 static inline struct gfs2_sbd *GFS2_SB(const struct inode *inode) in GFS2_SB()
469 struct gfs2_sbd *qd_sbd;
698 struct gfs2_sbd { struct
871 const struct gfs2_sbd *sdp = gl->gl_name.ln_sbd; in gfs2_sbstats_inc() argument
Daops.c100 struct gfs2_sbd *sdp = GFS2_SB(inode); in gfs2_writepage_common()
207 struct gfs2_sbd *sdp = GFS2_SB(inode); in gfs2_jdata_writepage()
234 struct gfs2_sbd *sdp = gfs2_mapping2sbd(mapping); in gfs2_writepages()
267 struct gfs2_sbd *sdp = GFS2_SB(inode); in gfs2_write_jdata_pagevec()
440 struct gfs2_sbd *sdp = GFS2_SB(mapping->host); in gfs2_jdata_writepages()
507 struct gfs2_sbd *sdp = GFS2_SB(page->mapping->host); in __gfs2_readpage()
625 struct gfs2_sbd *sdp = GFS2_SB(inode); in gfs2_readpages()
649 struct gfs2_sbd *sdp = inode->i_sb->s_fs_info; in adjust_fs_space()
763 static void gfs2_discard(struct gfs2_sbd *sdp, struct buffer_head *bh) in gfs2_discard()
788 struct gfs2_sbd *sdp = GFS2_SB(page->mapping->host); in gfs2_invalidatepage()
[all …]
Drgrp.c455 struct gfs2_sbd *sdp = rgd->rd_sbd; in gfs2_rgrp_verify()
512 struct gfs2_rgrpd *gfs2_blk2rgrpd(struct gfs2_sbd *sdp, u64 blk, bool exact) in gfs2_blk2rgrpd()
550 struct gfs2_rgrpd *gfs2_rgrpd_get_first(struct gfs2_sbd *sdp) in gfs2_rgrpd_get_first()
572 struct gfs2_sbd *sdp = rgd->rd_sbd; in gfs2_rgrpd_get_next()
591 struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode); in check_and_update_goal()
723 void gfs2_clear_rgrpd(struct gfs2_sbd *sdp) in gfs2_clear_rgrpd()
769 struct gfs2_sbd *sdp = rgd->rd_sbd; in compute_bitstructs()
844 u64 gfs2_ri_total(struct gfs2_sbd *sdp) in gfs2_ri_total()
868 struct gfs2_sbd *sdp = rgd->rd_sbd; in rgd_insert()
900 struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode); in read_rindex_entry()
[all …]

12