Home
last modified time | relevance | path

Searched refs:sd_sb (Results 1 – 16 of 16) sorted by relevance

/linux-4.19.296/fs/gfs2/
Dops_fstype.c155 struct gfs2_sb_host *sb = &sdp->sd_sb; in gfs2_check_sb()
195 struct gfs2_sb_host *sb = &sdp->sd_sb; in gfs2_sb_in()
293 sdp->sd_fsb2bb_shift = sdp->sd_sb.sb_bsize_shift - in gfs2_read_sb()
296 sdp->sd_diptrs = (sdp->sd_sb.sb_bsize - in gfs2_read_sb()
298 sdp->sd_inptrs = (sdp->sd_sb.sb_bsize - in gfs2_read_sb()
300 sdp->sd_jbsize = sdp->sd_sb.sb_bsize - sizeof(struct gfs2_meta_header); in gfs2_read_sb()
301 sdp->sd_hash_bsize = sdp->sd_sb.sb_bsize / 2; in gfs2_read_sb()
302 sdp->sd_hash_bsize_shift = sdp->sd_sb.sb_bsize_shift - 1; in gfs2_read_sb()
304 sdp->sd_qc_per_block = (sdp->sd_sb.sb_bsize - in gfs2_read_sb()
307 sdp->sd_blocks_per_bitmap = (sdp->sd_sb.sb_bsize - in gfs2_read_sb()
[all …]
Dinode.h53 (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()
Dlops.h40 limit = (sdp->sd_sb.sb_bsize - BUF_OFFSET) / sizeof(__be64); in buf_limit()
48 limit = (sdp->sd_sb.sb_bsize - DATABUF_OFFSET) / (2 * sizeof(__be64)); in databuf_limit()
Dacl.h15 #define GFS2_ACL_MAX_ENTRIES(sdp) ((300 << (sdp)->sd_sb.sb_bsize_shift) >> 12)
Dfile.c347 size_t blks = (size + sdp->sd_sb.sb_bsize - 1) >> sdp->sd_sb.sb_bsize_shift; in gfs2_size_hint()
929 *len = ((loff_t)max_data - 3) << sdp->sd_sb.sb_bsize_shift; in calc_max_reserv()
947 loff_t bsize_mask = ~((loff_t)sdp->sd_sb.sb_bsize - 1); in __gfs2_fallocate()
948 loff_t next = (offset + len - 1) >> sdp->sd_sb.sb_bsize_shift; in __gfs2_fallocate()
951 next = (next + 1) << sdp->sd_sb.sb_bsize_shift; in __gfs2_fallocate()
956 bytes = sdp->sd_max_rg_data * sdp->sd_sb.sb_bsize / 2; in __gfs2_fallocate()
961 bytes = sdp->sd_sb.sb_bsize; in __gfs2_fallocate()
1019 PAGE_SIZE/sdp->sd_sb.sb_bsize); in __gfs2_fallocate()
Dquota.c700 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()
842 q.qu_warn = cpu_to_be64(fdq->d_spc_softlimit >> sdp->sd_sb.sb_bsize_shift); in gfs2_adjust_quota()
846 q.qu_limit = cpu_to_be64(fdq->d_spc_hardlimit >> sdp->sd_sb.sb_bsize_shift); in gfs2_adjust_quota()
850 q.qu_value = cpu_to_be64(fdq->d_space >> sdp->sd_sb.sb_bsize_shift); in gfs2_adjust_quota()
1342 unsigned int blocks = size >> sdp->sd_sb.sb_bsize_shift; in gfs2_quota_init()
1639 fdq->d_spc_hardlimit = be64_to_cpu(qlvb->qb_limit) << sdp->sd_sb.sb_bsize_shift; in gfs2_get_dqblk()
1640 fdq->d_spc_softlimit = be64_to_cpu(qlvb->qb_warn) << sdp->sd_sb.sb_bsize_shift; in gfs2_get_dqblk()
1641 fdq->d_space = be64_to_cpu(qlvb->qb_value) << sdp->sd_sb.sb_bsize_shift; in gfs2_get_dqblk()
1698 ((fdq->d_spc_softlimit >> sdp->sd_sb.sb_bsize_shift) == be64_to_cpu(qd->qd_qb.qb_warn))) in gfs2_set_dqblk()
[all …]
Dmeta_io.c126 shift = PAGE_SHIFT - sdp->sd_sb.sb_bsize_shift; in gfs2_getbuf()
145 create_empty_buffers(page, sdp->sd_sb.sb_bsize, 0); in gfs2_getbuf()
442 sdp->sd_sb.sb_bsize_shift; in gfs2_meta_ra()
Dbmap.h40 *data_blocks = (len >> sdp->sd_sb.sb_bsize_shift) + 3; in gfs2_write_calc_reserv()
Dlog.c56 first = (sdp->sd_sb.sb_bsize - sizeof(struct gfs2_log_descriptor)) / ssize; in gfs2_struct2blk()
59 second = (sdp->sd_sb.sb_bsize - in gfs2_struct2blk()
629 int max_revokes = (sdp->sd_sb.sb_bsize - sizeof(struct gfs2_log_descriptor)) / sizeof(u64); in gfs2_write_revokes()
646 max_revokes += (sdp->sd_sb.sb_bsize - sizeof(struct gfs2_meta_header)) / sizeof(u64); in gfs2_write_revokes()
Dincore.h703 struct gfs2_sb_host sd_sb; member
881 return GFS2_SB(&ip->i_inode)->sd_sb.sb_bsize - sizeof(struct gfs2_dinode); in gfs2_max_stuffed_size()
Dglops.c120 …unsigned int max_revokes = (sdp->sd_sb.sb_bsize - sizeof(struct gfs2_log_descriptor)) / sizeof(u64… in gfs2_ail_flush()
127 max_revokes += (sdp->sd_sb.sb_bsize - sizeof(struct gfs2_meta_header)) / sizeof(u64); in gfs2_ail_flush()
Dbmap.c903 while ((lblock + 1) * sdp->sd_sb.sb_bsize > sdp->sd_heightsize[height]) in gfs2_iomap_get()
1753 unsigned int bsize_shift = sdp->sd_sb.sb_bsize_shift; in punch_hole()
2287 unsigned int shift = sdp->sd_sb.sb_bsize_shift; in gfs2_map_journal_extents()
2353 shift = sdp->sd_sb.sb_bsize_shift; in gfs2_write_alloc_required()
2355 end_of_file = (i_size_read(&ip->i_inode) + sdp->sd_sb.sb_bsize - 1) >> shift; in gfs2_write_alloc_required()
2357 lblock_stop = (offset + len + sdp->sd_sb.sb_bsize - 1) >> shift; in gfs2_write_alloc_required()
Ddir.c194 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()
981 i_size_write(inode, sdp->sd_sb.sb_bsize / 2); in dir_make_exhash()
Dlops.c635 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()
Drgrp.c797 bytes = sdp->sd_sb.sb_bsize - sizeof(struct gfs2_rgrp); in compute_bitstructs()
811 bytes = sdp->sd_sb.sb_bsize - in compute_bitstructs()
901 const unsigned bsize = sdp->sd_sb.sb_bsize; in read_rindex_entry()
1390 unsigned bs_shift = sdp->sd_sb.sb_bsize_shift; in gfs2_fitrim()
1410 minlen = max_t(u64, r.minlen, sdp->sd_sb.sb_bsize); in gfs2_fitrim()
Dsuper.c365 jd->jd_blocks = size >> sdp->sd_sb.sb_bsize_shift; in gfs2_jdesc_check()
1218 buf->f_bsize = sdp->sd_sb.sb_bsize; in gfs2_statfs()