/kernel/linux/linux-5.10/fs/gfs2/ |
H A D | log.c | 35 static void gfs2_log_shutdown(struct gfs2_sbd *sdp); 39 * @sdp: the filesystem 48 unsigned int gfs2_struct2blk(struct gfs2_sbd *sdp, unsigned int nstruct) in gfs2_struct2blk() argument 54 first = sdp->sd_ldptrs; in gfs2_struct2blk() 57 second = sdp->sd_inptrs; in gfs2_struct2blk() 84 * @sdp: the filesystem 90 static int gfs2_ail1_start_one(struct gfs2_sbd *sdp, 93 __releases(&sdp->sd_ail_lock) 94 __acquires(&sdp->sd_ail_lock) 105 gfs2_assert(sdp, b 115 gfs2_withdraw_delayed(sdp); global() variable 145 dump_ail_list(struct gfs2_sbd *sdp) dump_ail_list() argument 186 gfs2_ail1_flush(struct gfs2_sbd *sdp, struct writeback_control *wbc) gfs2_ail1_flush() argument 231 gfs2_ail1_start(struct gfs2_sbd *sdp) gfs2_ail1_start() argument 252 gfs2_ail1_empty_one(struct gfs2_sbd *sdp, struct gfs2_trans *tr, int *max_revokes) gfs2_ail1_empty_one() argument 305 gfs2_ail1_empty(struct gfs2_sbd *sdp, int max_revokes) gfs2_ail1_empty() argument 329 gfs2_ail1_wait(struct gfs2_sbd *sdp) gfs2_ail1_wait() argument 355 gfs2_ail_empty_tr(struct gfs2_sbd *sdp, struct gfs2_trans *tr, struct list_head *head) gfs2_ail_empty_tr() argument 368 ail2_empty(struct gfs2_sbd *sdp, unsigned int new_tail) ail2_empty() argument 401 gfs2_log_release(struct gfs2_sbd *sdp, unsigned int blks) gfs2_log_release() argument 431 gfs2_log_reserve(struct gfs2_sbd *sdp, unsigned int blks) gfs2_log_reserve() argument 497 log_distance(struct gfs2_sbd *sdp, unsigned int newer, unsigned int older) log_distance() argument 534 calc_reserved(struct gfs2_sbd *sdp) calc_reserved() argument 558 current_tail(struct gfs2_sbd *sdp) current_tail() argument 578 log_pull_tail(struct gfs2_sbd *sdp, unsigned int new_tail) log_pull_tail() argument 593 log_flush_wait(struct gfs2_sbd *sdp) log_flush_wait() argument 628 gfs2_ordered_write(struct gfs2_sbd *sdp) gfs2_ordered_write() argument 650 gfs2_ordered_wait(struct gfs2_sbd *sdp) gfs2_ordered_wait() argument 669 struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode); gfs2_ordered_del_inode() local 676 gfs2_add_revoke(struct gfs2_sbd *sdp, struct gfs2_bufdata *bd) gfs2_add_revoke() argument 712 gfs2_write_revokes(struct gfs2_sbd *sdp) gfs2_write_revokes() argument 759 gfs2_write_log_header(struct gfs2_sbd *sdp, struct gfs2_jdesc *jd, u64 seq, u32 tail, u32 lblock, u32 flags, int op_flags) gfs2_write_log_header() argument 839 log_write_header(struct gfs2_sbd *sdp, u32 flags) log_write_header() argument 866 ail_drain(struct gfs2_sbd *sdp) ail_drain() argument 900 empty_ail1_list(struct gfs2_sbd *sdp) empty_ail1_list() argument 960 gfs2_log_flush(struct gfs2_sbd *sdp, struct gfs2_glock *gl, u32 flags) gfs2_log_flush() argument 1084 gfs2_merge_trans(struct gfs2_sbd *sdp, struct gfs2_trans *new) gfs2_merge_trans() argument 1106 log_refund(struct gfs2_sbd *sdp, struct gfs2_trans *tr) log_refund() argument 1151 gfs2_log_commit(struct gfs2_sbd *sdp, struct gfs2_trans *tr) gfs2_log_commit() argument 1167 gfs2_log_shutdown(struct gfs2_sbd *sdp) gfs2_log_shutdown() argument 1184 gfs2_jrnl_flush_reqd(struct gfs2_sbd *sdp) gfs2_jrnl_flush_reqd() argument 1191 gfs2_ail_flush_reqd(struct gfs2_sbd *sdp) gfs2_ail_flush_reqd() argument 1212 struct gfs2_sbd *sdp = data; gfs2_logd() local [all...] |
H A D | util.c | 38 void gfs2_assert_i(struct gfs2_sbd *sdp) in gfs2_assert_i() argument 40 fs_emerg(sdp, "fatal assertion failed\n"); in gfs2_assert_i() 45 * @sdp: The GFS2 superblock 50 int check_journal_clean(struct gfs2_sbd *sdp, struct gfs2_jdesc *jd, in check_journal_clean() argument 63 fs_err(sdp, "Error %d locking journal for spectator " in check_journal_clean() 70 fs_err(sdp, "Error checking journal for spectator " in check_journal_clean() 77 fs_err(sdp, "Error parsing journal for spectator " in check_journal_clean() 84 fs_err(sdp, "jid=%u: Journal is dirty, so the first " in check_journal_clean() 96 * @sdp: the superblock 100 int gfs2_freeze_lock(struct gfs2_sbd *sdp, struc argument 119 signal_our_withdraw(struct gfs2_sbd *sdp) signal_our_withdraw() argument 303 gfs2_lm(struct gfs2_sbd *sdp, const char *fmt, ...) gfs2_lm() argument 319 gfs2_withdraw(struct gfs2_sbd *sdp) gfs2_withdraw() argument 369 gfs2_assert_withdraw_i(struct gfs2_sbd *sdp, char *assertion, const char *function, char *file, unsigned int line, bool delayed) gfs2_assert_withdraw_i() argument 399 gfs2_assert_warn_i(struct gfs2_sbd *sdp, char *assertion, const char *function, char *file, unsigned int line) gfs2_assert_warn_i() argument 429 gfs2_consist_i(struct gfs2_sbd *sdp, const char *function, char *file, unsigned int line) gfs2_consist_i() argument 445 struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode); gfs2_consist_inode_i() local 464 struct gfs2_sbd *sdp = rgd->rd_sbd; gfs2_consist_rgrpd_i() local 484 gfs2_meta_check_ii(struct gfs2_sbd *sdp, struct buffer_head *bh, const char *type, const char *function, char *file, unsigned int line) gfs2_meta_check_ii() argument 506 gfs2_metatype_check_ii(struct gfs2_sbd *sdp, struct buffer_head *bh, u16 type, u16 t, const char *function, char *file, unsigned int line) gfs2_metatype_check_ii() argument 528 gfs2_io_error_i(struct gfs2_sbd *sdp, const char *function, char *file, unsigned int line) gfs2_io_error_i() argument 543 gfs2_io_error_bh_i(struct gfs2_sbd *sdp, struct buffer_head *bh, const char *function, char *file, unsigned int line, bool withdraw) gfs2_io_error_bh_i() argument [all...] |
H A D | ops_fstype.c | 65 void free_sbd(struct gfs2_sbd *sdp) in free_sbd() argument 67 if (sdp->sd_lkstats) in free_sbd() 68 free_percpu(sdp->sd_lkstats); in free_sbd() 69 kfree(sdp); in free_sbd() 74 struct gfs2_sbd *sdp; in init_sbd() local 77 sdp = kzalloc(sizeof(struct gfs2_sbd), GFP_KERNEL); in init_sbd() 78 if (!sdp) in init_sbd() 81 sdp->sd_vfs = sb; in init_sbd() 82 sdp->sd_lkstats = alloc_percpu(struct gfs2_pcpu_lkstats); in init_sbd() 83 if (!sdp in init_sbd() 163 gfs2_check_sb(struct gfs2_sbd *sdp, int silent) gfs2_check_sb() argument 203 gfs2_sb_in(struct gfs2_sbd *sdp, const void *buf) gfs2_sb_in() argument 245 gfs2_read_super(struct gfs2_sbd *sdp, sector_t sector, int silent) gfs2_read_super() argument 289 gfs2_read_sb(struct gfs2_sbd *sdp, int silent) gfs2_read_sb() argument 363 init_names(struct gfs2_sbd *sdp, int silent) init_names() argument 399 init_locking(struct gfs2_sbd *sdp, struct gfs2_holder *mount_gh, int undo) init_locking() argument 457 struct gfs2_sbd *sdp = sb->s_fs_info; gfs2_lookup_root() local 476 init_sb(struct gfs2_sbd *sdp, int silent) init_sb() argument 532 gfs2_others_may_mount(struct gfs2_sbd *sdp) gfs2_others_may_mount() argument 553 gfs2_jindex_hold(struct gfs2_sbd *sdp, struct gfs2_holder *ji_gh) gfs2_jindex_hold() argument 628 init_statfs(struct gfs2_sbd *sdp) init_statfs() argument 699 uninit_statfs(struct gfs2_sbd *sdp) uninit_statfs() argument 708 init_journal(struct gfs2_sbd *sdp, int undo) init_journal() argument 856 init_inodes(struct gfs2_sbd *sdp, int undo) init_inodes() argument 909 init_per_node(struct gfs2_sbd *sdp, int undo) init_per_node() argument 980 gfs2_lm_mount(struct gfs2_sbd *sdp, int silent) gfs2_lm_mount() argument 1053 gfs2_lm_unmount(struct gfs2_sbd *sdp) gfs2_lm_unmount() argument 1060 wait_on_journal(struct gfs2_sbd *sdp) wait_on_journal() argument 1069 gfs2_online_uevent(struct gfs2_sbd *sdp) gfs2_online_uevent() argument 1080 init_threads(struct gfs2_sbd *sdp) init_threads() argument 1120 struct gfs2_sbd *sdp; gfs2_fill_super() local 1300 struct gfs2_sbd *sdp; gfs2_get_tree() local 1515 struct gfs2_sbd *sdp = sb->s_fs_info; gfs2_reconfigure() local 1621 struct gfs2_sbd *sdp = fc->root->d_sb->s_fs_info; gfs2_init_fs_context() local 1651 struct gfs2_sbd *sdp; gfs2_meta_get_tree() local 1699 struct gfs2_sbd *sdp = sb->s_fs_info; gfs2_kill_sb() local [all...] |
H A D | sys.c | 39 struct gfs2_sbd *sdp = container_of(kobj, struct gfs2_sbd, sd_kobj); in gfs2_attr_show() local 41 return a->show ? a->show(sdp, buf) : 0; in gfs2_attr_show() 47 struct gfs2_sbd *sdp = container_of(kobj, struct gfs2_sbd, sd_kobj); in gfs2_attr_store() local 49 return a->store ? a->store(sdp, buf, len) : len; in gfs2_attr_store() 60 static ssize_t id_show(struct gfs2_sbd *sdp, char *buf) in id_show() argument 63 MAJOR(sdp->sd_vfs->s_dev), MINOR(sdp->sd_vfs->s_dev)); in id_show() 66 static ssize_t fsname_show(struct gfs2_sbd *sdp, char *buf) in fsname_show() argument 68 return snprintf(buf, PAGE_SIZE, "%s\n", sdp->sd_fsname); in fsname_show() 71 static ssize_t uuid_show(struct gfs2_sbd *sdp, cha argument 81 freeze_show(struct gfs2_sbd *sdp, char *buf) freeze_show() argument 89 freeze_store(struct gfs2_sbd *sdp, const char *buf, size_t len) freeze_store() argument 119 withdraw_show(struct gfs2_sbd *sdp, char *buf) withdraw_show() argument 125 withdraw_store(struct gfs2_sbd *sdp, const char *buf, size_t len) withdraw_store() argument 145 statfs_sync_store(struct gfs2_sbd *sdp, const char *buf, size_t len) statfs_sync_store() argument 164 quota_sync_store(struct gfs2_sbd *sdp, const char *buf, size_t len) quota_sync_store() argument 183 quota_refresh_user_store(struct gfs2_sbd *sdp, const char *buf, size_t len) quota_refresh_user_store() argument 205 quota_refresh_group_store(struct gfs2_sbd *sdp, const char *buf, size_t len) quota_refresh_group_store() argument 227 demote_rq_store(struct gfs2_sbd *sdp, const char *buf, size_t len) demote_rq_store() argument 304 struct gfs2_sbd *sdp = container_of(kobj, struct gfs2_sbd, sd_kobj); gfs2_sbd_release() local 320 proto_name_show(struct gfs2_sbd *sdp, char *buf) proto_name_show() argument 326 block_show(struct gfs2_sbd *sdp, char *buf) block_show() argument 338 block_store(struct gfs2_sbd *sdp, const char *buf, size_t len) block_store() argument 359 wdack_show(struct gfs2_sbd *sdp, char *buf) wdack_show() argument 366 wdack_store(struct gfs2_sbd *sdp, const char *buf, size_t len) wdack_store() argument 382 lkfirst_show(struct gfs2_sbd *sdp, char *buf) lkfirst_show() argument 388 lkfirst_store(struct gfs2_sbd *sdp, const char *buf, size_t len) lkfirst_store() argument 415 first_done_show(struct gfs2_sbd *sdp, char *buf) first_done_show() argument 421 gfs2_recover_set(struct gfs2_sbd *sdp, unsigned jid) gfs2_recover_set() argument 454 recover_store(struct gfs2_sbd *sdp, const char *buf, size_t len) recover_store() argument 473 recover_done_show(struct gfs2_sbd *sdp, char *buf) recover_done_show() argument 479 recover_status_show(struct gfs2_sbd *sdp, char *buf) recover_status_show() argument 485 jid_show(struct gfs2_sbd *sdp, char *buf) jid_show() argument 490 jid_store(struct gfs2_sbd *sdp, const char *buf, size_t len) jid_store() argument 550 quota_scale_show(struct gfs2_sbd *sdp, char *buf) quota_scale_show() argument 557 quota_scale_store(struct gfs2_sbd *sdp, const char *buf, size_t len) quota_scale_store() argument 576 tune_set(struct gfs2_sbd *sdp, unsigned int *field, int check_zero, const char *buf, size_t len) tune_set() argument 647 gfs2_sys_fs_add(struct gfs2_sbd *sdp) gfs2_sys_fs_add() argument 694 gfs2_sys_fs_del(struct gfs2_sbd *sdp) gfs2_sys_fs_del() argument 706 struct gfs2_sbd *sdp = container_of(kobj, struct gfs2_sbd, sd_kobj); gfs2_uevent() local [all...] |
H A D | super.c | 55 * @sdp: The GFS2 superblock 59 void gfs2_jindex_free(struct gfs2_sbd *sdp) in gfs2_jindex_free() argument 64 spin_lock(&sdp->sd_jindex_spin); in gfs2_jindex_free() 65 list_add(&list, &sdp->sd_jindex_list); in gfs2_jindex_free() 66 list_del_init(&sdp->sd_jindex_list); in gfs2_jindex_free() 67 sdp->sd_journals = 0; in gfs2_jindex_free() 68 spin_unlock(&sdp->sd_jindex_spin); in gfs2_jindex_free() 70 sdp->sd_jdesc = NULL; in gfs2_jindex_free() 99 struct gfs2_jdesc *gfs2_jdesc_find(struct gfs2_sbd *sdp, unsigned int jid) in gfs2_jdesc_find() argument 103 spin_lock(&sdp in gfs2_jdesc_find() 113 struct gfs2_sbd *sdp = GFS2_SB(jd->jd_inode); gfs2_jdesc_check() local 136 gfs2_make_fs_rw(struct gfs2_sbd *sdp) gfs2_make_fs_rw() argument 188 gfs2_statfs_init(struct gfs2_sbd *sdp) gfs2_statfs_init() argument 234 gfs2_statfs_change(struct gfs2_sbd *sdp, s64 total, s64 free, s64 dinodes) gfs2_statfs_change() argument 269 update_statfs(struct gfs2_sbd *sdp, struct buffer_head *m_bh, struct buffer_head *l_bh) update_statfs() argument 293 struct gfs2_sbd *sdp = sb->s_fs_info; gfs2_statfs_sync() local 360 gfs2_lock_fs_check_clean(struct gfs2_sbd *sdp) gfs2_lock_fs_check_clean() argument 463 struct gfs2_sbd *sdp = GFS2_SB(inode); gfs2_write_inode() local 506 struct gfs2_sbd *sdp = GFS2_SB(inode); gfs2_dirty_inode() local 558 gfs2_make_fs_ro(struct gfs2_sbd *sdp) gfs2_make_fs_ro() argument 607 struct gfs2_sbd *sdp = sb->s_fs_info; gfs2_put_super() local 682 struct gfs2_sbd *sdp = sb->s_fs_info; gfs2_sync_fs() local 695 struct gfs2_sbd *sdp = container_of(work, struct gfs2_sbd, sd_freeze_work); gfs2_freeze_func() local 726 struct gfs2_sbd *sdp = sb->s_fs_info; gfs2_freeze() local 771 struct gfs2_sbd *sdp = sb->s_fs_info; gfs2_unfreeze() local 816 gfs2_statfs_slow(struct gfs2_sbd *sdp, struct gfs2_statfs_change_host *sc) gfs2_statfs_slow() argument 889 gfs2_statfs_i(struct gfs2_sbd *sdp, struct gfs2_statfs_change_host *sc) gfs2_statfs_i() argument 924 struct gfs2_sbd *sdp = sb->s_fs_info; gfs2_statfs() local 1018 struct gfs2_sbd *sdp = root->d_sb->s_fs_info; gfs2_show_options() local 1135 struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode); gfs2_dinode_dealloc() local 1201 struct gfs2_sbd *sdp = GFS2_SB(inode); gfs2_upgrade_iopen_glock() local 1261 struct gfs2_sbd *sdp = sb->s_fs_info; evict_should_delete() local 1360 struct gfs2_sbd *sdp = sb->s_fs_info; evict_linked_inode() local 1410 struct gfs2_sbd *sdp = sb->s_fs_info; gfs2_evict_inode() local 1499 free_local_statfs_inodes(struct gfs2_sbd *sdp) free_local_statfs_inodes() argument 1514 find_local_statfs_inode(struct gfs2_sbd *sdp, unsigned int index) find_local_statfs_inode() argument [all...] |
H A D | util.h | 28 void gfs2_assert_i(struct gfs2_sbd *sdp); 30 #define gfs2_assert(sdp, assertion) \ 33 gfs2_assert_i(sdp); \ 39 void gfs2_assert_withdraw_i(struct gfs2_sbd *sdp, char *assertion, 43 #define gfs2_assert_withdraw(sdp, assertion) \ 47 gfs2_assert_withdraw_i((sdp), #assertion, \ 52 #define gfs2_assert_withdraw_delayed(sdp, assertion) \ 56 gfs2_assert_withdraw_i((sdp), #assertion, \ 61 void gfs2_assert_warn_i(struct gfs2_sbd *sdp, char *assertion, 64 #define gfs2_assert_warn(sdp, assertio 98 gfs2_meta_check(struct gfs2_sbd *sdp, struct buffer_head *bh) gfs2_meta_check() argument 116 gfs2_metatype_check_i(struct gfs2_sbd *sdp, struct buffer_head *bh, u16 type, const char *function, char *file, unsigned int line) gfs2_metatype_check_i() argument 196 gfs2_withdraw_delayed(struct gfs2_sbd *sdp) gfs2_withdraw_delayed() argument 205 gfs2_withdrawn(struct gfs2_sbd *sdp) gfs2_withdrawn() argument 215 gfs2_withdrawing(struct gfs2_sbd *sdp) gfs2_withdrawing() argument [all...] |
H A D | trans.c | 28 static void gfs2_print_trans(struct gfs2_sbd *sdp, const struct gfs2_trans *tr) in gfs2_print_trans() argument 30 fs_warn(sdp, "Transaction created at: %pSR\n", (void *)tr->tr_ip); in gfs2_print_trans() 31 fs_warn(sdp, "blocks=%u revokes=%u reserved=%u touched=%u\n", in gfs2_print_trans() 34 fs_warn(sdp, "Buf %u/%u Databuf %u/%u Revoke %u/%u\n", in gfs2_print_trans() 40 int gfs2_trans_begin(struct gfs2_sbd *sdp, unsigned int blocks, in gfs2_trans_begin() argument 47 gfs2_print_trans(sdp, current->journal_info); in gfs2_trans_begin() 52 if (!test_bit(SDF_JOURNAL_LIVE, &sdp->sd_flags)) in gfs2_trans_begin() 67 tr->tr_reserved += gfs2_struct2blk(sdp, revokes); in gfs2_trans_begin() 74 sb_start_intwrite(sdp->sd_vfs); in gfs2_trans_begin() 76 error = gfs2_log_reserve(sdp, t in gfs2_trans_begin() 91 gfs2_trans_end(struct gfs2_sbd *sdp) gfs2_trans_end() argument 160 struct gfs2_sbd *sdp = gl->gl_name.ln_sbd; gfs2_trans_add_data() local 197 struct gfs2_sbd *sdp = gl->gl_name.ln_sbd; gfs2_trans_add_meta() local 254 gfs2_trans_add_revoke(struct gfs2_sbd *sdp, struct gfs2_bufdata *bd) gfs2_trans_add_revoke() argument 264 gfs2_trans_remove_revoke(struct gfs2_sbd *sdp, u64 blkno, unsigned int len) gfs2_trans_remove_revoke() argument 287 gfs2_trans_free(struct gfs2_sbd *sdp, struct gfs2_trans *tr) gfs2_trans_free() argument [all...] |
H A D | log.h | 18 * @sdp: the filesystem 22 static inline void gfs2_log_lock(struct gfs2_sbd *sdp) 23 __acquires(&sdp->sd_log_lock) 25 spin_lock(&sdp->sd_log_lock); 30 * @sdp: the filesystem 34 static inline void gfs2_log_unlock(struct gfs2_sbd *sdp) 35 __releases(&sdp->sd_log_lock) 37 spin_unlock(&sdp->sd_log_lock); 40 static inline void gfs2_log_pointers_init(struct gfs2_sbd *sdp, in gfs2_log_pointers_init() argument 43 if (++value == sdp in gfs2_log_pointers_init() 51 struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode); gfs2_ordered_add_inode() local [all...] |
H A D | lops.c | 37 * @sdp: The superblock 42 void gfs2_pin(struct gfs2_sbd *sdp, struct buffer_head *bh) in gfs2_pin() argument 50 gfs2_assert_withdraw(sdp, 0); in gfs2_pin() 52 gfs2_io_error_bh_wd(sdp, bh); in gfs2_pin() 57 spin_lock(&sdp->sd_ail_lock); in gfs2_pin() 60 spin_unlock(&sdp->sd_ail_lock); in gfs2_pin() 62 atomic_inc(&sdp->sd_log_pinned); in gfs2_pin() 74 struct gfs2_sbd *sdp = gl->gl_name.ln_sbd; in maybe_release_space() local 81 if (sdp->sd_args.ar_discard) in maybe_release_space() 82 gfs2_rgrp_send_discards(sdp, rg in maybe_release_space() 99 gfs2_unpin(struct gfs2_sbd *sdp, struct buffer_head *bh, struct gfs2_trans *tr) gfs2_unpin() argument 133 gfs2_log_incr_head(struct gfs2_sbd *sdp) gfs2_log_incr_head() argument 166 gfs2_end_log_write_bh(struct gfs2_sbd *sdp, struct bio_vec *bvec, blk_status_t error) gfs2_end_log_write_bh() argument 201 struct gfs2_sbd *sdp = bio->bi_private; gfs2_end_log_write() local 242 struct gfs2_sbd *sdp = bio->bi_private; gfs2_log_submit_bio() local 261 gfs2_log_alloc_bio(struct gfs2_sbd *sdp, u64 blkno, bio_end_io_t *end_io) gfs2_log_alloc_bio() argument 292 gfs2_log_get_bio(struct gfs2_sbd *sdp, u64 blkno, struct bio **biop, int op, bio_end_io_t *end_io, bool flush) gfs2_log_get_bio() argument 325 gfs2_log_write(struct gfs2_sbd *sdp, struct page *page, unsigned size, unsigned offset, u64 blkno) gfs2_log_write() argument 352 gfs2_log_write_bh(struct gfs2_sbd *sdp, struct buffer_head *bh) gfs2_log_write_bh() argument 372 gfs2_log_write_page(struct gfs2_sbd *sdp, struct page *page) gfs2_log_write_page() argument 422 struct gfs2_sbd *sdp = GFS2_SB(jd->jd_inode); gfs2_jhead_pg_srch() local 507 struct gfs2_sbd *sdp = GFS2_SB(jd->jd_inode); gfs2_find_jhead() local 601 gfs2_get_log_desc(struct gfs2_sbd *sdp, u32 ld_type, u32 ld_length, u32 ld_data1) gfs2_get_log_desc() argument 645 gfs2_before_commit(struct gfs2_sbd *sdp, unsigned int limit, unsigned int total, struct list_head *blist, bool is_databuf) gfs2_before_commit() argument 719 buf_lo_before_commit(struct gfs2_sbd *sdp, struct gfs2_trans *tr) buf_lo_before_commit() argument 729 buf_lo_after_commit(struct gfs2_sbd *sdp, struct gfs2_trans *tr) buf_lo_after_commit() argument 760 struct gfs2_sbd *sdp = GFS2_SB(jd->jd_inode); buf_lo_scan_elements() local 825 struct gfs2_sbd *sdp = GFS2_SB(jd->jd_inode); buf_lo_after_scan() local 840 revoke_lo_before_commit(struct gfs2_sbd *sdp, struct gfs2_trans *tr) revoke_lo_before_commit() argument 880 revoke_lo_after_commit(struct gfs2_sbd *sdp, struct gfs2_trans *tr) revoke_lo_after_commit() argument 909 struct gfs2_sbd *sdp = GFS2_SB(jd->jd_inode); revoke_lo_scan_elements() local 957 struct gfs2_sbd *sdp = GFS2_SB(jd->jd_inode); revoke_lo_after_scan() local 977 databuf_lo_before_commit(struct gfs2_sbd *sdp, struct gfs2_trans *tr) databuf_lo_before_commit() argument 1040 struct gfs2_sbd *sdp = GFS2_SB(jd->jd_inode); databuf_lo_after_scan() local 1056 databuf_lo_after_commit(struct gfs2_sbd *sdp, struct gfs2_trans *tr) databuf_lo_after_commit() argument [all...] |
H A D | quota.c | 85 static unsigned int gfs2_qd_hash(const struct gfs2_sbd *sdp, in gfs2_qd_hash() argument 90 h = jhash(&sdp, sizeof(struct gfs2_sbd *), 0); in gfs2_qd_hash() 115 struct gfs2_sbd *sdp; in gfs2_qd_dispose() local 119 sdp = qd->qd_gl->gl_name.ln_sbd; in gfs2_qd_dispose() 132 gfs2_assert_warn(sdp, !qd->qd_change); in gfs2_qd_dispose() 133 gfs2_assert_warn(sdp, !qd->qd_slot_count); in gfs2_qd_dispose() 134 gfs2_assert_warn(sdp, !qd->qd_bh_count); in gfs2_qd_dispose() 137 atomic_dec(&sdp->sd_quota_count); in gfs2_qd_dispose() 211 static struct gfs2_quota_data *qd_alloc(unsigned hash, struct gfs2_sbd *sdp, struct kqid qid) in qd_alloc() argument 220 qd->qd_sbd = sdp; in qd_alloc() 240 gfs2_qd_search_bucket(unsigned int hash, const struct gfs2_sbd *sdp, struct kqid qid) gfs2_qd_search_bucket() argument 262 qd_get(struct gfs2_sbd *sdp, struct kqid qid, struct gfs2_quota_data **qdp) qd_get() argument 302 struct gfs2_sbd *sdp = qd->qd_gl->gl_name.ln_sbd; qd_hold() local 320 struct gfs2_sbd *sdp = qd->qd_sbd; slot_get() local 344 struct gfs2_sbd *sdp = qd->qd_sbd; slot_hold() local 354 struct gfs2_sbd *sdp = qd->qd_sbd; slot_put() local 367 struct gfs2_sbd *sdp = qd->qd_gl->gl_name.ln_sbd; bh_get() local 414 struct gfs2_sbd *sdp = qd->qd_gl->gl_name.ln_sbd; bh_put() local 426 qd_check_sync(struct gfs2_sbd *sdp, struct gfs2_quota_data *qd, u64 *sync_gen) qd_check_sync() argument 455 qd_fish(struct gfs2_sbd *sdp, struct gfs2_quota_data **qdp) qd_fish() argument 505 qdsb_get(struct gfs2_sbd *sdp, struct kqid qid, struct gfs2_quota_data **qdp) qdsb_get() argument 545 struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode); gfs2_qa_get() local 585 struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode); gfs2_quota_hold() local 643 struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode); gfs2_quota_unhold() local 673 struct gfs2_sbd *sdp = qd->qd_gl->gl_name.ln_sbd; do_qc() local 717 struct gfs2_sbd *sdp = GFS2_SB(inode); gfs2_write_buf_to_page() local 841 struct gfs2_sbd *sdp = GFS2_SB(inode); gfs2_adjust_quota() local 893 struct gfs2_sbd *sdp = (*qda)->qd_gl->gl_name.ln_sbd; do_sync() local 993 update_qd(struct gfs2_sbd *sdp, struct gfs2_quota_data *qd) update_qd() argument 1021 struct gfs2_sbd *sdp = qd->qd_gl->gl_name.ln_sbd; do_glock() local 1068 struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode); gfs2_quota_lock() local 1103 struct gfs2_sbd *sdp = qd->qd_gl->gl_name.ln_sbd; need_sync() local 1139 struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode); gfs2_quota_unlock() local 1190 struct gfs2_sbd *sdp = qd->qd_gl->gl_name.ln_sbd; print_message() local 1220 struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode); gfs2_quota_check() local 1279 struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode); gfs2_quota_change() local 1302 struct gfs2_sbd *sdp = sb->s_fs_info; gfs2_quota_sync() local 1346 gfs2_quota_refresh(struct gfs2_sbd *sdp, struct kqid qid) gfs2_quota_refresh() argument 1364 gfs2_quota_init(struct gfs2_sbd *sdp) gfs2_quota_init() argument 1465 gfs2_quota_cleanup(struct gfs2_sbd *sdp) gfs2_quota_cleanup() argument 1502 quotad_error(struct gfs2_sbd *sdp, const char *msg, int error) quotad_error() argument 1513 quotad_check_timeo(struct gfs2_sbd *sdp, const char *msg, int (*fxn)(struct super_block *sb, int type), unsigned long t, unsigned long *timeo, unsigned int *new_timeo) quotad_check_timeo() argument 1527 quotad_check_trunc_list(struct gfs2_sbd *sdp) quotad_check_trunc_list() argument 1546 gfs2_wake_up_statfs(struct gfs2_sbd *sdp) gfs2_wake_up_statfs() argument 1562 struct gfs2_sbd *sdp = data; gfs2_quotad() local 1613 struct gfs2_sbd *sdp = sb->s_fs_info; gfs2_quota_get_state() local 1645 struct gfs2_sbd *sdp = sb->s_fs_info; gfs2_get_dqblk() local 1684 struct gfs2_sbd *sdp = sb->s_fs_info; gfs2_set_dqblk() local [all...] |
H A D | glops.c | 59 struct gfs2_sbd *sdp = gl->gl_name.ln_sbd; in __gfs2_ail_flush() local 65 gfs2_log_lock(sdp); in __gfs2_ail_flush() 66 spin_lock(&sdp->sd_ail_lock); in __gfs2_ail_flush() 76 gfs2_trans_add_revoke(sdp, bd); in __gfs2_ail_flush() 80 spin_unlock(&sdp->sd_ail_lock); in __gfs2_ail_flush() 81 gfs2_log_unlock(sdp); in __gfs2_ail_flush() 87 struct gfs2_sbd *sdp = gl->gl_name.ln_sbd; in gfs2_ail_empty_gl() local 104 * the sdp revoke queue, in which case, we still want to flush in gfs2_ail_empty_gl() 107 * If the sdp revoke list is empty too, we might still have an in gfs2_ail_empty_gl() 114 gfs2_log_lock(sdp); in gfs2_ail_empty_gl() 147 struct gfs2_sbd *sdp = gl->gl_name.ln_sbd; gfs2_ail_flush() local 175 struct gfs2_sbd *sdp = gl->gl_name.ln_sbd; gfs2_rgrp_metasync() local 203 struct gfs2_sbd *sdp = gl->gl_name.ln_sbd; rgrp_go_sync() local 232 struct gfs2_sbd *sdp = gl->gl_name.ln_sbd; rgrp_go_inval() local 398 struct gfs2_sbd *sdp = gl->gl_name.ln_sbd; inode_go_demote_ok() local 408 struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode); gfs2_dinode_in() local 504 struct gfs2_sbd *sdp = gl->gl_name.ln_sbd; inode_go_lock() local 576 struct gfs2_sbd *sdp = gl->gl_name.ln_sbd; freeze_go_sync() local 620 struct gfs2_sbd *sdp = gl->gl_name.ln_sbd; freeze_go_xmote_bh() local 662 struct gfs2_sbd *sdp = gl->gl_name.ln_sbd; iopen_go_callback() local 707 struct gfs2_sbd *sdp = gl->gl_name.ln_sbd; nondisk_go_callback() local [all...] |
H A D | super.h | 14 extern void gfs2_lm_unmount(struct gfs2_sbd *sdp); 16 static inline unsigned int gfs2_jindex_size(struct gfs2_sbd *sdp) in gfs2_jindex_size() argument 19 spin_lock(&sdp->sd_jindex_spin); in gfs2_jindex_size() 20 x = sdp->sd_journals; in gfs2_jindex_size() 21 spin_unlock(&sdp->sd_jindex_spin); in gfs2_jindex_size() 25 extern void gfs2_jindex_free(struct gfs2_sbd *sdp); 27 extern struct gfs2_jdesc *gfs2_jdesc_find(struct gfs2_sbd *sdp, unsigned int jid); 29 extern int gfs2_lookup_in_master_dir(struct gfs2_sbd *sdp, char *filename, 32 extern int gfs2_make_fs_rw(struct gfs2_sbd *sdp); 33 extern int gfs2_make_fs_ro(struct gfs2_sbd *sdp); [all...] |
H A D | recovery.c | 120 int __get_log_header(struct gfs2_sbd *sdp, const struct gfs2_log_header *lh, in __get_log_header() argument 137 sdp->sd_sb.sb_bsize - LH_V1_SIZE - 4); in __get_log_header() 170 struct gfs2_sbd *sdp = GFS2_SB(jd->jd_inode); in get_log_header() local 178 error = __get_log_header(sdp, (const struct gfs2_log_header *)bh->b_data, in get_log_header() 200 struct gfs2_sbd *sdp = GFS2_SB(jd->jd_inode); in foreach_descriptor() local 214 if (gfs2_meta_check(sdp, bh)) { in foreach_descriptor() 235 } else if (gfs2_metatype_check(sdp, bh, GFS2_METATYPE_LD)) { in foreach_descriptor() 266 struct gfs2_sbd *sdp = GFS2_SB(jd->jd_inode); in clean_journal() local 270 gfs2_write_log_header(sdp, jd, head->lh_sequence + 1, 0, lblock, in clean_journal() 273 if (jd->jd_jid == sdp in clean_journal() 280 gfs2_recovery_done(struct gfs2_sbd *sdp, unsigned int jid, unsigned int message) gfs2_recovery_done() argument 312 struct gfs2_sbd *sdp = GFS2_SB(jd->jd_inode); update_statfs_inode() local 381 struct gfs2_sbd *sdp = GFS2_SB(jd->jd_inode); recover_local_statfs() local 406 struct gfs2_sbd *sdp = GFS2_SB(jd->jd_inode); gfs2_recover_func() local [all...] |
H A D | lock_dlm.c | 189 static int make_mode(struct gfs2_sbd *sdp, const unsigned int lmstate) in make_mode() argument 201 fs_err(sdp, "unknown LM state %d\n", lmstate); in make_mode() 285 struct gfs2_sbd *sdp = gl->gl_name.ln_sbd; in gdlm_put_lock() local 286 struct lm_lockstruct *ls = &sdp->sd_lockstruct; in gdlm_put_lock() 306 if (test_bit(SDF_SKIP_DLM_UNLOCK, &sdp->sd_flags) && in gdlm_put_lock() 315 fs_err(sdp, "gdlm_unlock %x,%llx err=%d\n", in gdlm_put_lock() 501 static int sync_unlock(struct gfs2_sbd *sdp, struct dlm_lksb *lksb, char *name) in sync_unlock() argument 503 struct lm_lockstruct *ls = &sdp->sd_lockstruct; in sync_unlock() 508 fs_err(sdp, "%s lkid %x error %d\n", in sync_unlock() 516 fs_err(sdp, " in sync_unlock() 523 sync_lock(struct gfs2_sbd *sdp, int mode, uint32_t flags, unsigned int num, struct dlm_lksb *lksb, char *name) sync_lock() argument 554 mounted_unlock(struct gfs2_sbd *sdp) mounted_unlock() argument 560 mounted_lock(struct gfs2_sbd *sdp, int mode, uint32_t flags) mounted_lock() argument 567 control_unlock(struct gfs2_sbd *sdp) control_unlock() argument 573 control_lock(struct gfs2_sbd *sdp, int mode, uint32_t flags) control_lock() argument 584 remote_withdraw(struct gfs2_sbd *sdp) remote_withdraw() argument 604 struct gfs2_sbd *sdp = container_of(work, struct gfs2_sbd, sd_control_work.work); gfs2_control_func() local 787 control_mount(struct gfs2_sbd *sdp) control_mount() argument 985 control_first_done(struct gfs2_sbd *sdp) control_first_done() argument 1051 set_recover_size(struct gfs2_sbd *sdp, struct dlm_slot *slots, int num_slots) set_recover_size() argument 1114 struct gfs2_sbd *sdp = arg; gdlm_recover_prep() local 1139 struct gfs2_sbd *sdp = arg; gdlm_recover_slot() local 1169 struct gfs2_sbd *sdp = arg; gdlm_recover_done() local 1198 gdlm_recovery_result(struct gfs2_sbd *sdp, unsigned int jid, unsigned int result) gdlm_recovery_result() argument 1248 gdlm_mount(struct gfs2_sbd *sdp, const char *table) gdlm_mount() argument 1345 gdlm_first_done(struct gfs2_sbd *sdp) gdlm_first_done() argument 1358 gdlm_unmount(struct gfs2_sbd *sdp) gdlm_unmount() argument [all...] |
/kernel/linux/linux-6.6/fs/gfs2/ |
H A D | log.c | 35 static void gfs2_log_shutdown(struct gfs2_sbd *sdp); 39 * @sdp: the filesystem 48 unsigned int gfs2_struct2blk(struct gfs2_sbd *sdp, unsigned int nstruct) in gfs2_struct2blk() argument 55 first = sdp->sd_ldptrs; in gfs2_struct2blk() 59 second = sdp->sd_inptrs; in gfs2_struct2blk() 94 * @sdp: The superblock 100 static int gfs2_ail1_start_one(struct gfs2_sbd *sdp, 103 __releases(&sdp->sd_ail_lock) 104 __acquires(&sdp->sd_ail_lock) 115 gfs2_assert(sdp, b 125 gfs2_withdraw_delayed(sdp); global() variable 160 dump_ail_list(struct gfs2_sbd *sdp) dump_ail_list() argument 201 gfs2_ail1_flush(struct gfs2_sbd *sdp, struct writeback_control *wbc) gfs2_ail1_flush() argument 245 gfs2_ail1_start(struct gfs2_sbd *sdp) gfs2_ail1_start() argument 257 gfs2_log_update_flush_tail(struct gfs2_sbd *sdp) gfs2_log_update_flush_tail() argument 270 gfs2_log_update_head(struct gfs2_sbd *sdp) gfs2_log_update_head() argument 283 gfs2_ail_empty_tr(struct gfs2_sbd *sdp, struct gfs2_trans *tr, struct list_head *head) gfs2_ail_empty_tr() argument 305 gfs2_ail1_empty_one(struct gfs2_sbd *sdp, struct gfs2_trans *tr, int *max_revokes) gfs2_ail1_empty_one() argument 358 gfs2_ail1_empty(struct gfs2_sbd *sdp, int max_revokes) gfs2_ail1_empty() argument 383 gfs2_ail1_wait(struct gfs2_sbd *sdp) gfs2_ail1_wait() argument 405 __ail2_empty(struct gfs2_sbd *sdp, struct gfs2_trans *tr) __ail2_empty() argument 414 ail2_empty(struct gfs2_sbd *sdp, unsigned int new_tail) ail2_empty() argument 440 gfs2_log_is_empty(struct gfs2_sbd *sdp) gfs2_log_is_empty() argument 444 __gfs2_log_try_reserve_revokes(struct gfs2_sbd *sdp, unsigned int revokes) __gfs2_log_try_reserve_revokes() argument 464 gfs2_log_release_revokes(struct gfs2_sbd *sdp, unsigned int revokes) gfs2_log_release_revokes() argument 477 gfs2_log_release(struct gfs2_sbd *sdp, unsigned int blks) gfs2_log_release() argument 496 __gfs2_log_try_reserve(struct gfs2_sbd *sdp, unsigned int blks, unsigned int taboo_blks) __gfs2_log_try_reserve() argument 532 __gfs2_log_reserve(struct gfs2_sbd *sdp, unsigned int blks, unsigned int taboo_blks) __gfs2_log_reserve() argument 569 gfs2_log_try_reserve(struct gfs2_sbd *sdp, struct gfs2_trans *tr, unsigned int *extra_revokes) gfs2_log_try_reserve() argument 600 gfs2_log_reserve(struct gfs2_sbd *sdp, struct gfs2_trans *tr, unsigned int *extra_revokes) gfs2_log_reserve() argument 628 log_distance(struct gfs2_sbd *sdp, unsigned int newer, unsigned int older) log_distance() argument 661 calc_reserved(struct gfs2_sbd *sdp) calc_reserved() argument 676 log_pull_tail(struct gfs2_sbd *sdp) log_pull_tail() argument 690 log_flush_wait(struct gfs2_sbd *sdp) log_flush_wait() argument 725 gfs2_ordered_write(struct gfs2_sbd *sdp) gfs2_ordered_write() argument 747 gfs2_ordered_wait(struct gfs2_sbd *sdp) gfs2_ordered_wait() argument 766 struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode); gfs2_ordered_del_inode() local 773 gfs2_add_revoke(struct gfs2_sbd *sdp, struct gfs2_bufdata *bd) gfs2_add_revoke() argument 809 gfs2_flush_revokes(struct gfs2_sbd *sdp) gfs2_flush_revokes() argument 832 gfs2_write_log_header(struct gfs2_sbd *sdp, struct gfs2_jdesc *jd, u64 seq, u32 tail, u32 lblock, u32 flags, blk_opf_t op_flags) gfs2_write_log_header() argument 914 log_write_header(struct gfs2_sbd *sdp, u32 flags) log_write_header() argument 939 gfs2_ail_drain(struct gfs2_sbd *sdp) gfs2_ail_drain() argument 974 empty_ail1_list(struct gfs2_sbd *sdp) empty_ail1_list() argument 1034 gfs2_log_flush(struct gfs2_sbd *sdp, struct gfs2_glock *gl, u32 flags) gfs2_log_flush() argument 1181 gfs2_merge_trans(struct gfs2_sbd *sdp, struct gfs2_trans *new) gfs2_merge_trans() argument 1203 log_refund(struct gfs2_sbd *sdp, struct gfs2_trans *tr) log_refund() argument 1230 gfs2_jrnl_flush_reqd(struct gfs2_sbd *sdp) gfs2_jrnl_flush_reqd() argument 1237 gfs2_ail_flush_reqd(struct gfs2_sbd *sdp) gfs2_ail_flush_reqd() argument 1260 gfs2_log_commit(struct gfs2_sbd *sdp, struct gfs2_trans *tr) gfs2_log_commit() argument 1274 gfs2_log_shutdown(struct gfs2_sbd *sdp) gfs2_log_shutdown() argument 1297 struct gfs2_sbd *sdp = data; gfs2_logd() local [all...] |
H A D | ops_fstype.c | 65 void free_sbd(struct gfs2_sbd *sdp) in free_sbd() argument 67 if (sdp->sd_lkstats) in free_sbd() 68 free_percpu(sdp->sd_lkstats); in free_sbd() 69 kfree(sdp); in free_sbd() 74 struct gfs2_sbd *sdp; in init_sbd() local 77 sdp = kzalloc(sizeof(struct gfs2_sbd), GFP_KERNEL); in init_sbd() 78 if (!sdp) in init_sbd() 81 sdp->sd_vfs = sb; in init_sbd() 82 sdp->sd_lkstats = alloc_percpu(struct gfs2_pcpu_lkstats); in init_sbd() 83 if (!sdp in init_sbd() 157 gfs2_check_sb(struct gfs2_sbd *sdp, int silent) gfs2_check_sb() argument 198 gfs2_sb_in(struct gfs2_sbd *sdp, const void *buf) gfs2_sb_in() argument 239 gfs2_read_super(struct gfs2_sbd *sdp, sector_t sector, int silent) gfs2_read_super() argument 281 gfs2_read_sb(struct gfs2_sbd *sdp, int silent) gfs2_read_sb() argument 362 init_names(struct gfs2_sbd *sdp, int silent) init_names() argument 398 init_locking(struct gfs2_sbd *sdp, struct gfs2_holder *mount_gh, int undo) init_locking() argument 457 struct gfs2_sbd *sdp = sb->s_fs_info; gfs2_lookup_root() local 476 init_sb(struct gfs2_sbd *sdp, int silent) init_sb() argument 545 gfs2_others_may_mount(struct gfs2_sbd *sdp) gfs2_others_may_mount() argument 566 gfs2_jindex_hold(struct gfs2_sbd *sdp, struct gfs2_holder *ji_gh) gfs2_jindex_hold() argument 642 init_statfs(struct gfs2_sbd *sdp) init_statfs() argument 721 uninit_statfs(struct gfs2_sbd *sdp) uninit_statfs() argument 731 init_journal(struct gfs2_sbd *sdp, int undo) init_journal() argument 877 init_inodes(struct gfs2_sbd *sdp, int undo) init_inodes() argument 930 init_per_node(struct gfs2_sbd *sdp, int undo) init_per_node() argument 1000 gfs2_lm_mount(struct gfs2_sbd *sdp, int silent) gfs2_lm_mount() argument 1074 gfs2_lm_unmount(struct gfs2_sbd *sdp) gfs2_lm_unmount() argument 1081 wait_on_journal(struct gfs2_sbd *sdp) wait_on_journal() argument 1090 gfs2_online_uevent(struct gfs2_sbd *sdp) gfs2_online_uevent() argument 1101 init_threads(struct gfs2_sbd *sdp) init_threads() argument 1135 gfs2_destroy_threads(struct gfs2_sbd *sdp) gfs2_destroy_threads() argument 1160 struct gfs2_sbd *sdp; gfs2_fill_super() local 1343 struct gfs2_sbd *sdp; gfs2_get_tree() local 1560 struct gfs2_sbd *sdp = sb->s_fs_info; gfs2_reconfigure() local 1657 struct gfs2_sbd *sdp = fc->root->d_sb->s_fs_info; gfs2_init_fs_context() local 1687 struct gfs2_sbd *sdp; gfs2_meta_get_tree() local 1756 struct gfs2_sbd *sdp = sb->s_fs_info; gfs2_evict_inodes() local 1784 struct gfs2_sbd *sdp = sb->s_fs_info; gfs2_kill_sb() local [all...] |
H A D | util.c | 39 void gfs2_assert_i(struct gfs2_sbd *sdp) in gfs2_assert_i() argument 41 fs_emerg(sdp, "fatal assertion failed\n"); in gfs2_assert_i() 46 * @sdp: The GFS2 superblock 52 int check_journal_clean(struct gfs2_sbd *sdp, struct gfs2_jdesc *jd, in check_journal_clean() argument 65 fs_err(sdp, "Error %d locking journal for spectator " in check_journal_clean() 72 fs_err(sdp, "Error checking journal for spectator " in check_journal_clean() 79 fs_err(sdp, "Error parsing journal for spectator " in check_journal_clean() 86 fs_err(sdp, "jid=%u: Journal is dirty, so the first " in check_journal_clean() 98 * @sdp: the superblock 100 int gfs2_freeze_lock_shared(struct gfs2_sbd *sdp) in gfs2_freeze_lock_shared() argument 118 signal_our_withdraw(struct gfs2_sbd *sdp) signal_our_withdraw() argument 305 gfs2_lm(struct gfs2_sbd *sdp, const char *fmt, ...) gfs2_lm() argument 321 gfs2_withdraw(struct gfs2_sbd *sdp) gfs2_withdraw() argument 371 gfs2_assert_withdraw_i(struct gfs2_sbd *sdp, char *assertion, const char *function, char *file, unsigned int line, bool delayed) gfs2_assert_withdraw_i() argument 401 gfs2_assert_warn_i(struct gfs2_sbd *sdp, char *assertion, const char *function, char *file, unsigned int line) gfs2_assert_warn_i() argument 431 gfs2_consist_i(struct gfs2_sbd *sdp, const char *function, char *file, unsigned int line) gfs2_consist_i() argument 447 struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode); gfs2_consist_inode_i() local 467 struct gfs2_sbd *sdp = rgd->rd_sbd; gfs2_consist_rgrpd_i() local 488 gfs2_meta_check_ii(struct gfs2_sbd *sdp, struct buffer_head *bh, const char *type, const char *function, char *file, unsigned int line) gfs2_meta_check_ii() argument 510 gfs2_metatype_check_ii(struct gfs2_sbd *sdp, struct buffer_head *bh, u16 type, u16 t, const char *function, char *file, unsigned int line) gfs2_metatype_check_ii() argument 532 gfs2_io_error_i(struct gfs2_sbd *sdp, const char *function, char *file, unsigned int line) gfs2_io_error_i() argument 547 gfs2_io_error_bh_i(struct gfs2_sbd *sdp, struct buffer_head *bh, const char *function, char *file, unsigned int line, bool withdraw) gfs2_io_error_bh_i() argument [all...] |
H A D | super.c | 55 * @sdp: The GFS2 superblock 59 void gfs2_jindex_free(struct gfs2_sbd *sdp) in gfs2_jindex_free() argument 64 spin_lock(&sdp->sd_jindex_spin); in gfs2_jindex_free() 65 list_add(&list, &sdp->sd_jindex_list); in gfs2_jindex_free() 66 list_del_init(&sdp->sd_jindex_list); in gfs2_jindex_free() 67 sdp->sd_journals = 0; in gfs2_jindex_free() 68 spin_unlock(&sdp->sd_jindex_spin); in gfs2_jindex_free() 70 sdp->sd_jdesc = NULL; in gfs2_jindex_free() 92 struct gfs2_jdesc *gfs2_jdesc_find(struct gfs2_sbd *sdp, unsigned int jid) in gfs2_jdesc_find() argument 96 spin_lock(&sdp in gfs2_jdesc_find() 106 struct gfs2_sbd *sdp = GFS2_SB(jd->jd_inode); gfs2_jdesc_check() local 129 gfs2_make_fs_rw(struct gfs2_sbd *sdp) gfs2_make_fs_rw() argument 181 gfs2_statfs_init(struct gfs2_sbd *sdp) gfs2_statfs_init() argument 220 gfs2_statfs_change(struct gfs2_sbd *sdp, s64 total, s64 free, s64 dinodes) gfs2_statfs_change() argument 249 update_statfs(struct gfs2_sbd *sdp, struct buffer_head *m_bh) update_statfs() argument 272 struct gfs2_sbd *sdp = sb->s_fs_info; gfs2_statfs_sync() local 328 gfs2_lock_fs_check_clean(struct gfs2_sbd *sdp) gfs2_lock_fs_check_clean() argument 446 struct gfs2_sbd *sdp = GFS2_SB(inode); gfs2_write_inode() local 489 struct gfs2_sbd *sdp = GFS2_SB(inode); gfs2_dirty_inode() local 545 gfs2_make_fs_ro(struct gfs2_sbd *sdp) gfs2_make_fs_ro() argument 585 struct gfs2_sbd *sdp = sb->s_fs_info; gfs2_put_super() local 667 struct gfs2_sbd *sdp = sb->s_fs_info; gfs2_sync_fs() local 676 gfs2_freeze_locally(struct gfs2_sbd *sdp) gfs2_freeze_locally() argument 698 gfs2_do_thaw(struct gfs2_sbd *sdp) gfs2_do_thaw() argument 718 struct gfs2_sbd *sdp = container_of(work, struct gfs2_sbd, sd_freeze_work); gfs2_freeze_func() local 757 struct gfs2_sbd *sdp = sb->s_fs_info; gfs2_freeze_super() local 812 struct gfs2_sbd *sdp = sb->s_fs_info; gfs2_thaw_super() local 836 struct gfs2_sbd *sdp = sb->s_fs_info; gfs2_thaw_freeze_initiator() local 879 gfs2_statfs_slow(struct gfs2_sbd *sdp, struct gfs2_statfs_change_host *sc) gfs2_statfs_slow() argument 952 gfs2_statfs_i(struct gfs2_sbd *sdp, struct gfs2_statfs_change_host *sc) gfs2_statfs_i() argument 987 struct gfs2_sbd *sdp = sb->s_fs_info; gfs2_statfs() local 1033 struct gfs2_sbd *sdp = GFS2_SB(inode); gfs2_drop_inode() local 1087 struct gfs2_sbd *sdp = root->d_sb->s_fs_info; gfs2_show_options() local 1213 struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode); gfs2_dinode_dealloc() local 1278 struct gfs2_sbd *sdp = GFS2_SB(inode); gfs2_upgrade_iopen_glock() local 1347 struct gfs2_sbd *sdp = sb->s_fs_info; evict_should_delete() local 1451 struct gfs2_sbd *sdp = sb->s_fs_info; evict_linked_inode() local 1501 struct gfs2_sbd *sdp = sb->s_fs_info; gfs2_evict_inode() local 1581 free_local_statfs_inodes(struct gfs2_sbd *sdp) free_local_statfs_inodes() argument 1596 find_local_statfs_inode(struct gfs2_sbd *sdp, unsigned int index) find_local_statfs_inode() argument [all...] |
H A D | log.h | 25 * @sdp: the filesystem 29 static inline void gfs2_log_lock(struct gfs2_sbd *sdp) 30 __acquires(&sdp->sd_log_lock) 32 spin_lock(&sdp->sd_log_lock); 37 * @sdp: the filesystem 41 static inline void gfs2_log_unlock(struct gfs2_sbd *sdp) 42 __releases(&sdp->sd_log_lock) 44 spin_unlock(&sdp->sd_log_lock); 47 static inline void gfs2_log_pointers_init(struct gfs2_sbd *sdp, in gfs2_log_pointers_init() argument 50 if (++value == sdp in gfs2_log_pointers_init() 60 struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode); gfs2_ordered_add_inode() local [all...] |
H A D | sys.c | 39 struct gfs2_sbd *sdp = container_of(kobj, struct gfs2_sbd, sd_kobj); in gfs2_attr_show() local 41 return a->show ? a->show(sdp, buf) : 0; in gfs2_attr_show() 47 struct gfs2_sbd *sdp = container_of(kobj, struct gfs2_sbd, sd_kobj); in gfs2_attr_store() local 49 return a->store ? a->store(sdp, buf, len) : len; in gfs2_attr_store() 60 static ssize_t id_show(struct gfs2_sbd *sdp, char *buf) in id_show() argument 63 MAJOR(sdp->sd_vfs->s_dev), MINOR(sdp->sd_vfs->s_dev)); in id_show() 66 static ssize_t status_show(struct gfs2_sbd *sdp, char *buf) in status_show() argument 68 unsigned long f = sdp->sd_flags; in status_show() 107 (sdp in status_show() 141 fsname_show(struct gfs2_sbd *sdp, char *buf) fsname_show() argument 146 uuid_show(struct gfs2_sbd *sdp, char *buf) uuid_show() argument 156 freeze_show(struct gfs2_sbd *sdp, char *buf) freeze_show() argument 164 freeze_store(struct gfs2_sbd *sdp, const char *buf, size_t len) freeze_store() argument 194 withdraw_show(struct gfs2_sbd *sdp, char *buf) withdraw_show() argument 200 withdraw_store(struct gfs2_sbd *sdp, const char *buf, size_t len) withdraw_store() argument 220 statfs_sync_store(struct gfs2_sbd *sdp, const char *buf, size_t len) statfs_sync_store() argument 239 quota_sync_store(struct gfs2_sbd *sdp, const char *buf, size_t len) quota_sync_store() argument 258 quota_refresh_user_store(struct gfs2_sbd *sdp, const char *buf, size_t len) quota_refresh_user_store() argument 280 quota_refresh_group_store(struct gfs2_sbd *sdp, const char *buf, size_t len) quota_refresh_group_store() argument 302 demote_rq_store(struct gfs2_sbd *sdp, const char *buf, size_t len) demote_rq_store() argument 381 struct gfs2_sbd *sdp = container_of(kobj, struct gfs2_sbd, sd_kobj); gfs2_sbd_release() local 397 proto_name_show(struct gfs2_sbd *sdp, char *buf) proto_name_show() argument 403 block_show(struct gfs2_sbd *sdp, char *buf) block_show() argument 415 block_store(struct gfs2_sbd *sdp, const char *buf, size_t len) block_store() argument 436 wdack_show(struct gfs2_sbd *sdp, char *buf) wdack_show() argument 443 wdack_store(struct gfs2_sbd *sdp, const char *buf, size_t len) wdack_store() argument 459 lkfirst_show(struct gfs2_sbd *sdp, char *buf) lkfirst_show() argument 465 lkfirst_store(struct gfs2_sbd *sdp, const char *buf, size_t len) lkfirst_store() argument 492 first_done_show(struct gfs2_sbd *sdp, char *buf) first_done_show() argument 498 gfs2_recover_set(struct gfs2_sbd *sdp, unsigned jid) gfs2_recover_set() argument 531 recover_store(struct gfs2_sbd *sdp, const char *buf, size_t len) recover_store() argument 550 recover_done_show(struct gfs2_sbd *sdp, char *buf) recover_done_show() argument 556 recover_status_show(struct gfs2_sbd *sdp, char *buf) recover_status_show() argument 562 jid_show(struct gfs2_sbd *sdp, char *buf) jid_show() argument 567 jid_store(struct gfs2_sbd *sdp, const char *buf, size_t len) jid_store() argument 627 quota_scale_show(struct gfs2_sbd *sdp, char *buf) quota_scale_show() argument 634 quota_scale_store(struct gfs2_sbd *sdp, const char *buf, size_t len) quota_scale_store() argument 653 tune_set(struct gfs2_sbd *sdp, unsigned int *field, int check_zero, const char *buf, size_t len) tune_set() argument 724 gfs2_sys_fs_add(struct gfs2_sbd *sdp) gfs2_sys_fs_add() argument 771 gfs2_sys_fs_del(struct gfs2_sbd *sdp) gfs2_sys_fs_del() argument 782 const struct gfs2_sbd *sdp = container_of(kobj, struct gfs2_sbd, sd_kobj); gfs2_uevent() local [all...] |
H A D | util.h | 28 void gfs2_assert_i(struct gfs2_sbd *sdp); 30 #define gfs2_assert(sdp, assertion) \ 33 gfs2_assert_i(sdp); \ 39 void gfs2_assert_withdraw_i(struct gfs2_sbd *sdp, char *assertion, 43 #define gfs2_assert_withdraw(sdp, assertion) \ 47 gfs2_assert_withdraw_i((sdp), #assertion, \ 52 #define gfs2_assert_withdraw_delayed(sdp, assertion) \ 56 gfs2_assert_withdraw_i((sdp), #assertion, \ 61 void gfs2_assert_warn_i(struct gfs2_sbd *sdp, char *assertion, 64 #define gfs2_assert_warn(sdp, assertio 98 gfs2_meta_check(struct gfs2_sbd *sdp, struct buffer_head *bh) gfs2_meta_check() argument 116 gfs2_metatype_check_i(struct gfs2_sbd *sdp, struct buffer_head *bh, u16 type, const char *function, char *file, unsigned int line) gfs2_metatype_check_i() argument 195 gfs2_withdraw_delayed(struct gfs2_sbd *sdp) gfs2_withdraw_delayed() argument 204 gfs2_withdrawn(struct gfs2_sbd *sdp) gfs2_withdrawn() argument 214 gfs2_withdrawing(struct gfs2_sbd *sdp) gfs2_withdrawing() argument 220 gfs2_withdraw_in_prog(struct gfs2_sbd *sdp) gfs2_withdraw_in_prog() argument [all...] |
H A D | trans.c | 28 static void gfs2_print_trans(struct gfs2_sbd *sdp, const struct gfs2_trans *tr) in gfs2_print_trans() argument 30 fs_warn(sdp, "Transaction created at: %pSR\n", (void *)tr->tr_ip); in gfs2_print_trans() 31 fs_warn(sdp, "blocks=%u revokes=%u reserved=%u touched=%u\n", in gfs2_print_trans() 34 fs_warn(sdp, "Buf %u/%u Databuf %u/%u Revoke %u\n", in gfs2_print_trans() 40 int __gfs2_trans_begin(struct gfs2_trans *tr, struct gfs2_sbd *sdp, in __gfs2_trans_begin() argument 47 gfs2_print_trans(sdp, current->journal_info); in __gfs2_trans_begin() 52 if (!test_bit(SDF_JOURNAL_LIVE, &sdp->sd_flags)) in __gfs2_trans_begin() 65 tr->tr_reserved += blocks + 1 + DIV_ROUND_UP(blocks - 1, databuf_limit(sdp)); in __gfs2_trans_begin() 73 if (gfs2_assert_warn(sdp, tr->tr_reserved <= sdp in __gfs2_trans_begin() 109 gfs2_trans_begin(struct gfs2_sbd *sdp, unsigned int blocks, unsigned int revokes) gfs2_trans_begin() argument 124 gfs2_trans_end(struct gfs2_sbd *sdp) gfs2_trans_end() argument 195 struct gfs2_sbd *sdp = gl->gl_name.ln_sbd; gfs2_trans_add_data() local 232 struct gfs2_sbd *sdp = gl->gl_name.ln_sbd; gfs2_trans_add_meta() local 294 gfs2_trans_add_revoke(struct gfs2_sbd *sdp, struct gfs2_bufdata *bd) gfs2_trans_add_revoke() argument 304 gfs2_trans_remove_revoke(struct gfs2_sbd *sdp, u64 blkno, unsigned int len) gfs2_trans_remove_revoke() argument 326 gfs2_trans_free(struct gfs2_sbd *sdp, struct gfs2_trans *tr) gfs2_trans_free() argument [all...] |
H A D | quota.c | 88 static unsigned int gfs2_qd_hash(const struct gfs2_sbd *sdp, in gfs2_qd_hash() argument 93 h = jhash(&sdp, sizeof(struct gfs2_sbd *), 0); in gfs2_qd_hash() 112 struct gfs2_sbd *sdp = qd->qd_sbd; in gfs2_qd_dealloc() local 115 if (atomic_dec_and_test(&sdp->sd_quota_count)) in gfs2_qd_dealloc() 116 wake_up(&sdp->sd_kill_wait); in gfs2_qd_dealloc() 121 struct gfs2_sbd *sdp = qd->qd_sbd; in gfs2_qd_dispose() local 131 if (!gfs2_withdrawn(sdp)) { in gfs2_qd_dispose() 132 gfs2_assert_warn(sdp, !qd->qd_change); in gfs2_qd_dispose() 133 gfs2_assert_warn(sdp, !qd->qd_slot_ref); in gfs2_qd_dispose() 134 gfs2_assert_warn(sdp, !q in gfs2_qd_dispose() 219 qd_alloc(unsigned hash, struct gfs2_sbd *sdp, struct kqid qid) qd_alloc() argument 248 gfs2_qd_search_bucket(unsigned int hash, const struct gfs2_sbd *sdp, struct kqid qid) gfs2_qd_search_bucket() argument 270 qd_get(struct gfs2_sbd *sdp, struct kqid qid, struct gfs2_quota_data **qdp) qd_get() argument 311 struct gfs2_sbd *sdp = qd->qd_sbd; qd_hold() local 318 struct gfs2_sbd *sdp; qd_put() local 340 struct gfs2_sbd *sdp = qd->qd_sbd; slot_get() local 363 struct gfs2_sbd *sdp = qd->qd_sbd; slot_hold() local 373 struct gfs2_sbd *sdp = qd->qd_sbd; slot_put() local 386 struct gfs2_sbd *sdp = qd->qd_sbd; bh_get() local 440 struct gfs2_sbd *sdp = qd->qd_sbd; bh_put() local 452 qd_check_sync(struct gfs2_sbd *sdp, struct gfs2_quota_data *qd, u64 *sync_gen) qd_check_sync() argument 481 qd_bh_get_or_undo(struct gfs2_sbd *sdp, struct gfs2_quota_data *qd) qd_bh_get_or_undo() argument 495 qd_fish(struct gfs2_sbd *sdp, struct gfs2_quota_data **qdp) qd_fish() argument 540 qdsb_get(struct gfs2_sbd *sdp, struct kqid qid, struct gfs2_quota_data **qdp) qdsb_get() argument 573 struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode); gfs2_qa_get() local 613 struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode); gfs2_quota_hold() local 672 struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode); gfs2_quota_unhold() local 702 struct gfs2_sbd *sdp = qd->qd_sbd; do_qc() local 744 gfs2_write_buf_to_page(struct gfs2_sbd *sdp, unsigned long index, unsigned off, void *buf, unsigned bytes) gfs2_write_buf_to_page() argument 812 gfs2_write_disk_quota(struct gfs2_sbd *sdp, struct gfs2_quota *qp, loff_t loc) gfs2_write_disk_quota() argument 854 gfs2_adjust_quota(struct gfs2_sbd *sdp, loff_t loc, s64 change, struct gfs2_quota_data *qd, struct qc_dqblk *fdq) gfs2_adjust_quota() argument 910 struct gfs2_sbd *sdp = (*qda)->qd_sbd; do_sync() local 1005 update_qd(struct gfs2_sbd *sdp, struct gfs2_quota_data *qd) update_qd() argument 1033 struct gfs2_sbd *sdp = qd->qd_sbd; do_glock() local 1081 struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode); gfs2_quota_lock() local 1117 struct gfs2_sbd *sdp = qd->qd_sbd; need_sync() local 1152 struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode); gfs2_quota_unlock() local 1196 struct gfs2_sbd *sdp = qd->qd_sbd; print_message() local 1227 struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode); gfs2_quota_check() local 1286 struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode); gfs2_quota_change() local 1308 qd_changed(struct gfs2_sbd *sdp) qd_changed() argument 1328 struct gfs2_sbd *sdp = sb->s_fs_info; gfs2_quota_sync() local 1371 gfs2_quota_refresh(struct gfs2_sbd *sdp, struct kqid qid) gfs2_quota_refresh() argument 1389 gfs2_quota_init(struct gfs2_sbd *sdp) gfs2_quota_init() argument 1490 gfs2_quota_cleanup(struct gfs2_sbd *sdp) gfs2_quota_cleanup() argument 1527 quotad_error(struct gfs2_sbd *sdp, const char *msg, int error) quotad_error() argument 1538 quotad_check_timeo(struct gfs2_sbd *sdp, const char *msg, int (*fxn)(struct super_block *sb, int type), unsigned long t, unsigned long *timeo, unsigned int *new_timeo) quotad_check_timeo() argument 1552 gfs2_wake_up_statfs(struct gfs2_sbd *sdp) gfs2_wake_up_statfs() argument 1568 struct gfs2_sbd *sdp = data; gfs2_quotad() local 1612 struct gfs2_sbd *sdp = sb->s_fs_info; gfs2_quota_get_state() local 1646 struct gfs2_sbd *sdp = sb->s_fs_info; gfs2_get_dqblk() local 1685 struct gfs2_sbd *sdp = sb->s_fs_info; gfs2_set_dqblk() local [all...] |
H A D | recovery.c | 118 int __get_log_header(struct gfs2_sbd *sdp, const struct gfs2_log_header *lh, in __get_log_header() argument 135 sdp->sd_sb.sb_bsize - LH_V1_SIZE - 4); in __get_log_header() 168 struct gfs2_sbd *sdp = GFS2_SB(jd->jd_inode); in get_log_header() local 176 error = __get_log_header(sdp, (const struct gfs2_log_header *)bh->b_data, in get_log_header() 199 struct gfs2_sbd *sdp = GFS2_SB(jd->jd_inode); in foreach_descriptor() local 213 if (gfs2_meta_check(sdp, bh)) { in foreach_descriptor() 234 } else if (gfs2_metatype_check(sdp, bh, GFS2_METATYPE_LD)) { in foreach_descriptor() 265 struct gfs2_sbd *sdp = GFS2_SB(jd->jd_inode); in clean_journal() local 269 gfs2_write_log_header(sdp, jd, head->lh_sequence + 1, 0, lblock, in clean_journal() 272 if (jd->jd_jid == sdp in clean_journal() 279 gfs2_recovery_done(struct gfs2_sbd *sdp, unsigned int jid, unsigned int message) gfs2_recovery_done() argument 311 struct gfs2_sbd *sdp = GFS2_SB(jd->jd_inode); update_statfs_inode() local 380 struct gfs2_sbd *sdp = GFS2_SB(jd->jd_inode); recover_local_statfs() local 405 struct gfs2_sbd *sdp = GFS2_SB(jd->jd_inode); gfs2_recover_func() local [all...] |
H A D | lock_dlm.c | 192 static int make_mode(struct gfs2_sbd *sdp, const unsigned int lmstate) in make_mode() argument 204 fs_err(sdp, "unknown LM state %d\n", lmstate); in make_mode() 290 struct gfs2_sbd *sdp = gl->gl_name.ln_sbd; in gdlm_put_lock() local 291 struct lm_lockstruct *ls = &sdp->sd_lockstruct; in gdlm_put_lock() 307 if (test_bit(SDF_SKIP_DLM_UNLOCK, &sdp->sd_flags) && in gdlm_put_lock() 320 fs_err(sdp, "gdlm_unlock %x,%llx err=%d\n", in gdlm_put_lock() 509 static int sync_unlock(struct gfs2_sbd *sdp, struct dlm_lksb *lksb, char *name) in sync_unlock() argument 511 struct lm_lockstruct *ls = &sdp->sd_lockstruct; in sync_unlock() 516 fs_err(sdp, "%s lkid %x error %d\n", in sync_unlock() 524 fs_err(sdp, " in sync_unlock() 531 sync_lock(struct gfs2_sbd *sdp, int mode, uint32_t flags, unsigned int num, struct dlm_lksb *lksb, char *name) sync_lock() argument 562 mounted_unlock(struct gfs2_sbd *sdp) mounted_unlock() argument 568 mounted_lock(struct gfs2_sbd *sdp, int mode, uint32_t flags) mounted_lock() argument 575 control_unlock(struct gfs2_sbd *sdp) control_unlock() argument 581 control_lock(struct gfs2_sbd *sdp, int mode, uint32_t flags) control_lock() argument 592 remote_withdraw(struct gfs2_sbd *sdp) remote_withdraw() argument 612 struct gfs2_sbd *sdp = container_of(work, struct gfs2_sbd, sd_control_work.work); gfs2_control_func() local 795 control_mount(struct gfs2_sbd *sdp) control_mount() argument 993 control_first_done(struct gfs2_sbd *sdp) control_first_done() argument 1059 set_recover_size(struct gfs2_sbd *sdp, struct dlm_slot *slots, int num_slots) set_recover_size() argument 1122 struct gfs2_sbd *sdp = arg; gdlm_recover_prep() local 1147 struct gfs2_sbd *sdp = arg; gdlm_recover_slot() local 1177 struct gfs2_sbd *sdp = arg; gdlm_recover_done() local 1206 gdlm_recovery_result(struct gfs2_sbd *sdp, unsigned int jid, unsigned int result) gdlm_recovery_result() argument 1256 gdlm_mount(struct gfs2_sbd *sdp, const char *table) gdlm_mount() argument 1353 gdlm_first_done(struct gfs2_sbd *sdp) gdlm_first_done() argument 1366 gdlm_unmount(struct gfs2_sbd *sdp) gdlm_unmount() argument [all...] |