/fs/gfs2/ |
H A D | recovery.h | 17 static inline void gfs2_replay_incr_blk(struct gfs2_sbd *sdp, unsigned int *blk) argument 19 if (++*blk == sdp->sd_jdesc->jd_blocks)
|
H A D | super.h | 17 extern void gfs2_lm_unmount(struct gfs2_sbd *sdp); 19 static inline unsigned int gfs2_jindex_size(struct gfs2_sbd *sdp) argument 22 spin_lock(&sdp->sd_jindex_spin); 23 x = sdp->sd_journals; 24 spin_unlock(&sdp->sd_jindex_spin); 28 extern void gfs2_jindex_free(struct gfs2_sbd *sdp); 32 extern struct gfs2_jdesc *gfs2_jdesc_find(struct gfs2_sbd *sdp, unsigned int jid); 35 extern int gfs2_lookup_in_master_dir(struct gfs2_sbd *sdp, char *filename, 38 extern int gfs2_make_fs_rw(struct gfs2_sbd *sdp); 39 extern void gfs2_online_uevent(struct gfs2_sbd *sdp); [all...] |
H A D | quota.h | 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); 42 struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode); local 44 if (sdp->sd_args.ar_quota == GFS2_QUOTA_OFF) 49 if (sdp->sd_args.ar_quota != GFS2_QUOTA_ON)
|
H A D | bmap.h | 34 const struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode); local 38 *data_blocks = (len >> sdp->sd_sb.sb_bsize_shift) + 3; 39 *ind_blocks = 3 * (sdp->sd_max_height - 1); 41 for (tmp = *data_blocks; tmp > sdp->sd_diptrs;) { 42 tmp = DIV_ROUND_UP(tmp, sdp->sd_inptrs); 58 extern int gfs2_map_journal_extents(struct gfs2_sbd *sdp, struct gfs2_jdesc *jd);
|
H A D | dentry.c | 39 struct gfs2_sbd *sdp; local 51 sdp = GFS2_SB(parent->d_inode); 61 if (sdp->sd_lockstruct.ls_ops->lm_mount == NULL)
|
H A D | log.h | 20 * @sdp: the filesystem 24 static inline void gfs2_log_lock(struct gfs2_sbd *sdp) 25 __acquires(&sdp->sd_log_lock) 27 spin_lock(&sdp->sd_log_lock); 32 * @sdp: the filesystem 36 static inline void gfs2_log_unlock(struct gfs2_sbd *sdp) 37 __releases(&sdp->sd_log_lock) 39 spin_unlock(&sdp->sd_log_lock); 42 static inline void gfs2_log_pointers_init(struct gfs2_sbd *sdp, argument 45 if (++value == sdp 53 struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode); local [all...] |
H A D | inode.h | 35 const struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode); local 36 return (sdp->sd_args.ar_data == GFS2_DATA_WRITEBACK) && !gfs2_is_jdata(ip); 41 const struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode); local 42 return (sdp->sd_args.ar_data == GFS2_DATA_ORDERED) && !gfs2_is_jdata(ip); 99 extern struct inode *gfs2_lookup_by_inum(struct gfs2_sbd *sdp, u64 no_addr, 126 static inline int gfs2_localflocks(const struct gfs2_sbd *sdp) argument 128 return sdp->sd_args.ar_localflocks; 134 static inline int gfs2_localflocks(const struct gfs2_sbd *sdp) argument
|
H A D | lops.h | 29 extern void gfs2_log_write_page(struct gfs2_sbd *sdp, struct page *page); 30 extern void gfs2_log_flush_bio(struct gfs2_sbd *sdp, int rw); 31 extern void gfs2_pin(struct gfs2_sbd *sdp, struct buffer_head *bh); 33 static inline unsigned int buf_limit(struct gfs2_sbd *sdp) argument 37 limit = (sdp->sd_sb.sb_bsize - BUF_OFFSET) / sizeof(__be64); 41 static inline unsigned int databuf_limit(struct gfs2_sbd *sdp) argument 45 limit = (sdp->sd_sb.sb_bsize - DATABUF_OFFSET) / (2 * sizeof(__be64)); 49 static inline void lops_before_commit(struct gfs2_sbd *sdp, argument 55 gfs2_log_ops[x]->lo_before_commit(sdp, tr); 58 static inline void lops_after_commit(struct gfs2_sbd *sdp, argument [all...] |
H A D | trans.c | 31 int gfs2_trans_begin(struct gfs2_sbd *sdp, unsigned int blocks, argument 40 if (!test_bit(SDF_JOURNAL_LIVE, &sdp->sd_flags)) 55 tr->tr_reserved += gfs2_struct2blk(sdp, revokes, 60 sb_start_intwrite(sdp->sd_vfs); 62 error = gfs2_log_reserve(sdp, tr->tr_reserved); 71 sb_end_intwrite(sdp->sd_vfs); 88 void gfs2_trans_end(struct gfs2_sbd *sdp) argument 96 gfs2_log_release(sdp, tr->tr_reserved); 99 sb_end_intwrite(sdp->sd_vfs); 107 if (gfs2_assert_withdraw(sdp, (nbu 157 struct gfs2_sbd *sdp = gl->gl_sbd; local 191 meta_lo_add(struct gfs2_sbd *sdp, struct gfs2_bufdata *bd) argument 218 struct gfs2_sbd *sdp = gl->gl_sbd; local 240 gfs2_trans_add_revoke(struct gfs2_sbd *sdp, struct gfs2_bufdata *bd) argument 250 gfs2_trans_add_unrevoke(struct gfs2_sbd *sdp, u64 blkno, unsigned int len) argument [all...] |
H A D | export.c | 135 struct gfs2_sbd *sdp = sb->s_fs_info; local 147 inode = gfs2_lookup_by_inum(sdp, inum->no_addr, &inum->no_formal_ino,
|
H A D | util.c | 33 void gfs2_assert_i(struct gfs2_sbd *sdp) argument 35 fs_emerg(sdp, "fatal assertion failed\n"); 38 int gfs2_lm_withdraw(struct gfs2_sbd *sdp, const char *fmt, ...) argument 40 struct lm_lockstruct *ls = &sdp->sd_lockstruct; 45 if (sdp->sd_args.ar_errors == GFS2_ERRORS_WITHDRAW && 46 test_and_set_bit(SDF_SHUTDOWN, &sdp->sd_flags)) 54 fs_err(sdp, "%pV", &vaf); 58 if (sdp->sd_args.ar_errors == GFS2_ERRORS_WITHDRAW) { 59 fs_err(sdp, "about to withdraw this file system\n"); 60 BUG_ON(sdp 87 gfs2_assert_withdraw_i(struct gfs2_sbd *sdp, char *assertion, const char *function, char *file, unsigned int line) argument 105 gfs2_assert_warn_i(struct gfs2_sbd *sdp, char *assertion, const char *function, char *file, unsigned int line) argument 139 gfs2_consist_i(struct gfs2_sbd *sdp, int cluster_wide, const char *function, char *file, unsigned int line) argument 158 struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode); local 179 struct gfs2_sbd *sdp = rgd->rd_sbd; local 196 gfs2_meta_check_ii(struct gfs2_sbd *sdp, struct buffer_head *bh, const char *type, const char *function, char *file, unsigned int line) argument 216 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 236 gfs2_io_error_i(struct gfs2_sbd *sdp, const char *function, char *file, unsigned int line) argument 253 gfs2_io_error_bh_i(struct gfs2_sbd *sdp, struct buffer_head *bh, const char *function, char *file, unsigned int line) argument [all...] |
H A D | util.h | 31 void gfs2_assert_i(struct gfs2_sbd *sdp); 33 #define gfs2_assert(sdp, assertion) \ 36 gfs2_assert_i(sdp); \ 42 int gfs2_assert_withdraw_i(struct gfs2_sbd *sdp, char *assertion, 45 #define gfs2_assert_withdraw(sdp, assertion) \ 46 ((likely(assertion)) ? 0 : gfs2_assert_withdraw_i((sdp), #assertion, \ 50 int gfs2_assert_warn_i(struct gfs2_sbd *sdp, char *assertion, 53 #define gfs2_assert_warn(sdp, assertion) \ 54 ((likely(assertion)) ? 0 : gfs2_assert_warn_i((sdp), #assertion, \ 58 int gfs2_consist_i(struct gfs2_sbd *sdp, in 83 gfs2_meta_check(struct gfs2_sbd *sdp, struct buffer_head *bh) argument 101 gfs2_metatype_check_i(struct gfs2_sbd *sdp, struct buffer_head *bh, u16 type, const char *function, char *file, unsigned int line) argument [all...] |
H A D | glops.c | 53 struct gfs2_sbd *sdp = gl->gl_sbd; local 59 gfs2_log_lock(sdp); 60 spin_lock(&sdp->sd_ail_lock); 70 gfs2_trans_add_revoke(sdp, bd); 74 spin_unlock(&sdp->sd_ail_lock); 75 gfs2_log_unlock(sdp); 81 struct gfs2_sbd *sdp = gl->gl_sbd; local 95 tr.tr_reserved = 1 + gfs2_struct2blk(sdp, tr.tr_revokes, sizeof(u64)); 97 sb_start_intwrite(sdp->sd_vfs); 98 if (gfs2_log_reserve(sdp, t 113 struct gfs2_sbd *sdp = gl->gl_sbd; local 143 struct gfs2_sbd *sdp = gl->gl_sbd; local 177 struct gfs2_sbd *sdp = gl->gl_sbd; local 277 struct gfs2_sbd *sdp = gl->gl_sbd; local 412 struct gfs2_sbd *sdp = gl->gl_sbd; local 472 struct gfs2_sbd *sdp = gl->gl_sbd; local 497 struct gfs2_sbd *sdp = gl->gl_sbd; local 542 struct gfs2_sbd *sdp = gl->gl_sbd; local [all...] |
H A D | meta_io.c | 117 struct gfs2_sbd *sdp = gl->gl_sbd; local 125 mapping = &sdp->sd_aspace; 127 shift = PAGE_CACHE_SHIFT - sdp->sd_sb.sb_bsize_shift; 146 create_empty_buffers(page, sdp->sd_sb.sb_bsize, 0); 154 map_bh(bh, sdp->sd_vfs, blkno); 203 struct gfs2_sbd *sdp = gl->gl_sbd; local 206 if (unlikely(test_bit(SDF_SHUTDOWN, &sdp->sd_flags))) { 228 gfs2_io_error_bh(sdp, bh); 239 * @sdp: the filesystem 245 int gfs2_meta_wait(struct gfs2_sbd *sdp, struc argument 267 struct gfs2_sbd *sdp = gfs2_mapping2sbd(mapping); local 307 struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode); local 339 struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode); local 365 struct gfs2_sbd *sdp = gl->gl_sbd; local [all...] |
H A D | recovery.c | 316 struct gfs2_sbd *sdp = GFS2_SB(jd->jd_inode); local 330 if (gfs2_meta_check(sdp, bh)) { 341 gfs2_replay_incr_blk(sdp, &start); 351 } else if (gfs2_metatype_check(sdp, bh, GFS2_METATYPE_LD)) { 363 gfs2_replay_incr_blk(sdp, &start); 373 * @sdp: the filesystem 384 struct gfs2_sbd *sdp = GFS2_SB(jd->jd_inode); local 393 gfs2_replay_incr_blk(sdp, &lblock); 403 bh = sb_getblk(sdp->sd_vfs, bh_map.b_blocknr); 416 lh->lh_header.mh_jid = cpu_to_be32(sdp 432 gfs2_recovery_done(struct gfs2_sbd *sdp, unsigned int jid, unsigned int message) argument 455 struct gfs2_sbd *sdp = GFS2_SB(jd->jd_inode); local [all...] |
H A D | aops.c | 102 struct gfs2_sbd *sdp = GFS2_SB(inode); local 107 if (gfs2_assert_withdraw(sdp, gfs2_glock_is_held_excl(ip->i_gl))) 158 struct gfs2_sbd *sdp = GFS2_SB(inode); local 166 gfs2_page_add_databufs(ip, page, 0, sdp->sd_vfs->s_blocksize-1); 182 struct gfs2_sbd *sdp = GFS2_SB(inode); local 189 ret = gfs2_trans_begin(sdp, RES_DINODE + 1, 0); 198 gfs2_trans_end(sdp); 238 struct gfs2_sbd *sdp = GFS2_SB(inode); local 243 ret = gfs2_trans_begin(sdp, nrblocks, nrblocks); 328 gfs2_trans_end(sdp); 429 struct gfs2_sbd *sdp = GFS2_SB(mapping->host); local 498 struct gfs2_sbd *sdp = GFS2_SB(page->mapping->host); local 608 struct gfs2_sbd *sdp = GFS2_SB(inode); local 644 struct gfs2_sbd *sdp = GFS2_SB(mapping->host); local 758 struct gfs2_sbd *sdp = inode->i_sb->s_fs_info; local 810 struct gfs2_sbd *sdp = GFS2_SB(inode); local 873 struct gfs2_sbd *sdp = GFS2_SB(inode); local 964 gfs2_discard(struct gfs2_sbd *sdp, struct buffer_head *bh) argument 989 struct gfs2_sbd *sdp = GFS2_SB(page->mapping->host); local 1121 struct gfs2_sbd *sdp = gfs2_mapping2sbd(mapping); local [all...] |
H A D | file.c | 217 struct gfs2_sbd *sdp = GFS2_SB(inode); local 260 gfs2_log_flush(sdp, ip->i_gl, NORMAL_FLUSH); 268 error = gfs2_trans_begin(sdp, RES_DINODE, 0); 281 gfs2_trans_end(sdp); 335 struct gfs2_sbd *sdp = GFS2_SB(inode); local 337 size_t blks = (size + sdp->sd_sb.sb_bsize - 1) >> sdp->sd_sb.sb_bsize_shift; 386 struct gfs2_sbd *sdp = GFS2_SB(inode); local 427 ret = gfs2_rindex_update(sdp); 447 ret = gfs2_trans_begin(sdp, rblock 778 const struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode); local 803 struct gfs2_sbd *sdp = GFS2_SB(inode); local 928 struct gfs2_sbd *sdp = GFS2_SB(file->f_mapping->host); local [all...] |
H A D | lock_dlm.c | 284 struct gfs2_sbd *sdp = gl->gl_sbd; local 285 struct lm_lockstruct *ls = &sdp->sd_lockstruct; 304 if (test_bit(SDF_SKIP_DLM_UNLOCK, &sdp->sd_flags) && 498 static int sync_unlock(struct gfs2_sbd *sdp, struct dlm_lksb *lksb, char *name) argument 500 struct lm_lockstruct *ls = &sdp->sd_lockstruct; 505 fs_err(sdp, "%s lkid %x error %d\n", 513 fs_err(sdp, "%s lkid %x status %d\n", 520 static int sync_lock(struct gfs2_sbd *sdp, int mode, uint32_t flags, argument 523 struct lm_lockstruct *ls = &sdp->sd_lockstruct; 534 fs_err(sdp, " 551 mounted_unlock(struct gfs2_sbd *sdp) argument 557 mounted_lock(struct gfs2_sbd *sdp, int mode, uint32_t flags) argument 564 control_unlock(struct gfs2_sbd *sdp) argument 570 control_lock(struct gfs2_sbd *sdp, int mode, uint32_t flags) argument 579 struct gfs2_sbd *sdp = container_of(work, struct gfs2_sbd, sd_control_work.work); local 755 control_mount(struct gfs2_sbd *sdp) argument 939 control_first_done(struct gfs2_sbd *sdp) argument 1005 set_recover_size(struct gfs2_sbd *sdp, struct dlm_slot *slots, int num_slots) argument 1067 struct gfs2_sbd *sdp = arg; local 1088 struct gfs2_sbd *sdp = arg; local 1113 struct gfs2_sbd *sdp = arg; local 1138 gdlm_recovery_result(struct gfs2_sbd *sdp, unsigned int jid, unsigned int result) argument 1183 gdlm_mount(struct gfs2_sbd *sdp, const char *table) argument 1280 gdlm_first_done(struct gfs2_sbd *sdp) argument 1293 gdlm_unmount(struct gfs2_sbd *sdp) argument [all...] |
H A D | log.c | 38 * @sdp: the filesystem 48 unsigned int gfs2_struct2blk(struct gfs2_sbd *sdp, unsigned int nstruct, argument 55 first = (sdp->sd_sb.sb_bsize - sizeof(struct gfs2_log_descriptor)) / ssize; 58 second = (sdp->sd_sb.sb_bsize - 86 * @sdp: the filesystem 92 static int gfs2_ail1_start_one(struct gfs2_sbd *sdp, 95 __releases(&sdp->sd_ail_lock) 96 __acquires(&sdp->sd_ail_lock) 106 gfs2_assert(sdp, bd->bd_tr == tr); 110 gfs2_io_error_bh(sdp, b 145 gfs2_ail1_flush(struct gfs2_sbd *sdp, struct writeback_control *wbc) argument 171 gfs2_ail1_start(struct gfs2_sbd *sdp) argument 190 gfs2_ail1_empty_one(struct gfs2_sbd *sdp, struct gfs2_trans *tr) argument 215 gfs2_ail1_empty(struct gfs2_sbd *sdp) argument 235 gfs2_ail1_wait(struct gfs2_sbd *sdp) argument 264 gfs2_ail2_empty_one(struct gfs2_sbd *sdp, struct gfs2_trans *tr) argument 277 ail2_empty(struct gfs2_sbd *sdp, unsigned int new_tail) argument 310 gfs2_log_release(struct gfs2_sbd *sdp, unsigned int blks) argument 340 gfs2_log_reserve(struct gfs2_sbd *sdp, unsigned int blks) argument 397 log_distance(struct gfs2_sbd *sdp, unsigned int newer, unsigned int older) argument 434 calc_reserved(struct gfs2_sbd *sdp) argument 459 current_tail(struct gfs2_sbd *sdp) argument 479 log_pull_tail(struct gfs2_sbd *sdp, unsigned int new_tail) argument 494 log_flush_wait(struct gfs2_sbd *sdp) argument 523 gfs2_ordered_write(struct gfs2_sbd *sdp) argument 543 gfs2_ordered_wait(struct gfs2_sbd *sdp) argument 563 struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode); local 571 gfs2_add_revoke(struct gfs2_sbd *sdp, struct gfs2_bufdata *bd) argument 587 gfs2_write_revokes(struct gfs2_sbd *sdp) argument 648 log_write_header(struct gfs2_sbd *sdp, u32 flags) argument 694 gfs2_log_flush(struct gfs2_sbd *sdp, struct gfs2_glock *gl, enum gfs2_flush_type type) argument 810 log_refund(struct gfs2_sbd *sdp, struct gfs2_trans *tr) argument 855 gfs2_log_commit(struct gfs2_sbd *sdp, struct gfs2_trans *tr) argument 871 gfs2_log_shutdown(struct gfs2_sbd *sdp) argument 889 gfs2_jrnl_flush_reqd(struct gfs2_sbd *sdp) argument 894 gfs2_ail_flush_reqd(struct gfs2_sbd *sdp) argument 910 struct gfs2_sbd *sdp = data; local [all...] |
H A D | lops.c | 36 * @sdp: The superblock 41 void gfs2_pin(struct gfs2_sbd *sdp, struct buffer_head *bh) argument 49 gfs2_assert_withdraw(sdp, 0); 51 gfs2_io_error_bh(sdp, bh); 56 spin_lock(&sdp->sd_ail_lock); 59 spin_unlock(&sdp->sd_ail_lock); 61 atomic_inc(&sdp->sd_log_pinned); 73 struct gfs2_sbd *sdp = gl->gl_sbd; local 80 if (sdp->sd_args.ar_discard) 81 gfs2_rgrp_send_discards(sdp, rg 98 gfs2_unpin(struct gfs2_sbd *sdp, struct buffer_head *bh, struct gfs2_trans *tr) argument 132 gfs2_log_incr_head(struct gfs2_sbd *sdp) argument 143 gfs2_log_bmap(struct gfs2_sbd *sdp) argument 172 gfs2_end_log_write_bh(struct gfs2_sbd *sdp, struct bio_vec *bvec, int error) argument 207 struct gfs2_sbd *sdp = bio->bi_private; local 239 gfs2_log_flush_bio(struct gfs2_sbd *sdp, int rw) argument 261 gfs2_log_alloc_bio(struct gfs2_sbd *sdp, u64 blkno) argument 299 gfs2_log_get_bio(struct gfs2_sbd *sdp, u64 blkno) argument 328 gfs2_log_write(struct gfs2_sbd *sdp, struct page *page, unsigned size, unsigned offset) argument 355 gfs2_log_write_bh(struct gfs2_sbd *sdp, struct buffer_head *bh) argument 371 gfs2_log_write_page(struct gfs2_sbd *sdp, struct page *page) argument 377 gfs2_get_log_desc(struct gfs2_sbd *sdp, u32 ld_type, u32 ld_length, u32 ld_data1) argument 420 gfs2_before_commit(struct gfs2_sbd *sdp, unsigned int limit, unsigned int total, struct list_head *blist, bool is_databuf) argument 494 buf_lo_before_commit(struct gfs2_sbd *sdp, struct gfs2_trans *tr) argument 504 buf_lo_after_commit(struct gfs2_sbd *sdp, struct gfs2_trans *tr) argument 535 struct gfs2_sbd *sdp = GFS2_SB(jd->jd_inode); local 588 struct gfs2_sbd *sdp = gl->gl_sbd; local 604 struct gfs2_sbd *sdp = GFS2_SB(jd->jd_inode); local 619 revoke_lo_before_commit(struct gfs2_sbd *sdp, struct gfs2_trans *tr) argument 659 revoke_lo_after_commit(struct gfs2_sbd *sdp, struct gfs2_trans *tr) argument 689 struct gfs2_sbd *sdp = GFS2_SB(jd->jd_inode); local 737 struct gfs2_sbd *sdp = GFS2_SB(jd->jd_inode); local 757 databuf_lo_before_commit(struct gfs2_sbd *sdp, struct gfs2_trans *tr) argument 772 struct gfs2_sbd *sdp = GFS2_SB(jd->jd_inode); local 821 struct gfs2_sbd *sdp = GFS2_SB(jd->jd_inode); local 837 databuf_lo_after_commit(struct gfs2_sbd *sdp, struct gfs2_trans *tr) argument [all...] |
H A D | ops_fstype.c | 67 struct gfs2_sbd *sdp; local 70 sdp = kzalloc(sizeof(struct gfs2_sbd), GFP_KERNEL); 71 if (!sdp) 74 sb->s_fs_info = sdp; 75 sdp->sd_vfs = sb; 76 sdp->sd_lkstats = alloc_percpu(struct gfs2_pcpu_lkstats); 77 if (!sdp->sd_lkstats) { 78 kfree(sdp); 82 set_bit(SDF_NOJOURNALID, &sdp->sd_flags); 83 gfs2_tune_init(&sdp 153 gfs2_check_sb(struct gfs2_sbd *sdp, int silent) argument 186 gfs2_sb_in(struct gfs2_sbd *sdp, const void *buf) argument 228 gfs2_read_super(struct gfs2_sbd *sdp, sector_t sector, int silent) argument 271 gfs2_read_sb(struct gfs2_sbd *sdp, int silent) argument 359 init_names(struct gfs2_sbd *sdp, int silent) argument 393 init_locking(struct gfs2_sbd *sdp, struct gfs2_holder *mount_gh, int undo) argument 451 struct gfs2_sbd *sdp = sb->s_fs_info; local 469 init_sb(struct gfs2_sbd *sdp, int silent) argument 525 gfs2_others_may_mount(struct gfs2_sbd *sdp) argument 546 gfs2_jindex_hold(struct gfs2_sbd *sdp, struct gfs2_holder *ji_gh) argument 614 check_journal_clean(struct gfs2_sbd *sdp, struct gfs2_jdesc *jd) argument 649 init_journal(struct gfs2_sbd *sdp, int undo) argument 791 init_inodes(struct gfs2_sbd *sdp, int undo) argument 854 init_per_node(struct gfs2_sbd *sdp, int undo) argument 946 gfs2_lm_mount(struct gfs2_sbd *sdp, int silent) argument 1019 gfs2_lm_unmount(struct gfs2_sbd *sdp) argument 1027 wait_on_journal(struct gfs2_sbd *sdp) argument 1036 gfs2_online_uevent(struct gfs2_sbd *sdp) argument 1058 struct gfs2_sbd *sdp; local 1264 struct gfs2_sbd *sdp; local 1357 struct gfs2_sbd *sdp; local 1384 struct gfs2_sbd *sdp = sb->s_fs_info; local [all...] |
H A D | sys.c | 41 struct gfs2_sbd *sdp = container_of(kobj, struct gfs2_sbd, sd_kobj); local 43 return a->show ? a->show(sdp, buf) : 0; 49 struct gfs2_sbd *sdp = container_of(kobj, struct gfs2_sbd, sd_kobj); local 51 return a->store ? a->store(sdp, buf, len) : len; 62 static ssize_t id_show(struct gfs2_sbd *sdp, char *buf) argument 65 MAJOR(sdp->sd_vfs->s_dev), MINOR(sdp->sd_vfs->s_dev)); 68 static ssize_t fsname_show(struct gfs2_sbd *sdp, char *buf) argument 70 return snprintf(buf, PAGE_SIZE, "%s\n", sdp->sd_fsname); 84 static ssize_t uuid_show(struct gfs2_sbd *sdp, cha argument 94 freeze_show(struct gfs2_sbd *sdp, char *buf) argument 102 freeze_store(struct gfs2_sbd *sdp, const char *buf, size_t len) argument 129 withdraw_show(struct gfs2_sbd *sdp, char *buf) argument 135 withdraw_store(struct gfs2_sbd *sdp, const char *buf, size_t len) argument 148 statfs_sync_store(struct gfs2_sbd *sdp, const char *buf, size_t len) argument 161 quota_sync_store(struct gfs2_sbd *sdp, const char *buf, size_t len) argument 174 quota_refresh_user_store(struct gfs2_sbd *sdp, const char *buf, size_t len) argument 194 quota_refresh_group_store(struct gfs2_sbd *sdp, const char *buf, size_t len) argument 214 demote_rq_store(struct gfs2_sbd *sdp, const char *buf, size_t len) argument 290 struct gfs2_sbd *sdp = container_of(kobj, struct gfs2_sbd, sd_kobj); local 306 proto_name_show(struct gfs2_sbd *sdp, char *buf) argument 312 block_show(struct gfs2_sbd *sdp, char *buf) argument 324 block_store(struct gfs2_sbd *sdp, const char *buf, size_t len) argument 344 wdack_show(struct gfs2_sbd *sdp, char *buf) argument 351 wdack_store(struct gfs2_sbd *sdp, const char *buf, size_t len) argument 366 lkfirst_show(struct gfs2_sbd *sdp, char *buf) argument 372 lkfirst_store(struct gfs2_sbd *sdp, const char *buf, size_t len) argument 399 first_done_show(struct gfs2_sbd *sdp, char *buf) argument 405 gfs2_recover_set(struct gfs2_sbd *sdp, unsigned jid) argument 429 recover_store(struct gfs2_sbd *sdp, const char *buf, size_t len) argument 448 recover_done_show(struct gfs2_sbd *sdp, char *buf) argument 454 recover_status_show(struct gfs2_sbd *sdp, char *buf) argument 460 jid_show(struct gfs2_sbd *sdp, char *buf) argument 465 jid_store(struct gfs2_sbd *sdp, const char *buf, size_t len) argument 525 quota_scale_show(struct gfs2_sbd *sdp, char *buf) argument 532 quota_scale_store(struct gfs2_sbd *sdp, const char *buf, size_t len) argument 551 tune_set(struct gfs2_sbd *sdp, unsigned int *field, int check_zero, const char *buf, size_t len) argument 619 gfs2_sys_fs_add(struct gfs2_sbd *sdp) argument 671 gfs2_sys_fs_del(struct gfs2_sbd *sdp) argument 682 struct gfs2_sbd *sdp = container_of(kobj, struct gfs2_sbd, sd_kobj); local [all...] |
H A D | bmap.c | 180 * @sdp: The superblock 238 static void find_metapath(const struct gfs2_sbd *sdp, u64 block, argument 244 mp->mp_list[i] = do_div(block, sdp->sd_inptrs); 455 struct gfs2_sbd *sdp = GFS2_SB(inode); local 456 struct super_block *sb = sdp->sd_vfs; 485 ptrs_per_blk = height > 1 ? sdp->sd_inptrs : sdp->sd_diptrs; 513 gfs2_trans_add_unrevoke(sdp, bn, n); 571 fs_err(sdp, 607 struct gfs2_sbd *sdp local 720 struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode); local 874 struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode); local 1011 struct gfs2_sbd *sdp = GFS2_SB(inode); local 1034 struct gfs2_sbd *sdp = GFS2_SB(inode); local 1087 struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode); local 1124 struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode); local 1219 struct gfs2_sbd *sdp = GFS2_SB(inode); local 1401 gfs2_map_journal_extents(struct gfs2_sbd *sdp, struct gfs2_jdesc *jd) argument 1458 struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode); local [all...] |
H A D | inode.c | 107 struct gfs2_sbd *sdp = GFS2_SB(inode); local 112 if (gfs2_localflocks(sdp)) 118 if (gfs2_localflocks(sdp)) 155 struct gfs2_sbd *sdp = GFS2_SB(inode); local 158 error = gfs2_glock_get(sdp, no_addr, &gfs2_inode_glops, CREATE, &ip->i_gl); 163 error = gfs2_glock_get(sdp, no_addr, &gfs2_iopen_glops, CREATE, &io_gl); 206 struct inode *gfs2_lookup_by_inum(struct gfs2_sbd *sdp, u64 no_addr, argument 209 struct super_block *sb = sdp->sd_vfs; 215 error = gfs2_glock_nq_num(sdp, no_addr, &gfs2_inode_glops, 220 error = gfs2_check_blk_type(sdp, no_add 381 struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode); local 439 struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode); local 523 struct gfs2_sbd *sdp = GFS2_SB(&dip->i_inode); local 597 struct gfs2_sbd *sdp = GFS2_SB(&dip->i_inode); local 898 struct gfs2_sbd *sdp = GFS2_SB(dir); local 1105 struct gfs2_sbd *sdp = GFS2_SB(dir); local 1188 struct gfs2_sbd *sdp = GFS2_SB(dir); local 1209 struct gfs2_sbd *sdp = GFS2_SB(dir); local 1341 struct gfs2_sbd *sdp = GFS2_SB(odir); local 1625 struct gfs2_sbd *sdp = GFS2_SB(inode); local 1693 struct gfs2_sbd *sdp = GFS2_SB(inode); local 1827 struct gfs2_sbd *sdp = GFS2_SB(inode); local [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); 118 struct gfs2_sbd *sdp; local 122 sdp = qd->qd_gl->gl_sbd; 135 gfs2_assert_warn(sdp, !qd->qd_change); 136 gfs2_assert_warn(sdp, !qd->qd_slot_count); 137 gfs2_assert_warn(sdp, !qd->qd_bh_count); 140 atomic_dec(&sdp->sd_quota_count); 213 static struct gfs2_quota_data *qd_alloc(unsigned hash, struct gfs2_sbd *sdp, struct kqid qid) argument 222 qd->qd_sbd = sdp; 242 gfs2_qd_search_bucket(unsigned int hash, const struct gfs2_sbd *sdp, struct kqid qid) argument 264 qd_get(struct gfs2_sbd *sdp, struct kqid qid, struct gfs2_quota_data **qdp) argument 304 struct gfs2_sbd *sdp = qd->qd_gl->gl_sbd; local 322 struct gfs2_sbd *sdp = qd->qd_sbd; local 346 struct gfs2_sbd *sdp = qd->qd_sbd; local 356 struct gfs2_sbd *sdp = qd->qd_sbd; local 369 struct gfs2_sbd *sdp = qd->qd_gl->gl_sbd; local 416 struct gfs2_sbd *sdp = qd->qd_gl->gl_sbd; local 428 qd_check_sync(struct gfs2_sbd *sdp, struct gfs2_quota_data *qd, u64 *sync_gen) argument 446 qd_fish(struct gfs2_sbd *sdp, struct gfs2_quota_data **qdp) argument 496 qdsb_get(struct gfs2_sbd *sdp, struct kqid qid, struct gfs2_quota_data **qdp) argument 531 struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode); local 588 struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode); local 616 struct gfs2_sbd *sdp = qd->qd_gl->gl_sbd; local 673 struct gfs2_sbd *sdp = GFS2_SB(inode); local 792 struct gfs2_sbd *sdp = (*qda)->qd_gl->gl_sbd; local 887 update_qd(struct gfs2_sbd *sdp, struct gfs2_quota_data *qd) argument 915 struct gfs2_sbd *sdp = qd->qd_gl->gl_sbd; local 959 struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode); local 998 struct gfs2_sbd *sdp = qd->qd_gl->gl_sbd; local 1034 struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode); local 1086 struct gfs2_sbd *sdp = qd->qd_gl->gl_sbd; local 1098 struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode); local 1167 struct gfs2_sbd *sdp = sb->s_fs_info; local 1211 gfs2_quota_refresh(struct gfs2_sbd *sdp, struct kqid qid) argument 1229 gfs2_quota_init(struct gfs2_sbd *sdp) argument 1330 gfs2_quota_cleanup(struct gfs2_sbd *sdp) argument 1372 quotad_error(struct gfs2_sbd *sdp, const char *msg, int error) argument 1380 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 1394 quotad_check_trunc_list(struct gfs2_sbd *sdp) argument 1413 gfs2_wake_up_statfs(struct gfs2_sbd *sdp) argument 1429 struct gfs2_sbd *sdp = data; local 1478 struct gfs2_sbd *sdp = sb->s_fs_info; local 1507 struct gfs2_sbd *sdp = sb->s_fs_info; local 1549 struct gfs2_sbd *sdp = sb->s_fs_info; local [all...] |