Home
last modified time | relevance | path

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

12

/Linux-v5.15/fs/gfs2/
Dlog.h29 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()
74 extern unsigned int gfs2_struct2blk(struct gfs2_sbd *sdp, unsigned int nstruct);
76 extern bool gfs2_log_is_empty(struct gfs2_sbd *sdp);
77 extern void gfs2_log_release_revokes(struct gfs2_sbd *sdp, unsigned int revokes);
78 extern void gfs2_log_release(struct gfs2_sbd *sdp, unsigned int blks);
79 extern bool gfs2_log_try_reserve(struct gfs2_sbd *sdp, struct gfs2_trans *tr,
81 extern void gfs2_log_reserve(struct gfs2_sbd *sdp, struct gfs2_trans *tr,
[all …]
Dsuper.h18 extern 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 extern void gfs2_jindex_free(struct gfs2_sbd *sdp);
31 extern struct gfs2_jdesc *gfs2_jdesc_find(struct gfs2_sbd *sdp, unsigned int jid);
33 extern int gfs2_lookup_in_master_dir(struct gfs2_sbd *sdp, char *filename,
36 extern int gfs2_make_fs_rw(struct gfs2_sbd *sdp);
37 extern void gfs2_make_fs_ro(struct gfs2_sbd *sdp);
38 extern void gfs2_online_uevent(struct gfs2_sbd *sdp);
39 extern int gfs2_statfs_init(struct gfs2_sbd *sdp);
40 extern void gfs2_statfs_change(struct gfs2_sbd *sdp, s64 total, s64 free,
[all …]
Dsys.c32 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()
131 static ssize_t fsname_show(struct gfs2_sbd *sdp, char *buf) in fsname_show()
136 static ssize_t uuid_show(struct gfs2_sbd *sdp, char *buf) in uuid_show()
146 static ssize_t freeze_show(struct gfs2_sbd *sdp, char *buf) in freeze_show()
154 static ssize_t freeze_store(struct gfs2_sbd *sdp, const char *buf, size_t len) in freeze_store()
[all …]
Dutil.h28 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,
94 int gfs2_meta_check_ii(struct gfs2_sbd *sdp, struct buffer_head *bh,
98 static inline int gfs2_meta_check(struct gfs2_sbd *sdp, in gfs2_meta_check()
111 int gfs2_metatype_check_ii(struct gfs2_sbd *sdp, struct buffer_head *bh,
116 static inline int gfs2_metatype_check_i(struct gfs2_sbd *sdp, in gfs2_metatype_check_i()
147 int gfs2_io_error_i(struct gfs2_sbd *sdp, const char *function,
150 extern int check_journal_clean(struct gfs2_sbd *sdp, struct gfs2_jdesc *jd,
[all …]
Dtrans.h11 struct gfs2_sbd;
37 extern int __gfs2_trans_begin(struct gfs2_trans *tr, struct gfs2_sbd *sdp,
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_remove_revoke(struct gfs2_sbd *sdp, u64 blkno, unsigned int len);
48 extern void gfs2_trans_free(struct gfs2_sbd *sdp, struct gfs2_trans *tr);
Dlops.h14 extern void gfs2_log_incr_head(struct gfs2_sbd *sdp);
16 extern void gfs2_log_write(struct gfs2_sbd *sdp, struct gfs2_jdesc *jd,
20 extern void gfs2_pin(struct gfs2_sbd *sdp, struct buffer_head *bh);
23 extern void gfs2_drain_revokes(struct gfs2_sbd *sdp);
24 static inline unsigned int buf_limit(struct gfs2_sbd *sdp) in buf_limit()
29 static inline unsigned int databuf_limit(struct gfs2_sbd *sdp) in databuf_limit()
34 static inline void lops_before_commit(struct gfs2_sbd *sdp, in lops_before_commit()
43 static inline void lops_after_commit(struct gfs2_sbd *sdp, in lops_after_commit()
Drgrp.h22 struct gfs2_sbd;
27 extern struct gfs2_rgrpd *gfs2_blk2rgrpd(struct gfs2_sbd *sdp, u64 blk, bool exact);
28 extern struct gfs2_rgrpd *gfs2_rgrpd_get_first(struct gfs2_sbd *sdp);
31 extern void gfs2_clear_rgrpd(struct gfs2_sbd *sdp);
32 extern int gfs2_rindex_update(struct gfs2_sbd *sdp);
55 extern int gfs2_check_blk_type(struct gfs2_sbd *sdp, u64 no_addr,
69 extern u64 gfs2_ri_total(struct gfs2_sbd *sdp);
72 extern int gfs2_rgrp_send_discards(struct gfs2_sbd *sdp, u64 offset,
Dlog.c35 static void gfs2_log_shutdown(struct gfs2_sbd *sdp);
48 unsigned int gfs2_struct2blk(struct gfs2_sbd *sdp, unsigned int nstruct) in gfs2_struct2blk()
91 static int gfs2_ail1_start_one(struct gfs2_sbd *sdp, in gfs2_ail1_start_one()
151 static void dump_ail_list(struct gfs2_sbd *sdp) in dump_ail_list()
192 void gfs2_ail1_flush(struct gfs2_sbd *sdp, struct writeback_control *wbc) in gfs2_ail1_flush()
237 static void gfs2_ail1_start(struct gfs2_sbd *sdp) in gfs2_ail1_start()
249 static void gfs2_log_update_flush_tail(struct gfs2_sbd *sdp) in gfs2_log_update_flush_tail()
262 static void gfs2_log_update_head(struct gfs2_sbd *sdp) in gfs2_log_update_head()
275 static void gfs2_ail_empty_tr(struct gfs2_sbd *sdp, struct gfs2_trans *tr, in gfs2_ail_empty_tr()
297 static int gfs2_ail1_empty_one(struct gfs2_sbd *sdp, struct gfs2_trans *tr, in gfs2_ail1_empty_one()
[all …]
Dglock.h128 int (*lm_mount) (struct gfs2_sbd *sdp, const char *table);
129 void (*lm_first_done) (struct gfs2_sbd *sdp);
130 void (*lm_recovery_result) (struct gfs2_sbd *sdp, unsigned int jid,
132 void (*lm_unmount) (struct gfs2_sbd *sdp);
133 void (*lm_withdraw) (struct gfs2_sbd *sdp);
185 extern int gfs2_glock_get(struct gfs2_sbd *sdp, u64 number,
203 extern int gfs2_glock_nq_num(struct gfs2_sbd *sdp, u64 number,
256 extern void gfs2_flush_delete_work(struct gfs2_sbd *sdp);
257 extern void gfs2_gl_hash_clear(struct gfs2_sbd *sdp);
259 extern void gfs2_glock_thaw(struct gfs2_sbd *sdp);
[all …]
Dquota.h13 struct gfs2_sbd;
32 extern int gfs2_quota_refresh(struct gfs2_sbd *sdp, struct kqid qid);
34 extern int gfs2_quota_init(struct gfs2_sbd *sdp);
35 extern void gfs2_quota_cleanup(struct gfs2_sbd *sdp);
38 extern void gfs2_wake_up_statfs(struct gfs2_sbd *sdp);
43 struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode); in gfs2_quota_lock_check()
Dsys.h11 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);
Dutil.c38 void gfs2_assert_i(struct gfs2_sbd *sdp) in gfs2_assert_i()
51 int check_journal_clean(struct gfs2_sbd *sdp, struct gfs2_jdesc *jd, in check_journal_clean()
101 int gfs2_freeze_lock(struct gfs2_sbd *sdp, struct gfs2_holder *freeze_gh, in gfs2_freeze_lock()
120 static void signal_our_withdraw(struct gfs2_sbd *sdp) in signal_our_withdraw()
306 void gfs2_lm(struct gfs2_sbd *sdp, const char *fmt, ...) in gfs2_lm()
322 int gfs2_withdraw(struct gfs2_sbd *sdp) in gfs2_withdraw()
372 void gfs2_assert_withdraw_i(struct gfs2_sbd *sdp, char *assertion, in gfs2_assert_withdraw_i()
402 void gfs2_assert_warn_i(struct gfs2_sbd *sdp, char *assertion, in gfs2_assert_warn_i()
432 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 …]
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()
102 static void gfs2_unpin(struct gfs2_sbd *sdp, struct buffer_head *bh, in gfs2_unpin()
136 void gfs2_log_incr_head(struct gfs2_sbd *sdp) in gfs2_log_incr_head()
169 static void gfs2_end_log_write_bh(struct gfs2_sbd *sdp, in gfs2_end_log_write_bh()
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()
264 static struct bio *gfs2_log_alloc_bio(struct gfs2_sbd *sdp, u64 blkno, in gfs2_log_alloc_bio()
295 static struct bio *gfs2_log_get_bio(struct gfs2_sbd *sdp, u64 blkno, in gfs2_log_get_bio()
329 void gfs2_log_write(struct gfs2_sbd *sdp, struct gfs2_jdesc *jd, in gfs2_log_write()
[all …]
Dquota.c85 static unsigned int gfs2_qd_hash(const struct gfs2_sbd *sdp, in gfs2_qd_hash()
90 h = jhash(&sdp, sizeof(struct gfs2_sbd *), 0); in gfs2_qd_hash()
115 struct gfs2_sbd *sdp; in gfs2_qd_dispose()
211 static struct gfs2_quota_data *qd_alloc(unsigned hash, struct gfs2_sbd *sdp, struct kqid qid) in qd_alloc()
241 const struct gfs2_sbd *sdp, in gfs2_qd_search_bucket()
262 static int qd_get(struct gfs2_sbd *sdp, struct kqid qid, in qd_get()
302 struct gfs2_sbd *sdp = qd->qd_gl->gl_name.ln_sbd; in qd_hold()
320 struct gfs2_sbd *sdp = qd->qd_sbd; in slot_get()
344 struct gfs2_sbd *sdp = qd->qd_sbd; in slot_hold()
354 struct gfs2_sbd *sdp = qd->qd_sbd; in slot_put()
[all …]
Dsuper.c59 void gfs2_jindex_free(struct gfs2_sbd *sdp) in gfs2_jindex_free()
92 struct gfs2_jdesc *gfs2_jdesc_find(struct gfs2_sbd *sdp, unsigned int jid) in gfs2_jdesc_find()
106 struct gfs2_sbd *sdp = GFS2_SB(jd->jd_inode); in gfs2_jdesc_check()
129 int gfs2_make_fs_rw(struct gfs2_sbd *sdp) in gfs2_make_fs_rw()
177 int gfs2_statfs_init(struct gfs2_sbd *sdp) in gfs2_statfs_init()
216 void gfs2_statfs_change(struct gfs2_sbd *sdp, s64 total, s64 free, in gfs2_statfs_change()
245 void update_statfs(struct gfs2_sbd *sdp, struct buffer_head *m_bh) in update_statfs()
268 struct gfs2_sbd *sdp = sb->s_fs_info; in gfs2_statfs_sync()
324 static int gfs2_lock_fs_check_clean(struct gfs2_sbd *sdp) in gfs2_lock_fs_check_clean()
427 struct gfs2_sbd *sdp = GFS2_SB(inode); in gfs2_write_inode()
[all …]
Dinode.h30 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()
94 extern struct inode *gfs2_lookup_by_inum(struct gfs2_sbd *sdp, u64 no_addr,
122 static inline int gfs2_localflocks(const struct gfs2_sbd *sdp) in gfs2_localflocks()
130 static inline int gfs2_localflocks(const struct gfs2_sbd *sdp) in gfs2_localflocks()
Dtrans.c28 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()
289 void gfs2_trans_add_revoke(struct gfs2_sbd *sdp, struct gfs2_bufdata *bd) in gfs2_trans_add_revoke()
299 void gfs2_trans_remove_revoke(struct gfs2_sbd *sdp, u64 blkno, unsigned int len) in gfs2_trans_remove_revoke()
321 void gfs2_trans_free(struct gfs2_sbd *sdp, struct gfs2_trans *tr) in gfs2_trans_free()
Dlock_dlm.c192 static int make_mode(struct gfs2_sbd *sdp, const unsigned int lmstate) in make_mode()
288 struct gfs2_sbd *sdp = gl->gl_name.ln_sbd; in gdlm_put_lock()
504 static int sync_unlock(struct gfs2_sbd *sdp, struct dlm_lksb *lksb, char *name) in sync_unlock()
526 static int sync_lock(struct gfs2_sbd *sdp, int mode, uint32_t flags, in sync_lock()
557 static int mounted_unlock(struct gfs2_sbd *sdp) in mounted_unlock()
563 static int mounted_lock(struct gfs2_sbd *sdp, int mode, uint32_t flags) in mounted_lock()
570 static int control_unlock(struct gfs2_sbd *sdp) in control_unlock()
576 static int control_lock(struct gfs2_sbd *sdp, int mode, uint32_t flags) in control_lock()
587 static void remote_withdraw(struct gfs2_sbd *sdp) in remote_withdraw()
607 struct gfs2_sbd *sdp = container_of(work, struct gfs2_sbd, sd_control_work.work); in gfs2_control_func()
[all …]
Dops_fstype.c65 void free_sbd(struct gfs2_sbd *sdp) in free_sbd()
72 static struct gfs2_sbd *init_sbd(struct super_block *sb) in init_sbd()
74 struct gfs2_sbd *sdp; in init_sbd()
77 sdp = kzalloc(sizeof(struct gfs2_sbd), GFP_KERNEL); in init_sbd()
160 static int gfs2_check_sb(struct gfs2_sbd *sdp, int silent) in gfs2_check_sb()
198 static void gfs2_sb_in(struct gfs2_sbd *sdp, const void *buf) in gfs2_sb_in()
239 static int gfs2_read_super(struct gfs2_sbd *sdp, sector_t sector, int silent) in gfs2_read_super()
283 static int gfs2_read_sb(struct gfs2_sbd *sdp, int silent) in gfs2_read_sb()
364 static int init_names(struct gfs2_sbd *sdp, int silent) in init_names()
398 static int init_locking(struct gfs2_sbd *sdp, struct gfs2_holder *mount_gh, in init_locking()
[all …]
Dglops.c36 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()
90 struct gfs2_sbd *sdp = gl->gl_name.ln_sbd; in gfs2_ail_empty_gl()
140 struct gfs2_sbd *sdp = gl->gl_name.ln_sbd; in gfs2_ail_flush()
164 struct gfs2_sbd *sdp = gl->gl_name.ln_sbd; in gfs2_rgrp_metasync()
192 struct gfs2_sbd *sdp = gl->gl_name.ln_sbd; in rgrp_go_sync()
221 struct gfs2_sbd *sdp = gl->gl_name.ln_sbd; in rgrp_go_inval()
387 struct gfs2_sbd *sdp = gl->gl_name.ln_sbd; in inode_go_demote_ok()
494 struct gfs2_sbd *sdp = gl->gl_name.ln_sbd; in inode_go_lock()
563 struct gfs2_sbd *sdp = gl->gl_name.ln_sbd; in freeze_go_sync()
[all …]
Dmeta_io.c115 struct gfs2_sbd *sdp = gl->gl_name.ln_sbd; in gfs2_getbuf()
257 struct gfs2_sbd *sdp = gl->gl_name.ln_sbd; in gfs2_meta_read()
317 int gfs2_meta_wait(struct gfs2_sbd *sdp, struct buffer_head *bh) in gfs2_meta_wait()
339 struct gfs2_sbd *sdp = gfs2_mapping2sbd(mapping); in gfs2_remove_from_journal()
382 static void gfs2_ail1_wipe(struct gfs2_sbd *sdp, u64 bstart, u32 blen) in gfs2_ail1_wipe()
408 struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode); in gfs2_getjdatabuf()
442 struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode); in gfs2_journal_wipe()
483 struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode); in gfs2_meta_buffer()
513 struct gfs2_sbd *sdp = gl->gl_name.ln_sbd; in gfs2_meta_ra()
Daops.c93 struct gfs2_sbd *sdp = GFS2_SB(inode); in gfs2_writepage()
155 struct gfs2_sbd *sdp = GFS2_SB(inode); in __gfs2_jdata_writepage()
181 struct gfs2_sbd *sdp = GFS2_SB(inode); in gfs2_jdata_writepage()
206 struct gfs2_sbd *sdp = gfs2_mapping2sbd(mapping); in gfs2_writepages()
240 struct gfs2_sbd *sdp = GFS2_SB(inode); in gfs2_write_jdata_pagevec()
413 struct gfs2_sbd *sdp = GFS2_SB(mapping->host); in gfs2_jdata_writepages()
472 struct gfs2_sbd *sdp = GFS2_SB(inode); in __gfs2_readpage()
575 struct gfs2_sbd *sdp = GFS2_SB(inode); in adjust_fs_space()
650 static void gfs2_discard(struct gfs2_sbd *sdp, struct buffer_head *bh) in gfs2_discard()
678 struct gfs2_sbd *sdp = GFS2_SB(page->mapping->host); in gfs2_invalidatepage()
[all …]
Dmeta_io.h40 static inline struct gfs2_sbd *gfs2_mapping2sbd(struct address_space *mapping) in gfs2_mapping2sbd()
46 return container_of(mapping, struct gfs2_sbd, sd_aspace); in gfs2_mapping2sbd()
54 extern int gfs2_meta_wait(struct gfs2_sbd *sdp, struct buffer_head *bh);
Dincore.h35 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;
208 struct gfs2_sbd *ln_sbd;
417 static inline struct gfs2_sbd *GFS2_SB(const struct inode *inode) in GFS2_SB()
444 struct gfs2_sbd *qd_sbd;
686 struct gfs2_sbd { struct
861 const struct gfs2_sbd *sdp = gl->gl_name.ln_sbd; in gfs2_sbstats_inc() argument
Drgrp.c109 struct gfs2_sbd *sdp = rbm->rgd->rd_sbd; in gfs2_setbit()
467 struct gfs2_sbd *sdp = rgd->rd_sbd; in gfs2_rgrp_verify()
524 struct gfs2_rgrpd *gfs2_blk2rgrpd(struct gfs2_sbd *sdp, u64 blk, bool exact) in gfs2_blk2rgrpd()
562 struct gfs2_rgrpd *gfs2_rgrpd_get_first(struct gfs2_sbd *sdp) in gfs2_rgrpd_get_first()
584 struct gfs2_sbd *sdp = rgd->rd_sbd; in gfs2_rgrpd_get_next()
603 struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode); in check_and_update_goal()
715 void gfs2_clear_rgrpd(struct gfs2_sbd *sdp) in gfs2_clear_rgrpd()
756 struct gfs2_sbd *sdp = rgd->rd_sbd; in compute_bitstructs()
840 u64 gfs2_ri_total(struct gfs2_sbd *sdp) in gfs2_ri_total()
864 struct gfs2_sbd *sdp = rgd->rd_sbd; in rgd_insert()
[all …]

12