/linux-master/fs/gfs2/ |
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, argument 50 if (++value == sdp 60 struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode); local [all...] |
H A D | sys.h | 13 int gfs2_sys_fs_add(struct gfs2_sbd *sdp); 14 void gfs2_sys_fs_del(struct gfs2_sbd *sdp); 19 int gfs2_recover_set(struct gfs2_sbd *sdp, unsigned jid);
|
H A D | util.c | 39 void gfs2_assert_i(struct gfs2_sbd *sdp) argument 41 fs_emerg(sdp, "fatal assertion failed\n"); 46 * @sdp: The GFS2 superblock 52 int check_journal_clean(struct gfs2_sbd *sdp, struct gfs2_jdesc *jd, argument 65 fs_err(sdp, "Error %d locking journal for spectator " 72 fs_err(sdp, "Error checking journal for spectator " 79 fs_err(sdp, "Error parsing journal for spectator " 86 fs_err(sdp, "jid=%u: Journal is dirty, so the first " 98 * @sdp: the superblock 100 int gfs2_freeze_lock_shared(struct gfs2_sbd *sdp) argument 118 signal_our_withdraw(struct gfs2_sbd *sdp) argument 305 gfs2_lm(struct gfs2_sbd *sdp, const char *fmt, ...) argument 321 gfs2_withdraw(struct gfs2_sbd *sdp) argument 371 gfs2_assert_withdraw_i(struct gfs2_sbd *sdp, char *assertion, const char *function, char *file, unsigned int line, bool delayed) argument 401 gfs2_assert_warn_i(struct gfs2_sbd *sdp, char *assertion, const char *function, char *file, unsigned int line) argument 431 gfs2_consist_i(struct gfs2_sbd *sdp, const char *function, char *file, unsigned int line) argument 447 struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode); local 467 struct gfs2_sbd *sdp = rgd->rd_sbd; 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) 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) argument 532 gfs2_io_error_i(struct gfs2_sbd *sdp, const char *function, char *file, unsigned int line) 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) argument [all...] |
H A D | super.h | 18 void gfs2_lm_unmount(struct gfs2_sbd *sdp); 20 static inline unsigned int gfs2_jindex_size(struct gfs2_sbd *sdp) argument 23 spin_lock(&sdp->sd_jindex_spin); 24 x = sdp->sd_journals; 25 spin_unlock(&sdp->sd_jindex_spin); 29 void gfs2_jindex_free(struct gfs2_sbd *sdp); 31 struct gfs2_jdesc *gfs2_jdesc_find(struct gfs2_sbd *sdp, unsigned int jid); 33 int gfs2_lookup_in_master_dir(struct gfs2_sbd *sdp, char *filename, 36 int gfs2_make_fs_rw(struct gfs2_sbd *sdp); 37 void gfs2_make_fs_ro(struct gfs2_sbd *sdp); [all...] |
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) argument 55 first = sdp->sd_ldptrs; 59 second = sdp->sd_inptrs; 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); variable 160 dump_ail_list(struct gfs2_sbd *sdp) argument 201 gfs2_ail1_flush(struct gfs2_sbd *sdp, struct writeback_control *wbc) argument 245 gfs2_ail1_start(struct gfs2_sbd *sdp) argument 257 gfs2_log_update_flush_tail(struct gfs2_sbd *sdp) argument 270 gfs2_log_update_head(struct gfs2_sbd *sdp) argument 283 gfs2_ail_empty_tr(struct gfs2_sbd *sdp, struct gfs2_trans *tr, struct list_head *head) argument 305 gfs2_ail1_empty_one(struct gfs2_sbd *sdp, struct gfs2_trans *tr, int *max_revokes) argument 359 gfs2_ail1_empty(struct gfs2_sbd *sdp, int max_revokes) argument 379 gfs2_ail1_wait(struct gfs2_sbd *sdp) argument 401 __ail2_empty(struct gfs2_sbd *sdp, struct gfs2_trans *tr) argument 410 ail2_empty(struct gfs2_sbd *sdp, unsigned int new_tail) argument 436 gfs2_log_is_empty(struct gfs2_sbd *sdp) argument 440 __gfs2_log_try_reserve_revokes(struct gfs2_sbd *sdp, unsigned int revokes) argument 460 gfs2_log_release_revokes(struct gfs2_sbd *sdp, unsigned int revokes) argument 473 gfs2_log_release(struct gfs2_sbd *sdp, unsigned int blks) argument 492 __gfs2_log_try_reserve(struct gfs2_sbd *sdp, unsigned int blks, unsigned int taboo_blks) argument 528 __gfs2_log_reserve(struct gfs2_sbd *sdp, unsigned int blks, unsigned int taboo_blks) argument 565 gfs2_log_try_reserve(struct gfs2_sbd *sdp, struct gfs2_trans *tr, unsigned int *extra_revokes) argument 596 gfs2_log_reserve(struct gfs2_sbd *sdp, struct gfs2_trans *tr, unsigned int *extra_revokes) argument 624 log_distance(struct gfs2_sbd *sdp, unsigned int newer, unsigned int older) argument 657 calc_reserved(struct gfs2_sbd *sdp) argument 672 log_pull_tail(struct gfs2_sbd *sdp) argument 686 log_flush_wait(struct gfs2_sbd *sdp) argument 721 gfs2_ordered_write(struct gfs2_sbd *sdp) argument 743 gfs2_ordered_wait(struct gfs2_sbd *sdp) argument 762 struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode); local 769 gfs2_add_revoke(struct gfs2_sbd *sdp, struct gfs2_bufdata *bd) argument 805 gfs2_flush_revokes(struct gfs2_sbd *sdp) argument 831 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) argument 913 log_write_header(struct gfs2_sbd *sdp, u32 flags) argument 939 gfs2_ail_drain(struct gfs2_sbd *sdp) argument 974 empty_ail1_list(struct gfs2_sbd *sdp) argument 1040 gfs2_log_flush(struct gfs2_sbd *sdp, struct gfs2_glock *gl, u32 flags) argument 1188 gfs2_merge_trans(struct gfs2_sbd *sdp, struct gfs2_trans *new) argument 1210 log_refund(struct gfs2_sbd *sdp, struct gfs2_trans *tr) argument 1237 gfs2_jrnl_flush_reqd(struct gfs2_sbd *sdp) argument 1244 gfs2_ail_flush_reqd(struct gfs2_sbd *sdp) argument 1267 gfs2_log_commit(struct gfs2_sbd *sdp, struct gfs2_trans *tr) argument 1281 gfs2_log_shutdown(struct gfs2_sbd *sdp) argument 1304 struct gfs2_sbd *sdp = data; local [all...] |
H A D | ops_fstype.c | 65 void free_sbd(struct gfs2_sbd *sdp) argument 67 if (sdp->sd_lkstats) 68 free_percpu(sdp->sd_lkstats); 69 kfree(sdp); 74 struct gfs2_sbd *sdp; local 77 sdp = kzalloc(sizeof(struct gfs2_sbd), GFP_KERNEL); 78 if (!sdp) 81 sdp->sd_vfs = sb; 82 sdp->sd_lkstats = alloc_percpu(struct gfs2_pcpu_lkstats); 83 if (!sdp 157 gfs2_check_sb(struct gfs2_sbd *sdp, int silent) argument 198 gfs2_sb_in(struct gfs2_sbd *sdp, const void *buf) argument 239 gfs2_read_super(struct gfs2_sbd *sdp, sector_t sector, int silent) argument 281 gfs2_read_sb(struct gfs2_sbd *sdp, int silent) argument 361 init_names(struct gfs2_sbd *sdp, int silent) argument 397 init_locking(struct gfs2_sbd *sdp, struct gfs2_holder *mount_gh, int undo) argument 456 struct gfs2_sbd *sdp = sb->s_fs_info; local 475 init_sb(struct gfs2_sbd *sdp, int silent) argument 544 gfs2_others_may_mount(struct gfs2_sbd *sdp) argument 565 gfs2_jindex_hold(struct gfs2_sbd *sdp, struct gfs2_holder *ji_gh) argument 641 init_statfs(struct gfs2_sbd *sdp) argument 720 uninit_statfs(struct gfs2_sbd *sdp) argument 730 init_journal(struct gfs2_sbd *sdp, int undo) argument 876 init_inodes(struct gfs2_sbd *sdp, int undo) argument 929 init_per_node(struct gfs2_sbd *sdp, int undo) argument 999 gfs2_lm_mount(struct gfs2_sbd *sdp, int silent) argument 1073 gfs2_lm_unmount(struct gfs2_sbd *sdp) argument 1080 wait_on_journal(struct gfs2_sbd *sdp) argument 1089 gfs2_online_uevent(struct gfs2_sbd *sdp) argument 1100 init_threads(struct gfs2_sbd *sdp) argument 1133 gfs2_destroy_threads(struct gfs2_sbd *sdp) argument 1156 struct gfs2_sbd *sdp; local 1338 struct gfs2_sbd *sdp; local 1555 struct gfs2_sbd *sdp = sb->s_fs_info; local 1652 struct gfs2_sbd *sdp = fc->root->d_sb->s_fs_info; local 1682 struct gfs2_sbd *sdp; local 1751 struct gfs2_sbd *sdp = sb->s_fs_info; local 1779 struct gfs2_sbd *sdp = sb->s_fs_info; local [all...] |
H A D | trans.c | 28 static void gfs2_print_trans(struct gfs2_sbd *sdp, const struct gfs2_trans *tr) argument 30 fs_warn(sdp, "Transaction created at: %pSR\n", (void *)tr->tr_ip); 31 fs_warn(sdp, "blocks=%u revokes=%u reserved=%u touched=%u\n", 34 fs_warn(sdp, "Buf %u/%u Databuf %u/%u Revoke %u\n", 40 int __gfs2_trans_begin(struct gfs2_trans *tr, struct gfs2_sbd *sdp, argument 47 gfs2_print_trans(sdp, current->journal_info); 52 if (!test_bit(SDF_JOURNAL_LIVE, &sdp->sd_flags)) 65 tr->tr_reserved += blocks + 1 + DIV_ROUND_UP(blocks - 1, databuf_limit(sdp)); 73 if (gfs2_assert_warn(sdp, tr->tr_reserved <= sdp 109 gfs2_trans_begin(struct gfs2_sbd *sdp, unsigned int blocks, unsigned int revokes) argument 124 gfs2_trans_end(struct gfs2_sbd *sdp) argument 195 struct gfs2_sbd *sdp = gl->gl_name.ln_sbd; local 232 struct gfs2_sbd *sdp = gl->gl_name.ln_sbd; local 294 gfs2_trans_add_revoke(struct gfs2_sbd *sdp, struct gfs2_bufdata *bd) argument 304 gfs2_trans_remove_revoke(struct gfs2_sbd *sdp, u64 blkno, unsigned int len) argument 326 gfs2_trans_free(struct gfs2_sbd *sdp, struct gfs2_trans *tr) 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) argument 116 gfs2_metatype_check_i(struct gfs2_sbd *sdp, struct buffer_head *bh, u16 type, const char *function, char *file, unsigned int line) argument 195 gfs2_withdraw_delayed(struct gfs2_sbd *sdp) argument 205 gfs2_withdrawing_or_withdrawn(struct gfs2_sbd *sdp) argument 215 gfs2_withdrawing(struct gfs2_sbd *sdp) argument 221 gfs2_withdraw_in_prog(struct gfs2_sbd *sdp) argument [all...] |
H A D | super.c | 55 * @sdp: The GFS2 superblock 59 void gfs2_jindex_free(struct gfs2_sbd *sdp) argument 64 spin_lock(&sdp->sd_jindex_spin); 65 list_add(&list, &sdp->sd_jindex_list); 66 list_del_init(&sdp->sd_jindex_list); 67 sdp->sd_journals = 0; 68 spin_unlock(&sdp->sd_jindex_spin); 70 sdp->sd_jdesc = NULL; 92 struct gfs2_jdesc *gfs2_jdesc_find(struct gfs2_sbd *sdp, unsigned int jid) argument 96 spin_lock(&sdp 106 struct gfs2_sbd *sdp = GFS2_SB(jd->jd_inode); local 129 gfs2_make_fs_rw(struct gfs2_sbd *sdp) argument 181 gfs2_statfs_init(struct gfs2_sbd *sdp) argument 220 gfs2_statfs_change(struct gfs2_sbd *sdp, s64 total, s64 free, s64 dinodes) argument 249 update_statfs(struct gfs2_sbd *sdp, struct buffer_head *m_bh) argument 272 struct gfs2_sbd *sdp = sb->s_fs_info; local 328 gfs2_lock_fs_check_clean(struct gfs2_sbd *sdp) argument 446 struct gfs2_sbd *sdp = GFS2_SB(inode); local 489 struct gfs2_sbd *sdp = GFS2_SB(inode); local 545 gfs2_make_fs_ro(struct gfs2_sbd *sdp) argument 585 struct gfs2_sbd *sdp = sb->s_fs_info; local 667 struct gfs2_sbd *sdp = sb->s_fs_info; local 676 gfs2_do_thaw(struct gfs2_sbd *sdp) argument 696 struct gfs2_sbd *sdp = container_of(work, struct gfs2_sbd, sd_freeze_work); local 735 struct gfs2_sbd *sdp = sb->s_fs_info; local 784 struct gfs2_sbd *sdp = sb->s_fs_info; local 803 struct gfs2_sbd *sdp = sb->s_fs_info; local 829 struct gfs2_sbd *sdp = sb->s_fs_info; local 872 gfs2_statfs_slow(struct gfs2_sbd *sdp, struct gfs2_statfs_change_host *sc) argument 945 gfs2_statfs_i(struct gfs2_sbd *sdp, struct gfs2_statfs_change_host *sc) argument 980 struct gfs2_sbd *sdp = sb->s_fs_info; local 1027 struct gfs2_sbd *sdp = GFS2_SB(inode); local 1071 struct gfs2_sbd *sdp = root->d_sb->s_fs_info; local 1197 struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode); local 1262 struct gfs2_sbd *sdp = GFS2_SB(inode); local 1321 struct gfs2_sbd *sdp = sb->s_fs_info; local 1425 struct gfs2_sbd *sdp = sb->s_fs_info; local 1475 struct gfs2_sbd *sdp = sb->s_fs_info; local 1555 free_local_statfs_inodes(struct gfs2_sbd *sdp) argument 1570 find_local_statfs_inode(struct gfs2_sbd *sdp, unsigned int index) argument [all...] |
H A D | trans.h | 37 int __gfs2_trans_begin(struct gfs2_trans *tr, struct gfs2_sbd *sdp, 40 int gfs2_trans_begin(struct gfs2_sbd *sdp, unsigned int blocks, 43 void gfs2_trans_end(struct gfs2_sbd *sdp); 46 void gfs2_trans_add_revoke(struct gfs2_sbd *sdp, struct gfs2_bufdata *bd); 47 void gfs2_trans_remove_revoke(struct gfs2_sbd *sdp, u64 blkno, unsigned int len); 48 void gfs2_trans_free(struct gfs2_sbd *sdp, struct gfs2_trans *tr);
|
H A D | lops.h | 15 void gfs2_log_incr_head(struct gfs2_sbd *sdp); 17 void gfs2_log_write(struct gfs2_sbd *sdp, struct gfs2_jdesc *jd, 21 void gfs2_pin(struct gfs2_sbd *sdp, struct buffer_head *bh); 24 void gfs2_drain_revokes(struct gfs2_sbd *sdp); 26 static inline unsigned int buf_limit(struct gfs2_sbd *sdp) argument 28 return sdp->sd_ldptrs; 31 static inline unsigned int databuf_limit(struct gfs2_sbd *sdp) argument 33 return sdp->sd_ldptrs / 2; 36 static inline void lops_before_commit(struct gfs2_sbd *sdp, argument 42 gfs2_log_ops[x]->lo_before_commit(sdp, t 45 lops_after_commit(struct gfs2_sbd *sdp, struct gfs2_trans *tr) argument [all...] |
H A D | sys.c | 39 struct gfs2_sbd *sdp = container_of(kobj, struct gfs2_sbd, sd_kobj); local 41 return a->show ? a->show(sdp, buf) : 0; 47 struct gfs2_sbd *sdp = container_of(kobj, struct gfs2_sbd, sd_kobj); local 49 return a->store ? a->store(sdp, buf, len) : len; 60 static ssize_t id_show(struct gfs2_sbd *sdp, char *buf) argument 63 MAJOR(sdp->sd_vfs->s_dev), MINOR(sdp->sd_vfs->s_dev)); 66 static ssize_t status_show(struct gfs2_sbd *sdp, char *buf) argument 68 unsigned long f = sdp->sd_flags; 107 (sdp 141 fsname_show(struct gfs2_sbd *sdp, char *buf) argument 146 uuid_show(struct gfs2_sbd *sdp, char *buf) argument 156 freeze_show(struct gfs2_sbd *sdp, char *buf) argument 164 freeze_store(struct gfs2_sbd *sdp, const char *buf, size_t len) argument 194 withdraw_show(struct gfs2_sbd *sdp, char *buf) argument 200 withdraw_store(struct gfs2_sbd *sdp, const char *buf, size_t len) argument 220 statfs_sync_store(struct gfs2_sbd *sdp, const char *buf, size_t len) argument 239 quota_sync_store(struct gfs2_sbd *sdp, const char *buf, size_t len) argument 258 quota_refresh_user_store(struct gfs2_sbd *sdp, const char *buf, size_t len) argument 280 quota_refresh_group_store(struct gfs2_sbd *sdp, const char *buf, size_t len) argument 302 demote_rq_store(struct gfs2_sbd *sdp, const char *buf, size_t len) argument 381 struct gfs2_sbd *sdp = container_of(kobj, struct gfs2_sbd, sd_kobj); local 397 proto_name_show(struct gfs2_sbd *sdp, char *buf) argument 403 block_show(struct gfs2_sbd *sdp, char *buf) argument 415 block_store(struct gfs2_sbd *sdp, const char *buf, size_t len) argument 436 wdack_show(struct gfs2_sbd *sdp, char *buf) argument 443 wdack_store(struct gfs2_sbd *sdp, const char *buf, size_t len) argument 459 lkfirst_show(struct gfs2_sbd *sdp, char *buf) argument 465 lkfirst_store(struct gfs2_sbd *sdp, const char *buf, size_t len) argument 492 first_done_show(struct gfs2_sbd *sdp, char *buf) argument 498 gfs2_recover_set(struct gfs2_sbd *sdp, unsigned jid) argument 531 recover_store(struct gfs2_sbd *sdp, const char *buf, size_t len) argument 550 recover_done_show(struct gfs2_sbd *sdp, char *buf) argument 556 recover_status_show(struct gfs2_sbd *sdp, char *buf) argument 562 jid_show(struct gfs2_sbd *sdp, char *buf) argument 567 jid_store(struct gfs2_sbd *sdp, const char *buf, size_t len) argument 627 quota_scale_show(struct gfs2_sbd *sdp, char *buf) argument 634 quota_scale_store(struct gfs2_sbd *sdp, const char *buf, size_t len) argument 653 tune_set(struct gfs2_sbd *sdp, unsigned int *field, int check_zero, const char *buf, size_t len) argument 724 gfs2_sys_fs_add(struct gfs2_sbd *sdp) argument 771 gfs2_sys_fs_del(struct gfs2_sbd *sdp) argument 782 const struct gfs2_sbd *sdp = container_of(kobj, struct gfs2_sbd, sd_kobj); local [all...] |
H A D | acl.h | 12 #define GFS2_ACL_MAX_ENTRIES(sdp) ((300 << (sdp)->sd_sb.sb_bsize_shift) >> 12)
|
H A D | lock_dlm.c | 192 static int make_mode(struct gfs2_sbd *sdp, const unsigned int lmstate) argument 204 fs_err(sdp, "unknown LM state %d\n", lmstate); 290 struct gfs2_sbd *sdp = gl->gl_name.ln_sbd; local 291 struct lm_lockstruct *ls = &sdp->sd_lockstruct; 307 if (test_bit(SDF_SKIP_DLM_UNLOCK, &sdp->sd_flags) && 320 fs_err(sdp, "gdlm_unlock %x,%llx err=%d\n", 509 static int sync_unlock(struct gfs2_sbd *sdp, struct dlm_lksb *lksb, char *name) argument 511 struct lm_lockstruct *ls = &sdp->sd_lockstruct; 516 fs_err(sdp, "%s lkid %x error %d\n", 524 fs_err(sdp, " 531 sync_lock(struct gfs2_sbd *sdp, int mode, uint32_t flags, unsigned int num, struct dlm_lksb *lksb, char *name) argument 562 mounted_unlock(struct gfs2_sbd *sdp) argument 568 mounted_lock(struct gfs2_sbd *sdp, int mode, uint32_t flags) argument 575 control_unlock(struct gfs2_sbd *sdp) argument 581 control_lock(struct gfs2_sbd *sdp, int mode, uint32_t flags) argument 592 remote_withdraw(struct gfs2_sbd *sdp) argument 612 struct gfs2_sbd *sdp = container_of(work, struct gfs2_sbd, sd_control_work.work); local 795 control_mount(struct gfs2_sbd *sdp) argument 993 control_first_done(struct gfs2_sbd *sdp) argument 1059 set_recover_size(struct gfs2_sbd *sdp, struct dlm_slot *slots, int num_slots) argument 1122 struct gfs2_sbd *sdp = arg; local 1147 struct gfs2_sbd *sdp = arg; local 1177 struct gfs2_sbd *sdp = arg; local 1206 gdlm_recovery_result(struct gfs2_sbd *sdp, unsigned int jid, unsigned int result) argument 1256 gdlm_mount(struct gfs2_sbd *sdp, const char *table) argument 1353 gdlm_first_done(struct gfs2_sbd *sdp) argument 1366 gdlm_unmount(struct gfs2_sbd *sdp) argument [all...] |
H A D | lops.c | 37 * @sdp: The superblock 42 void gfs2_pin(struct gfs2_sbd *sdp, struct buffer_head *bh) argument 50 gfs2_assert_withdraw(sdp, 0); 52 gfs2_io_error_bh_wd(sdp, bh); 57 spin_lock(&sdp->sd_ail_lock); 60 spin_unlock(&sdp->sd_ail_lock); 62 atomic_inc(&sdp->sd_log_pinned); 74 struct gfs2_sbd *sdp = gl->gl_name.ln_sbd; local 82 if (sdp->sd_args.ar_discard) 83 gfs2_rgrp_send_discards(sdp, rg 102 gfs2_unpin(struct gfs2_sbd *sdp, struct buffer_head *bh, struct gfs2_trans *tr) argument 136 gfs2_log_incr_head(struct gfs2_sbd *sdp) argument 169 gfs2_end_log_write_bh(struct gfs2_sbd *sdp, struct bio_vec *bvec, blk_status_t error) argument 204 struct gfs2_sbd *sdp = bio->bi_private; local 245 struct gfs2_sbd *sdp = bio->bi_private; local 264 gfs2_log_alloc_bio(struct gfs2_sbd *sdp, u64 blkno, bio_end_io_t *end_io) argument 294 gfs2_log_get_bio(struct gfs2_sbd *sdp, u64 blkno, struct bio **biop, enum req_op op, bio_end_io_t *end_io, bool flush) argument 328 gfs2_log_write(struct gfs2_sbd *sdp, struct gfs2_jdesc *jd, struct page *page, unsigned size, unsigned offset, u64 blkno) argument 356 gfs2_log_write_bh(struct gfs2_sbd *sdp, struct buffer_head *bh) argument 377 gfs2_log_write_page(struct gfs2_sbd *sdp, struct page *page) argument 421 struct gfs2_sbd *sdp = GFS2_SB(jd->jd_inode); local 507 struct gfs2_sbd *sdp = GFS2_SB(jd->jd_inode); local 600 gfs2_get_log_desc(struct gfs2_sbd *sdp, u32 ld_type, u32 ld_length, u32 ld_data1) argument 644 gfs2_before_commit(struct gfs2_sbd *sdp, unsigned int limit, unsigned int total, struct list_head *blist, bool is_databuf) argument 716 buf_lo_before_commit(struct gfs2_sbd *sdp, struct gfs2_trans *tr) argument 726 buf_lo_after_commit(struct gfs2_sbd *sdp, struct gfs2_trans *tr) argument 760 struct gfs2_sbd *sdp = GFS2_SB(jd->jd_inode); local 783 struct gfs2_sbd *sdp = GFS2_SB(jd->jd_inode); local 836 struct gfs2_sbd *sdp = GFS2_SB(jd->jd_inode); local 851 revoke_lo_before_commit(struct gfs2_sbd *sdp, struct gfs2_trans *tr) argument 890 gfs2_drain_revokes(struct gfs2_sbd *sdp) argument 905 revoke_lo_after_commit(struct gfs2_sbd *sdp, struct gfs2_trans *tr) argument 924 struct gfs2_sbd *sdp = GFS2_SB(jd->jd_inode); local 972 struct gfs2_sbd *sdp = GFS2_SB(jd->jd_inode); local 993 databuf_lo_before_commit(struct gfs2_sbd *sdp, struct gfs2_trans *tr) argument 1056 struct gfs2_sbd *sdp = GFS2_SB(jd->jd_inode); local 1072 databuf_lo_after_commit(struct gfs2_sbd *sdp, struct gfs2_trans *tr) argument [all...] |
H A D | quota.c | 88 static unsigned int gfs2_qd_hash(const struct gfs2_sbd *sdp, argument 93 h = jhash(&sdp, sizeof(struct gfs2_sbd *), 0); 112 struct gfs2_sbd *sdp = qd->qd_sbd; local 115 if (atomic_dec_and_test(&sdp->sd_quota_count)) 116 wake_up(&sdp->sd_kill_wait); 121 struct gfs2_sbd *sdp = qd->qd_sbd; local 131 if (!gfs2_withdrawing_or_withdrawn(sdp)) { 132 gfs2_assert_warn(sdp, !qd->qd_change); 133 gfs2_assert_warn(sdp, !qd->qd_slot_ref); 134 gfs2_assert_warn(sdp, !q 232 qd_alloc(unsigned hash, struct gfs2_sbd *sdp, struct kqid qid) argument 261 gfs2_qd_search_bucket(unsigned int hash, const struct gfs2_sbd *sdp, struct kqid qid) argument 283 qd_get(struct gfs2_sbd *sdp, struct kqid qid, struct gfs2_quota_data **qdp) argument 324 struct gfs2_sbd *sdp = qd->qd_sbd; local 331 struct gfs2_sbd *sdp; local 353 struct gfs2_sbd *sdp = qd->qd_sbd; local 376 struct gfs2_sbd *sdp = qd->qd_sbd; local 386 struct gfs2_sbd *sdp = qd->qd_sbd; local 399 struct gfs2_sbd *sdp = qd->qd_sbd; local 453 struct gfs2_sbd *sdp = qd->qd_sbd; local 465 qd_check_sync(struct gfs2_sbd *sdp, struct gfs2_quota_data *qd, u64 *sync_gen) argument 494 qd_bh_get_or_undo(struct gfs2_sbd *sdp, struct gfs2_quota_data *qd) argument 508 qd_fish(struct gfs2_sbd *sdp, struct gfs2_quota_data **qdp) argument 553 qdsb_get(struct gfs2_sbd *sdp, struct kqid qid, struct gfs2_quota_data **qdp) argument 586 struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode); local 626 struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode); local 685 struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode); local 715 struct gfs2_sbd *sdp = qd->qd_sbd; local 757 gfs2_write_buf_to_page(struct gfs2_sbd *sdp, unsigned long index, unsigned off, void *buf, unsigned bytes) argument 826 gfs2_write_disk_quota(struct gfs2_sbd *sdp, struct gfs2_quota *qp, loff_t loc) argument 868 gfs2_adjust_quota(struct gfs2_sbd *sdp, loff_t loc, s64 change, struct gfs2_quota_data *qd, struct qc_dqblk *fdq) argument 924 struct gfs2_sbd *sdp = (*qda)->qd_sbd; local 1019 update_qd(struct gfs2_sbd *sdp, struct gfs2_quota_data *qd) argument 1047 struct gfs2_sbd *sdp = qd->qd_sbd; local 1095 struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode); local 1130 struct gfs2_sbd *sdp = qd->qd_sbd; local 1165 struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode); local 1209 struct gfs2_sbd *sdp = qd->qd_sbd; local 1239 struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode); local 1299 struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode); local 1320 qd_changed(struct gfs2_sbd *sdp) argument 1340 struct gfs2_sbd *sdp = sb->s_fs_info; local 1383 gfs2_quota_refresh(struct gfs2_sbd *sdp, struct kqid qid) argument 1401 gfs2_quota_init(struct gfs2_sbd *sdp) argument 1502 gfs2_quota_cleanup(struct gfs2_sbd *sdp) argument 1539 quotad_error(struct gfs2_sbd *sdp, const char *msg, int error) argument 1550 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) argument 1564 gfs2_wake_up_statfs(struct gfs2_sbd *sdp) argument 1580 struct gfs2_sbd *sdp = data; local 1623 struct gfs2_sbd *sdp = sb->s_fs_info; local 1657 struct gfs2_sbd *sdp = sb->s_fs_info; local 1696 struct gfs2_sbd *sdp = sb->s_fs_info; local [all...] |
H A D | glops.c | 36 struct gfs2_sbd *sdp = gl->gl_name.ln_sbd; local 38 fs_err(sdp, 43 fs_err(sdp, "AIL glock %u:%llu mapping %p\n", 46 gfs2_lm(sdp, "AIL error\n"); 47 gfs2_withdraw_delayed(sdp); 62 struct gfs2_sbd *sdp = gl->gl_name.ln_sbd; local 68 gfs2_log_lock(sdp); 69 spin_lock(&sdp->sd_ail_lock); 79 gfs2_trans_add_revoke(sdp, bd); 83 spin_unlock(&sdp 90 struct gfs2_sbd *sdp = gl->gl_name.ln_sbd; local 143 struct gfs2_sbd *sdp = gl->gl_name.ln_sbd; local 167 struct gfs2_sbd *sdp = gl->gl_name.ln_sbd; local 195 struct gfs2_sbd *sdp = gl->gl_name.ln_sbd; local 224 struct gfs2_sbd *sdp = gl->gl_name.ln_sbd; local 394 struct gfs2_sbd *sdp = gl->gl_name.ln_sbd; local 404 struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode); local 567 struct gfs2_sbd *sdp = gl->gl_name.ln_sbd; local 596 struct gfs2_sbd *sdp = gl->gl_name.ln_sbd; local 627 struct gfs2_sbd *sdp = gl->gl_name.ln_sbd; local 667 struct gfs2_sbd *sdp = gl->gl_name.ln_sbd; local [all...] |
H A D | bmap.h | 33 const struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode); local 37 *data_blocks = (len >> sdp->sd_sb.sb_bsize_shift) + 3; 38 *ind_blocks = 3 * (sdp->sd_max_height - 1); 40 for (tmp = *data_blocks; tmp > sdp->sd_diptrs;) { 41 tmp = DIV_ROUND_UP(tmp, sdp->sd_inptrs); 65 int gfs2_map_journal_extents(struct gfs2_sbd *sdp, struct gfs2_jdesc *jd);
|
H A D | recovery.c | 118 int __get_log_header(struct gfs2_sbd *sdp, const struct gfs2_log_header *lh, argument 135 sdp->sd_sb.sb_bsize - LH_V1_SIZE - 4); 168 struct gfs2_sbd *sdp = GFS2_SB(jd->jd_inode); local 176 error = __get_log_header(sdp, (const struct gfs2_log_header *)bh->b_data, 199 struct gfs2_sbd *sdp = GFS2_SB(jd->jd_inode); local 213 if (gfs2_meta_check(sdp, bh)) { 234 } else if (gfs2_metatype_check(sdp, bh, GFS2_METATYPE_LD)) { 265 struct gfs2_sbd *sdp = GFS2_SB(jd->jd_inode); local 269 gfs2_write_log_header(sdp, jd, head->lh_sequence + 1, 0, lblock, 272 if (jd->jd_jid == sdp 279 gfs2_recovery_done(struct gfs2_sbd *sdp, unsigned int jid, unsigned int message) argument 311 struct gfs2_sbd *sdp = GFS2_SB(jd->jd_inode); local 380 struct gfs2_sbd *sdp = GFS2_SB(jd->jd_inode); local 405 struct gfs2_sbd *sdp = GFS2_SB(jd->jd_inode); local [all...] |
H A D | quota.h | 32 int gfs2_quota_refresh(struct gfs2_sbd *sdp, struct kqid qid); 34 int gfs2_quota_init(struct gfs2_sbd *sdp); 35 void gfs2_quota_cleanup(struct gfs2_sbd *sdp); 38 void gfs2_wake_up_statfs(struct gfs2_sbd *sdp); 43 struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode); local 48 sdp->sd_args.ar_quota == GFS2_QUOTA_OFF) 53 if (sdp->sd_args.ar_quota == GFS2_QUOTA_ACCOUNT)
|
H A D | meta_io.c | 117 struct gfs2_sbd *sdp = gl->gl_name.ln_sbd; local 125 mapping = &sdp->sd_aspace; 127 shift = PAGE_SHIFT - sdp->sd_sb.sb_bsize_shift; 138 sdp->sd_sb.sb_bsize, 0); 152 map_bh(bh, sdp->sd_vfs, blkno); 251 struct gfs2_sbd *sdp = gl->gl_name.ln_sbd; local 255 if (gfs2_withdrawing_or_withdrawn(sdp) && 256 !gfs2_withdraw_in_prog(sdp)) { 295 gfs2_io_error_bh_wd(sdp, bh); 306 * @sdp 312 gfs2_meta_wait(struct gfs2_sbd *sdp, struct buffer_head *bh) argument 336 struct gfs2_sbd *sdp = gfs2_mapping2sbd(mapping); local 379 gfs2_ail1_wipe(struct gfs2_sbd *sdp, u64 bstart, u32 blen) argument 405 struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode); local 433 struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode); local 480 struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode); local 510 struct gfs2_sbd *sdp = gl->gl_name.ln_sbd; local [all...] |
H A D | rgrp.h | 27 struct gfs2_rgrpd *gfs2_blk2rgrpd(struct gfs2_sbd *sdp, u64 blk, bool exact); 28 struct gfs2_rgrpd *gfs2_rgrpd_get_first(struct gfs2_sbd *sdp); 31 void gfs2_clear_rgrpd(struct gfs2_sbd *sdp); 32 int gfs2_rindex_update(struct gfs2_sbd *sdp); 55 int gfs2_check_blk_type(struct gfs2_sbd *sdp, u64 no_addr, 70 u64 gfs2_ri_total(struct gfs2_sbd *sdp); 73 int gfs2_rgrp_send_discards(struct gfs2_sbd *sdp, u64 offset,
|
/linux-master/arch/sh/kernel/cpu/shmobile/ |
H A D | pm.c | 49 struct sh_sleep_data *sdp = onchip_mem; local 53 standby_onchip_mem = (void *)(sdp + 1); 83 struct sh_sleep_data *sdp; local 87 sdp = onchip_mem; 88 sdp->addr.stbcr = 0xa4150020; /* STBCR */ 89 sdp->addr.bar = 0xa4150040; /* BAR */ 90 sdp->addr.pteh = 0xff000000; /* PTEH */ 91 sdp->addr.ptel = 0xff000004; /* PTEL */ 92 sdp->addr.ttb = 0xff000008; /* TTB */ 93 sdp [all...] |
/linux-master/kernel/rcu/ |
H A D | srcutree.c | 125 struct srcu_data *sdp; local 131 WARN_ON_ONCE(ARRAY_SIZE(sdp->srcu_lock_count) != 132 ARRAY_SIZE(sdp->srcu_unlock_count)); 134 sdp = per_cpu_ptr(ssp->sda, cpu); 135 spin_lock_init(&ACCESS_PRIVATE(sdp, lock)); 136 rcu_segcblist_init(&sdp->srcu_cblist); 137 sdp->srcu_cblist_invoking = false; 138 sdp->srcu_gp_seq_needed = ssp->srcu_sup->srcu_gp_seq; 139 sdp->srcu_gp_seq_needed_exp = ssp->srcu_sup->srcu_gp_seq; 140 sdp 170 struct srcu_data *sdp; local 369 spin_lock_irqsave_sdp_contention(struct srcu_data *sdp, unsigned long *flags) argument 657 struct srcu_data *sdp = per_cpu_ptr(ssp->sda, cpu); local 692 struct srcu_data *sdp; local 745 struct srcu_data *sdp = raw_cpu_ptr(ssp->sda); local 761 struct srcu_data *sdp = raw_cpu_ptr(ssp->sda); local 790 struct srcu_data *sdp = container_of(t, struct srcu_data, delay_work); local 795 srcu_queue_delayed_work_on(struct srcu_data *sdp, unsigned long delay) argument 810 srcu_schedule_cbs_sdp(struct srcu_data *sdp, unsigned long delay) argument 852 struct srcu_data *sdp; local 989 srcu_funnel_gp_start(struct srcu_struct *ssp, struct srcu_data *sdp, unsigned long s, bool do_norm) argument 1161 struct srcu_data *sdp; local 1217 struct srcu_data *sdp; local 1557 struct srcu_data *sdp; local 1574 srcu_barrier_one_cpu(struct srcu_struct *ssp, struct srcu_data *sdp) argument 1723 struct srcu_data *sdp; local 1876 struct srcu_data *sdp; local [all...] |
/linux-master/drivers/scsi/ |
H A D | sg.c | 196 static Sg_fd *sg_add_sfp(Sg_device * sdp); 209 #define sg_printk(prefix, sdp, fmt, a...) \ 210 sdev_prefix_printk(prefix, (sdp)->device, (sdp)->name, fmt, ##a) 246 open_wait(Sg_device *sdp, int flags) argument 251 while (sdp->open_cnt > 0) { 252 mutex_unlock(&sdp->open_rel_lock); 253 retval = wait_event_interruptible(sdp->open_wait, 254 (atomic_read(&sdp->detaching) || 255 !sdp 289 Sg_device *sdp; local 387 Sg_device *sdp; local 446 Sg_device *sdp; local 607 Sg_device *sdp; local 786 Sg_device *sdp = sfp->parentdp; local 920 sg_ioctl_common(struct file *filp, Sg_device *sdp, Sg_fd *sfp, unsigned int cmd_in, void __user *p) argument 1156 Sg_device *sdp; local 1173 Sg_device *sdp; local 1210 Sg_device *sdp; local 1323 Sg_device *sdp; local 1440 Sg_device *sdp; local 1500 Sg_device *sdp = NULL; local 1574 struct sg_device *sdp = container_of(kref, struct sg_device, d_ref); local 1600 Sg_device *sdp = dev_get_drvdata(cl_dev); local 2161 sg_add_sfp(Sg_device * sdp) argument 2212 struct sg_device *sdp = sfp->parentdp; local 2248 struct sg_device *sdp = sfp->parentdp; local 2293 struct sg_device *sdp; local 2487 Sg_device *sdp; local 2513 Sg_device *sdp; local 2530 sg_proc_debug_helper(struct seq_file *s, Sg_device * sdp) argument 2595 Sg_device *sdp; local [all...] |