Home
last modified time | relevance | path

Searched refs:bf (Results 1 – 9 of 9) sorted by relevance

/fs/xfs/libxfs/
Dxfs_dir2_data.c47 xfs_dir2_data_free_t *bf; /* bestfree table */ in __xfs_dir3_data_check() local
108 bf = ops->data_bestfree_p(hdr); in __xfs_dir3_data_check()
110 if (!bf[0].length) { in __xfs_dir3_data_check()
111 XFS_WANT_CORRUPTED_RETURN(mp, !bf[0].offset); in __xfs_dir3_data_check()
114 if (!bf[1].length) { in __xfs_dir3_data_check()
115 XFS_WANT_CORRUPTED_RETURN(mp, !bf[1].offset); in __xfs_dir3_data_check()
118 if (!bf[2].length) { in __xfs_dir3_data_check()
119 XFS_WANT_CORRUPTED_RETURN(mp, !bf[2].offset); in __xfs_dir3_data_check()
123 XFS_WANT_CORRUPTED_RETURN(mp, be16_to_cpu(bf[0].length) >= in __xfs_dir3_data_check()
124 be16_to_cpu(bf[1].length)); in __xfs_dir3_data_check()
[all …]
Dxfs_dir2_leaf.c393 struct xfs_dir2_data_free *bf; in xfs_dir2_block_to_leaf() local
423 bf = dp->d_ops->data_bestfree_p(hdr); in xfs_dir2_block_to_leaf()
470 bestsp[0] = bf[0].length; in xfs_dir2_block_to_leaf()
636 struct xfs_dir2_data_free *bf; /* bestfree table */ in xfs_dir2_leaf_addname() local
824 bf = dp->d_ops->data_bestfree_p(hdr); in xfs_dir2_leaf_addname()
825 bestsp[use_block] = bf[0].length; in xfs_dir2_leaf_addname()
840 bf = dp->d_ops->data_bestfree_p(hdr); in xfs_dir2_leaf_addname()
847 ((char *)hdr + be16_to_cpu(bf[0].offset)); in xfs_dir2_leaf_addname()
881 if (be16_to_cpu(bestsp[use_block]) != be16_to_cpu(bf[0].length)) { in xfs_dir2_leaf_addname()
882 bestsp[use_block] = bf[0].length; in xfs_dir2_leaf_addname()
[all …]
Dxfs_dir2_node.c1219 struct xfs_dir2_data_free *bf; /* bestfree table */ in xfs_dir2_leafn_remove() local
1262 bf = dp->d_ops->data_bestfree_p(hdr); in xfs_dir2_leafn_remove()
1263 longest = be16_to_cpu(bf[0].length); in xfs_dir2_leafn_remove()
1280 if (longest < be16_to_cpu(bf[0].length)) { in xfs_dir2_leafn_remove()
1311 longest = be16_to_cpu(bf[0].length); in xfs_dir2_leafn_remove()
1715 struct xfs_dir2_data_free *bf; in xfs_dir2_node_addname_int() local
1974 bf = dp->d_ops->data_bestfree_p(hdr); in xfs_dir2_node_addname_int()
1975 bests[findex] = bf[0].length; in xfs_dir2_node_addname_int()
1997 bf = dp->d_ops->data_bestfree_p(hdr); in xfs_dir2_node_addname_int()
2000 ASSERT(be16_to_cpu(bf[0].length) >= length); in xfs_dir2_node_addname_int()
[all …]
Dxfs_dir2_block.c183 struct xfs_dir2_data_free *bf; in xfs_dir2_block_need_space() local
189 bf = dp->d_ops->data_bestfree_p(hdr); in xfs_dir2_block_need_space()
195 if (be16_to_cpu(bf[0].length) >= len) { in xfs_dir2_block_need_space()
200 ((char *)hdr + be16_to_cpu(bf[0].offset)); in xfs_dir2_block_need_space()
248 ((char *)hdr + be16_to_cpu(bf[0].offset)); in xfs_dir2_block_need_space()
265 if (be16_to_cpu(bf[1].length) >= len) in xfs_dir2_block_need_space()
267 ((char *)hdr + be16_to_cpu(bf[1].offset)); in xfs_dir2_block_need_space()
Dxfs_dir2_priv.h56 struct xfs_dir2_data_free *bf, struct xfs_dir2_data_unused *dup,
Dxfs_dir2.h179 struct xfs_dir2_data_hdr *hdr, struct xfs_dir2_data_free *bf,
/fs/xfs/
Dxfs_ioctl.c606 xfs_flock64_t *bf) in xfs_ioc_space() argument
649 switch (bf->l_whence) { in xfs_ioc_space()
653 bf->l_start += filp->f_pos; in xfs_ioc_space()
656 bf->l_start += XFS_ISIZE(ip); in xfs_ioc_space()
675 if (bf->l_len <= 0) { in xfs_ioc_space()
681 bf->l_len = 0; in xfs_ioc_space()
685 if (bf->l_start < 0 || in xfs_ioc_space()
686 bf->l_start > inode->i_sb->s_maxbytes || in xfs_ioc_space()
687 bf->l_start + bf->l_len < 0 || in xfs_ioc_space()
688 bf->l_start + bf->l_len >= inode->i_sb->s_maxbytes) { in xfs_ioc_space()
[all …]
Dxfs_ioctl32.c46 xfs_flock64_t *bf, in xfs_compat_flock64_copyin() argument
49 if (get_user(bf->l_type, &arg32->l_type) || in xfs_compat_flock64_copyin()
50 get_user(bf->l_whence, &arg32->l_whence) || in xfs_compat_flock64_copyin()
51 get_user(bf->l_start, &arg32->l_start) || in xfs_compat_flock64_copyin()
52 get_user(bf->l_len, &arg32->l_len) || in xfs_compat_flock64_copyin()
53 get_user(bf->l_sysid, &arg32->l_sysid) || in xfs_compat_flock64_copyin()
54 get_user(bf->l_pid, &arg32->l_pid) || in xfs_compat_flock64_copyin()
55 copy_from_user(bf->l_pad, &arg32->l_pad, 4*sizeof(u32))) in xfs_compat_flock64_copyin()
583 struct xfs_flock64 bf; in xfs_file_compat_ioctl() local
585 if (xfs_compat_flock64_copyin(&bf, arg)) in xfs_file_compat_ioctl()
[all …]
Dxfs_ioctl.h25 xfs_flock64_t *bf);