Home
last modified time | relevance | path

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

/fs/xfs/libxfs/
Dxfs_dir2_data.c22 struct xfs_dir2_data_hdr *hdr, struct xfs_dir2_data_free *bf,
37 xfs_dir2_data_free_t *bf; /* bestfree table */ in __xfs_dir3_data_check() local
106 bf = ops->data_bestfree_p(hdr); in __xfs_dir3_data_check()
108 if (!bf[0].length) { in __xfs_dir3_data_check()
109 if (bf[0].offset) in __xfs_dir3_data_check()
113 if (!bf[1].length) { in __xfs_dir3_data_check()
114 if (bf[1].offset) in __xfs_dir3_data_check()
118 if (!bf[2].length) { in __xfs_dir3_data_check()
119 if (bf[2].offset) in __xfs_dir3_data_check()
124 if (be16_to_cpu(bf[0].length) < be16_to_cpu(bf[1].length)) in __xfs_dir3_data_check()
[all …]
Dxfs_dir2_leaf.c348 struct xfs_dir2_data_free *bf; in xfs_dir2_block_to_leaf() local
378 bf = dp->d_ops->data_bestfree_p(hdr); in xfs_dir2_block_to_leaf()
425 bestsp[0] = bf[0].length; in xfs_dir2_block_to_leaf()
579 struct xfs_dir2_data_free *bf; /* bestfree table */ in xfs_dir2_leaf_addname() local
776 bf = dp->d_ops->data_bestfree_p(hdr); in xfs_dir2_leaf_addname()
777 bestsp[use_block] = bf[0].length; in xfs_dir2_leaf_addname()
792 bf = dp->d_ops->data_bestfree_p(hdr); in xfs_dir2_leaf_addname()
799 ((char *)hdr + be16_to_cpu(bf[0].offset)); in xfs_dir2_leaf_addname()
836 if (be16_to_cpu(bestsp[use_block]) != be16_to_cpu(bf[0].length)) { in xfs_dir2_leaf_addname()
837 bestsp[use_block] = bf[0].length; in xfs_dir2_leaf_addname()
[all …]
Dxfs_dir2_node.c1216 struct xfs_dir2_data_free *bf; /* bestfree table */ in xfs_dir2_leafn_remove() local
1259 bf = dp->d_ops->data_bestfree_p(hdr); in xfs_dir2_leafn_remove()
1260 longest = be16_to_cpu(bf[0].length); in xfs_dir2_leafn_remove()
1277 if (longest < be16_to_cpu(bf[0].length)) { in xfs_dir2_leafn_remove()
1308 longest = be16_to_cpu(bf[0].length); in xfs_dir2_leafn_remove()
1628 struct xfs_dir2_data_free *bf; in xfs_dir2_node_add_datablk() local
1726 bf = dp->d_ops->data_bestfree_p(hdr); in xfs_dir2_node_add_datablk()
1727 bests[*findex] = bf[0].length; in xfs_dir2_node_add_datablk()
1855 struct xfs_dir2_data_free *bf; in xfs_dir2_node_addname_int() local
1908 bf = dp->d_ops->data_bestfree_p(hdr); in xfs_dir2_node_addname_int()
[all …]
Dxfs_dir2_block.c169 struct xfs_dir2_data_free *bf; in xfs_dir2_block_need_space() local
175 bf = dp->d_ops->data_bestfree_p(hdr); in xfs_dir2_block_need_space()
181 if (be16_to_cpu(bf[0].length) >= len) { in xfs_dir2_block_need_space()
186 ((char *)hdr + be16_to_cpu(bf[0].offset)); in xfs_dir2_block_need_space()
234 ((char *)hdr + be16_to_cpu(bf[0].offset)); in xfs_dir2_block_need_space()
251 if (be16_to_cpu(bf[1].length) >= len) in xfs_dir2_block_need_space()
253 ((char *)hdr + be16_to_cpu(bf[1].offset)); in xfs_dir2_block_need_space()
Dxfs_dir2_priv.h44 struct xfs_dir2_data_free *bf, struct xfs_dir2_data_unused *dup,
Dxfs_dir2.h166 struct xfs_dir2_data_hdr *hdr, struct xfs_dir2_data_free *bf,
/fs/incfs/
Ddata_mgmt.c86 struct data_file *incfs_open_data_file(struct mount_info *mi, struct file *bf) in incfs_open_data_file() argument
95 if (!bf || !mi) in incfs_open_data_file()
98 if (!S_ISREG(bf->f_inode->i_mode)) in incfs_open_data_file()
101 bfc = incfs_alloc_bfc(bf); in incfs_open_data_file()
182 struct dir_file *incfs_open_dir_file(struct mount_info *mi, struct file *bf) in incfs_open_dir_file() argument
186 if (!S_ISDIR(bf->f_inode->i_mode)) in incfs_open_dir_file()
193 dir->backing_dir = get_file(bf); in incfs_open_dir_file()
246 static int validate_hash_tree(struct file *bf, struct data_file *df, in validate_hash_tree() argument
283 ssize_t read_res = incfs_kread(bf, buf, in validate_hash_tree()
323 static int revalidate_signature(struct file *bf, struct data_file *df) in revalidate_signature() argument
[all …]
Ddata_mgmt.h218 struct data_file *incfs_open_data_file(struct mount_info *mi, struct file *bf);
223 struct dir_file *incfs_open_dir_file(struct mount_info *mi, struct file *bf);
/fs/xfs/
Dxfs_ioctl32.c32 xfs_flock64_t *bf, in xfs_compat_flock64_copyin() argument
35 if (get_user(bf->l_type, &arg32->l_type) || in xfs_compat_flock64_copyin()
36 get_user(bf->l_whence, &arg32->l_whence) || in xfs_compat_flock64_copyin()
37 get_user(bf->l_start, &arg32->l_start) || in xfs_compat_flock64_copyin()
38 get_user(bf->l_len, &arg32->l_len) || in xfs_compat_flock64_copyin()
39 get_user(bf->l_sysid, &arg32->l_sysid) || in xfs_compat_flock64_copyin()
40 get_user(bf->l_pid, &arg32->l_pid) || in xfs_compat_flock64_copyin()
41 copy_from_user(bf->l_pad, &arg32->l_pad, 4*sizeof(u32))) in xfs_compat_flock64_copyin()
566 struct xfs_flock64 bf; in xfs_file_compat_ioctl() local
568 if (xfs_compat_flock64_copyin(&bf, arg)) in xfs_file_compat_ioctl()
[all …]
Dxfs_ioctl.c592 xfs_flock64_t *bf) in xfs_ioc_space() argument
624 switch (bf->l_whence) { in xfs_ioc_space()
628 bf->l_start += filp->f_pos; in xfs_ioc_space()
631 bf->l_start += XFS_ISIZE(ip); in xfs_ioc_space()
650 if (bf->l_len <= 0) { in xfs_ioc_space()
656 bf->l_len = 0; in xfs_ioc_space()
660 if (bf->l_start < 0 || in xfs_ioc_space()
661 bf->l_start > inode->i_sb->s_maxbytes || in xfs_ioc_space()
662 bf->l_start + bf->l_len < 0 || in xfs_ioc_space()
663 bf->l_start + bf->l_len >= inode->i_sb->s_maxbytes) { in xfs_ioc_space()
[all …]
Dxfs_ioctl.h13 xfs_flock64_t *bf);
/fs/xfs/scrub/
Ddir.c290 struct xfs_dir2_data_free *bf, in xchk_directory_check_free_entry() argument
299 if (dup_length < be16_to_cpu(bf[XFS_DIR2_DATA_FD_COUNT - 1].length)) in xchk_directory_check_free_entry()
302 for (dfp = &bf[XFS_DIR2_DATA_FD_COUNT - 1]; dfp >= bf; dfp--) in xchk_directory_check_free_entry()
320 struct xfs_dir2_data_free *bf; in xchk_directory_data_bestfree() local
354 bf = d_ops->data_bestfree_p(bp->b_addr); in xchk_directory_data_bestfree()
356 for (dfp = &bf[0]; dfp < &bf[XFS_DIR2_DATA_FD_COUNT]; dfp++) { in xchk_directory_data_bestfree()
418 xchk_directory_check_free_entry(sc, lblk, bf, dup); in xchk_directory_data_bestfree()
/fs/ocfs2/
Dalloc.c6660 struct ocfs2_cached_block_free *bf; in ocfs2_reuse_blk_from_dealloc() local
6688 bf = fl->f_first; in ocfs2_reuse_blk_from_dealloc()
6689 fl->f_first = bf->free_next; in ocfs2_reuse_blk_from_dealloc()
6691 new_eb_bh[i] = sb_getblk(osb->sb, bf->free_blk); in ocfs2_reuse_blk_from_dealloc()
6700 bf->free_blk, osb->slot_num, real_slot); in ocfs2_reuse_blk_from_dealloc()
6719 eb->h_blkno = cpu_to_le64(bf->free_blk); in ocfs2_reuse_blk_from_dealloc()
6722 eb->h_suballoc_loc = cpu_to_le64(bf->free_bg); in ocfs2_reuse_blk_from_dealloc()
6723 eb->h_suballoc_bit = cpu_to_le16(bf->free_bit); in ocfs2_reuse_blk_from_dealloc()
6736 kfree(bf); in ocfs2_reuse_blk_from_dealloc()