Home
last modified time | relevance | path

Searched refs:m_dirblksize (Results 1 – 11 of 11) sorted by relevance

/fs/xfs/
Dxfs_dir2_format.h361 return (mp->m_dirblksize - (uint)sizeof(struct xfs_dir2_leaf_hdr)) / in xfs_dir2_max_leaf_ents()
372 ((char *)lp + mp->m_dirblksize - in xfs_dir2_leaf_tail_p()
525 return (mp->m_dirblksize - sizeof(struct xfs_dir2_free_hdr)) / in xfs_dir2_free_max_bests()
585 ((char *)hdr + mp->m_dirblksize)) - 1; in xfs_dir2_block_tail_p()
Dxfs_dir2_leaf.c123 (xfs_dir2_data_aoff_t)((char *)hdr + mp->m_dirblksize - in xfs_dir2_block_to_leaf()
818 map_size = howmany(bufsize + mp->m_dirblksize, mp->m_sb.sb_blocksize); in xfs_dir2_leaf_getdents()
843 if (!bp || ptr >= (char *)bp->data + mp->m_dirblksize) { in xfs_dir2_leaf_getdents()
875 ra_want = howmany(bufsize + mp->m_dirblksize, in xfs_dir2_leaf_getdents()
986 (int)BTOBB(mp->m_dirblksize)); in xfs_dir2_leaf_getdents()
1077 if (ptr >= (char *)hdr + mp->m_dirblksize) { in xfs_dir2_leaf_getdents()
1265 (uint)(mp->m_dirblksize - 1)); in xfs_dir2_leaf_log_tail()
1536 mp->m_dirblksize - (uint)sizeof(*hdr)) { in xfs_dir2_leaf_removename()
1735 mp->m_dirblksize - (uint)sizeof(*hdr)); in xfs_dir2_leaf_trim_data()
1839 if (XFS_FSB_TO_B(mp, fo) > XFS_DIR2_LEAF_OFFSET + mp->m_dirblksize) in xfs_dir2_node_to_leaf()
[all …]
Dxfs_dir2.c97 mp->m_dirblksize = 1 << (mp->m_sb.sb_blocklog + mp->m_sb.sb_dirblklog); in xfs_dir_mount()
106 (mp->m_dirblksize - (uint)sizeof(xfs_da_node_hdr_t)) / in xfs_dir_mount()
108 mp->m_dir_magicpct = (mp->m_dirblksize * 37) / 100; in xfs_dir_mount()
561 rval = XFS_FSB_TO_B(mp, last) == mp->m_dirblksize; in xfs_dir2_isblock()
562 ASSERT(rval == 0 || dp->i_d.di_size == mp->m_dirblksize); in xfs_dir2_isblock()
Dxfs_dir2_data.c79 endp = (char *)hdr + mp->m_dirblksize; in xfs_dir2_data_check()
358 endp = (char *)hdr + mp->m_dirblksize; in xfs_dir2_data_freescan()
435 t = mp->m_dirblksize - (uint)sizeof(*hdr); in xfs_dir2_data_init()
541 endptr = (char *)hdr + mp->m_dirblksize; in xfs_dir2_data_make_free()
Dxfs_dir2_block.c911 while (dp->i_d.di_size > mp->m_dirblksize) { in xfs_dir2_leaf_to_block()
914 mp->m_dirblksize - (uint)sizeof(*hdr)) { in xfs_dir2_leaf_to_block()
942 tagp = (__be16 *)((char *)hdr + mp->m_dirblksize) - 1; in xfs_dir2_leaf_to_block()
961 xfs_dir2_data_use_free(tp, dbp, dup, mp->m_dirblksize - size, size, in xfs_dir2_leaf_to_block()
1105 xfs_dir2_data_use_free(tp, bp, dup, mp->m_dirblksize - i, i, &needlog, in xfs_dir2_sf_to_block()
Dxfs_dir2_sf.c252 hdr = kmem_alloc(mp->m_dirblksize, KM_SLEEP); in xfs_dir2_block_to_sf()
253 memcpy(hdr, bp->data, mp->m_dirblksize); in xfs_dir2_block_to_sf()
648 if (used + (holefit ? 0 : size) > mp->m_dirblksize) in xfs_dir2_sf_addname_pick()
663 if (used + size > mp->m_dirblksize) in xfs_dir2_sf_addname_pick()
712 dp->i_mount->m_dirblksize); in xfs_dir2_sf_check()
Dxfs_dir2_node.c148 ASSERT(be32_to_cpu(ltp->bestcount) <= (uint)dp->i_d.di_size / mp->m_dirblksize); in xfs_dir2_leaf_to_node()
938 if (longest == mp->m_dirblksize - (uint)sizeof(*hdr)) { in xfs_dir2_leafn_remove()
1297 state->blocksize = state->mp->m_dirblksize; in xfs_dir2_node_addname()
1753 state->blocksize = state->mp->m_dirblksize; in xfs_dir2_node_lookup()
1807 state->blocksize = state->mp->m_dirblksize; in xfs_dir2_node_removename()
1877 state->blocksize = state->mp->m_dirblksize; in xfs_dir2_node_replace()
Dxfs_mount.h190 int m_dirblksize; /* directory block sz--bytes */ member
Dxfs_fsops.c107 geo->dirblocksize = mp->m_dirblksize; in xfs_fs_geometry()
Dxfs_trans.c443 mp->m_dirblksize + in xfs_calc_addafork_reservation()
Dxfs_da_btree.c1748 memcpy(dead_buf->data, last_buf->data, mp->m_dirblksize); in xfs_da_swap_lastblock()
1749 xfs_da_log_buf(tp, dead_buf, 0, mp->m_dirblksize - 1); in xfs_da_swap_lastblock()