Searched refs:sd_sb (Results 1 – 18 of 18) sorted by relevance
154 struct gfs2_sb_host *sb = &sdp->sd_sb; in gfs2_check_sb()187 struct gfs2_sb_host *sb = &sdp->sd_sb; in gfs2_sb_in()285 sdp->sd_fsb2bb_shift = sdp->sd_sb.sb_bsize_shift - in gfs2_read_sb()288 sdp->sd_diptrs = (sdp->sd_sb.sb_bsize - in gfs2_read_sb()290 sdp->sd_inptrs = (sdp->sd_sb.sb_bsize - in gfs2_read_sb()292 sdp->sd_jbsize = sdp->sd_sb.sb_bsize - sizeof(struct gfs2_meta_header); in gfs2_read_sb()293 sdp->sd_hash_bsize = sdp->sd_sb.sb_bsize / 2; in gfs2_read_sb()294 sdp->sd_hash_bsize_shift = sdp->sd_sb.sb_bsize_shift - 1; in gfs2_read_sb()296 sdp->sd_qc_per_block = (sdp->sd_sb.sb_bsize - in gfs2_read_sb()299 sdp->sd_blocks_per_bitmap = (sdp->sd_sb.sb_bsize - in gfs2_read_sb()[all …]
53 (GFS2_SB(inode)->sd_sb.sb_bsize_shift - GFS2_BASIC_BLOCK_SHIFT); in gfs2_set_inode_blocks()59 (GFS2_SB(inode)->sd_sb.sb_bsize_shift - GFS2_BASIC_BLOCK_SHIFT); in gfs2_get_inode_blocks()65 change *= (GFS2_SB(inode)->sd_sb.sb_bsize/GFS2_BASIC_BLOCK); in gfs2_add_inode_blocks()
339 size_t blks = (size + sdp->sd_sb.sb_bsize - 1) >> sdp->sd_sb.sb_bsize_shift; in gfs2_size_hint()790 *len = ((loff_t)max_data - 3) << sdp->sd_sb.sb_bsize_shift; in calc_max_reserv()808 loff_t bsize_mask = ~((loff_t)sdp->sd_sb.sb_bsize - 1); in __gfs2_fallocate()809 loff_t next = (offset + len - 1) >> sdp->sd_sb.sb_bsize_shift; in __gfs2_fallocate()812 next = (next + 1) << sdp->sd_sb.sb_bsize_shift; in __gfs2_fallocate()817 bytes = sdp->sd_max_rg_data * sdp->sd_sb.sb_bsize / 2; in __gfs2_fallocate()822 bytes = sdp->sd_sb.sb_bsize; in __gfs2_fallocate()879 PAGE_SIZE/sdp->sd_sb.sb_bsize); in __gfs2_fallocate()
37 limit = (sdp->sd_sb.sb_bsize - BUF_OFFSET) / sizeof(__be64); in buf_limit()45 limit = (sdp->sd_sb.sb_bsize - DATABUF_OFFSET) / (2 * sizeof(__be64)); in databuf_limit()
609 unsigned int bsize = sdp->sd_sb.sb_bsize; in gfs2_block_map()1057 if (newsize & (u64)(sdp->sd_sb.sb_bsize - 1)) { in trunc_start()1097 lblock = (size - 1) >> sdp->sd_sb.sb_bsize_shift; in trunc_dealloc()1227 (size > (sdp->sd_sb.sb_bsize - sizeof(struct gfs2_dinode)))) { in do_grow()1403 unsigned int shift = sdp->sd_sb.sb_bsize_shift; in gfs2_map_journal_extents()1465 sdp->sd_sb.sb_bsize - sizeof(struct gfs2_dinode)) in gfs2_write_alloc_required()1470 shift = sdp->sd_sb.sb_bsize_shift; in gfs2_write_alloc_required()1472 end_of_file = (i_size_read(&ip->i_inode) + sdp->sd_sb.sb_bsize - 1) >> shift; in gfs2_write_alloc_required()1474 lblock_stop = (offset + len + sdp->sd_sb.sb_bsize - 1) >> shift; in gfs2_write_alloc_required()
700 unsigned bsize = sdp->sd_sb.sb_bsize, bnum = 0, boff = 0; in gfs2_write_buf_to_page()704 blk = index << (PAGE_SHIFT - sdp->sd_sb.sb_bsize_shift); in gfs2_write_buf_to_page()839 q.qu_warn = cpu_to_be64(fdq->d_spc_softlimit >> sdp->sd_sb.sb_bsize_shift); in gfs2_adjust_quota()843 q.qu_limit = cpu_to_be64(fdq->d_spc_hardlimit >> sdp->sd_sb.sb_bsize_shift); in gfs2_adjust_quota()847 q.qu_value = cpu_to_be64(fdq->d_space >> sdp->sd_sb.sb_bsize_shift); in gfs2_adjust_quota()1339 unsigned int blocks = size >> sdp->sd_sb.sb_bsize_shift; in gfs2_quota_init()1633 fdq->d_spc_hardlimit = be64_to_cpu(qlvb->qb_limit) << sdp->sd_sb.sb_bsize_shift; in gfs2_get_dqblk()1634 fdq->d_spc_softlimit = be64_to_cpu(qlvb->qb_warn) << sdp->sd_sb.sb_bsize_shift; in gfs2_get_dqblk()1635 fdq->d_space = be64_to_cpu(qlvb->qb_value) << sdp->sd_sb.sb_bsize_shift; in gfs2_get_dqblk()1692 ((fdq->d_spc_softlimit >> sdp->sd_sb.sb_bsize_shift) == be64_to_cpu(qd->qd_qb.qb_warn))) in gfs2_set_dqblk()[all …]
127 shift = PAGE_SHIFT - sdp->sd_sb.sb_bsize_shift; in gfs2_getbuf()146 create_empty_buffers(page, sdp->sd_sb.sb_bsize, 0); in gfs2_getbuf()442 sdp->sd_sb.sb_bsize_shift; in gfs2_meta_ra()
15 #define GFS2_ACL_MAX_ENTRIES(sdp) ((300 << (sdp)->sd_sb.sb_bsize_shift) >> 12)
38 *data_blocks = (len >> sdp->sd_sb.sb_bsize_shift) + 3; in gfs2_write_calc_reserv()
55 first = (sdp->sd_sb.sb_bsize - sizeof(struct gfs2_log_descriptor)) / ssize; in gfs2_struct2blk()58 second = (sdp->sd_sb.sb_bsize - in gfs2_struct2blk()599 int max_revokes = (sdp->sd_sb.sb_bsize - sizeof(struct gfs2_log_descriptor)) / sizeof(u64); in gfs2_write_revokes()616 max_revokes += (sdp->sd_sb.sb_bsize - sizeof(struct gfs2_meta_header)) / sizeof(u64); in gfs2_write_revokes()
173 offset + size <= sdp->sd_sb.sb_bsize - sizeof(struct gfs2_dinode)) in gfs2_dir_write_data()194 if (amount > sdp->sd_sb.sb_bsize - o) in gfs2_dir_write_data()195 amount = sdp->sd_sb.sb_bsize - o; in gfs2_dir_write_data()298 if (amount > sdp->sd_sb.sb_bsize - o) in gfs2_dir_read_data()299 amount = sdp->sd_sb.sb_bsize - o; in gfs2_dir_read_data()982 i_size_write(inode, sdp->sd_sb.sb_bsize / 2); in dir_make_exhash()
117 …unsigned int max_revokes = (sdp->sd_sb.sb_bsize - sizeof(struct gfs2_log_descriptor)) / sizeof(u64… in gfs2_ail_flush()124 max_revokes += (sdp->sd_sb.sb_bsize - sizeof(struct gfs2_meta_header)) / sizeof(u64); in gfs2_ail_flush()
634 if (offset + sizeof(u64) > sdp->sd_sb.sb_bsize) { in revoke_lo_before_commit()706 while (offset + sizeof(u64) <= sdp->sd_sb.sb_bsize) { in revoke_lo_scan_elements()
719 PAGE_SIZE/sdp->sd_sb.sb_bsize); in gfs2_write_begin()732 if (pos + len > sdp->sd_sb.sb_bsize - sizeof(struct gfs2_dinode)) { in gfs2_write_begin()
778 bytes = sdp->sd_sb.sb_bsize - sizeof(struct gfs2_rgrp); in compute_bitstructs()792 bytes = sdp->sd_sb.sb_bsize - in compute_bitstructs()882 const unsigned bsize = sdp->sd_sb.sb_bsize; in read_rindex_entry()1359 unsigned bs_shift = sdp->sd_sb.sb_bsize_shift; in gfs2_fitrim()
677 struct gfs2_sb_host sd_sb; member
365 jd->jd_blocks = size >> sdp->sd_sb.sb_bsize_shift; in gfs2_jdesc_check()1199 buf->f_bsize = sdp->sd_sb.sb_bsize; in gfs2_statfs()
1183 if (size > sdp->sd_sb.sb_bsize - sizeof(struct gfs2_dinode) - 1) in gfs2_symlink()1201 unsigned dsize = sdp->sd_sb.sb_bsize - sizeof(struct gfs2_dinode); in gfs2_mkdir()