Home
last modified time | relevance | path

Searched refs:XFS_LBSIZE (Results 1 – 5 of 5) sorted by relevance

/linux-2.4.37.9/fs/xfs/
Dxfs_attr_leaf.c654 tmpbuffer = kmem_alloc(XFS_LBSIZE(dp->i_mount), KM_SLEEP); in xfs_attr_leaf_to_shortform()
658 memcpy(tmpbuffer, bp->data, XFS_LBSIZE(dp->i_mount)); in xfs_attr_leaf_to_shortform()
662 memset(bp->data, 0, XFS_LBSIZE(dp->i_mount)); in xfs_attr_leaf_to_shortform()
705 kmem_free(tmpbuffer, XFS_LBSIZE(dp->i_mount)); in xfs_attr_leaf_to_shortform()
738 memcpy(bp2->data, bp1->data, XFS_LBSIZE(dp->i_mount)); in xfs_attr_leaf_to_node()
741 xfs_da_log_buf(args->trans, bp2, 0, XFS_LBSIZE(dp->i_mount) - 1); in xfs_attr_leaf_to_node()
758 xfs_da_log_buf(args->trans, bp1, 0, XFS_LBSIZE(dp->i_mount) - 1); in xfs_attr_leaf_to_node()
794 memset((char *)leaf, 0, XFS_LBSIZE(dp->i_mount)); in xfs_attr_leaf_create()
797 INT_SET(hdr->firstused, ARCH_CONVERT, XFS_LBSIZE(dp->i_mount)); in xfs_attr_leaf_create()
800 XFS_LBSIZE(dp->i_mount) - XFS_ATTR_LEAF_NAME_ALIGN); in xfs_attr_leaf_create()
[all …]
Dxfs_dir_leaf.c655 tmpbuffer = kmem_alloc(XFS_LBSIZE(dp->i_mount), KM_SLEEP); in xfs_dir_leaf_to_shortform()
663 memcpy(tmpbuffer, bp->data, XFS_LBSIZE(dp->i_mount)); in xfs_dir_leaf_to_shortform()
666 memset(bp->data, 0, XFS_LBSIZE(dp->i_mount)); in xfs_dir_leaf_to_shortform()
715 kmem_free(tmpbuffer, XFS_LBSIZE(dp->i_mount)); in xfs_dir_leaf_to_shortform()
749 memcpy(bp2->data, bp1->data, XFS_LBSIZE(dp->i_mount)); in xfs_dir_leaf_to_node()
751 xfs_da_log_buf(args->trans, bp2, 0, XFS_LBSIZE(dp->i_mount) - 1); in xfs_dir_leaf_to_node()
800 memset((char *)leaf, 0, XFS_LBSIZE(dp->i_mount)); in xfs_dir_leaf_create()
803 INT_SET(hdr->firstused, ARCH_CONVERT, XFS_LBSIZE(dp->i_mount)); in xfs_dir_leaf_create()
805 INT_SET(hdr->firstused, ARCH_CONVERT, XFS_LBSIZE(dp->i_mount) - 1); in xfs_dir_leaf_create()
809 xfs_da_log_buf(args->trans, bp, 0, XFS_LBSIZE(dp->i_mount) - 1); in xfs_dir_leaf_create()
[all …]
Dxfs_da_btree.h100 #define XFS_LBSIZE(mp) xfs_lbsize(mp) macro
102 #define XFS_LBSIZE(mp) ((mp)->m_sb.sb_blocksize) macro
Dxfs_dir.c197 leafcount = (XFS_LBSIZE(mp) - (uint)sizeof(xfs_dir_leaf_hdr_t)) / in xfs_dir_mount()
204 (XFS_LBSIZE(mp) - (uint)sizeof(xfs_da_node_hdr_t)) / in xfs_dir_mount()
206 mp->m_dir_magicpct = (XFS_LBSIZE(mp) * 37) / 100; in xfs_dir_mount()
Dxfs_macros.c1858 return XFS_LBSIZE(mp); in xfs_lbsize()