Home
last modified time | relevance | path

Searched refs:left (Results 1 – 25 of 39) sorted by relevance

12

/fs/quota/
Dkqid.c13 bool qid_eq(struct kqid left, struct kqid right) in qid_eq() argument
15 if (left.type != right.type) in qid_eq()
17 switch(left.type) { in qid_eq()
19 return uid_eq(left.uid, right.uid); in qid_eq()
21 return gid_eq(left.gid, right.gid); in qid_eq()
23 return projid_eq(left.projid, right.projid); in qid_eq()
37 bool qid_lt(struct kqid left, struct kqid right) in qid_lt() argument
39 if (left.type < right.type) in qid_lt()
41 if (left.type > right.type) in qid_lt()
43 switch (left.type) { in qid_lt()
[all …]
/fs/unicode/
Dmkutf8data.c367 void *left; member
401 node = node->left; in lookup()
403 leaf = node->left; in lookup()
442 node->left, node->right, in tree_walk()
445 if (!(node->left && node->right)) in tree_walk()
453 assert(node->left); in tree_walk()
454 tree->leaf_print(node->left, in tree_walk()
457 } else if (node->left) { in tree_walk()
460 node = node->left; in tree_walk()
498 node->left = node->right = NULL; in alloc_node()
[all …]
/fs/xfs/
Dxfs_bio_io.c22 unsigned int left = count; in xfs_rw_bdev() local
29 bio = bio_alloc(GFP_KERNEL, bio_max_vecs(left)); in xfs_rw_bdev()
37 unsigned int len = min_t(unsigned, left, PAGE_SIZE - off); in xfs_rw_bdev()
42 bio = bio_alloc(GFP_KERNEL, bio_max_vecs(left)); in xfs_rw_bdev()
52 left -= len; in xfs_rw_bdev()
53 } while (left > 0); in xfs_rw_bdev()
/fs/orangefs/
Dorangefs-bufmap.c83 long left = slot_timeout_secs * HZ; in wait_for_free() local
87 long n = left, t; in wait_for_free()
104 if (unlikely(!t) && n != left && m->c < 0) in wait_for_free()
105 left = t; in wait_for_free()
107 left = t + (left - n); in wait_for_free()
109 left = -EINTR; in wait_for_free()
110 } while (left > 0); in wait_for_free()
114 else if (left <= 0 && waitqueue_active(&m->q)) in wait_for_free()
118 if (likely(left > 0)) in wait_for_free()
121 return left < 0 ? -EINTR : -ETIMEDOUT; in wait_for_free()
/fs/btrfs/
Dctree.c1853 struct extent_buffer *left = NULL; in balance_level() local
1927 left = btrfs_read_node_slot(parent, pslot - 1); in balance_level()
1928 if (IS_ERR(left)) in balance_level()
1929 left = NULL; in balance_level()
1931 if (left) { in balance_level()
1932 btrfs_tree_lock(left); in balance_level()
1933 btrfs_set_lock_blocking_write(left); in balance_level()
1934 wret = btrfs_cow_block(trans, root, left, in balance_level()
1935 parent, pslot - 1, &left); in balance_level()
1958 if (left) { in balance_level()
[all …]
/fs/xfs/libxfs/
Dxfs_refcount.c389 struct xfs_refcount_irec *left, in xfs_refcount_merge_center_extents() argument
399 cur->bc_private.a.agno, left, center, right); in xfs_refcount_merge_center_extents()
429 error = xfs_refcount_lookup_le(cur, left->rc_startblock, in xfs_refcount_merge_center_extents()
435 left->rc_blockcount = extlen; in xfs_refcount_merge_center_extents()
436 error = xfs_refcount_update(cur, left); in xfs_refcount_merge_center_extents()
455 struct xfs_refcount_irec *left, in xfs_refcount_merge_left_extent() argument
464 cur->bc_private.a.agno, left, cleft); in xfs_refcount_merge_left_extent()
483 error = xfs_refcount_lookup_le(cur, left->rc_startblock, in xfs_refcount_merge_left_extent()
489 left->rc_blockcount += cleft->rc_blockcount; in xfs_refcount_merge_left_extent()
490 error = xfs_refcount_update(cur, left); in xfs_refcount_merge_left_extent()
[all …]
Dxfs_btree.c911 xfs_fsblock_t left = be64_to_cpu(block->bb_u.l.bb_leftsib); in xfs_btree_readahead_lblock() local
914 if ((lr & XFS_BTCUR_LEFTRA) && left != NULLFSBLOCK) { in xfs_btree_readahead_lblock()
915 xfs_btree_reada_bufl(cur->bc_mp, left, 1, in xfs_btree_readahead_lblock()
936 xfs_agblock_t left = be32_to_cpu(block->bb_u.s.bb_leftsib); in xfs_btree_readahead_sblock() local
940 if ((lr & XFS_BTCUR_LEFTRA) && left != NULLAGBLOCK) { in xfs_btree_readahead_sblock()
942 left, 1, cur->bc_ops->buf_ops); in xfs_btree_readahead_sblock()
2297 struct xfs_btree_block *left; /* left btree block */ in xfs_btree_lshift() local
2336 error = xfs_btree_read_buf_block(cur, &lptr, 0, &left, &lbp); in xfs_btree_lshift()
2341 lrecs = xfs_btree_get_numrecs(left); in xfs_btree_lshift()
2367 lkp = xfs_btree_key_addr(cur, lrecs, left); in xfs_btree_lshift()
[all …]
Dxfs_bmap.c2513 xfs_bmbt_irec_t left; /* left neighbor extent entry */ in xfs_bmap_add_extent_hole_delay() local
2526 if (xfs_iext_peek_prev_extent(ifp, icur, &left)) { in xfs_bmap_add_extent_hole_delay()
2528 if (isnullstartblock(left.br_startblock)) in xfs_bmap_add_extent_hole_delay()
2547 left.br_startoff + left.br_blockcount == new->br_startoff && in xfs_bmap_add_extent_hole_delay()
2548 left.br_blockcount + new->br_blockcount <= MAXEXTLEN) in xfs_bmap_add_extent_hole_delay()
2555 (left.br_blockcount + new->br_blockcount + in xfs_bmap_add_extent_hole_delay()
2569 temp = left.br_blockcount + new->br_blockcount + in xfs_bmap_add_extent_hole_delay()
2572 oldlen = startblockval(left.br_startblock) + in xfs_bmap_add_extent_hole_delay()
2577 left.br_startblock = nullstartblock(newlen); in xfs_bmap_add_extent_hole_delay()
2578 left.br_blockcount = temp; in xfs_bmap_add_extent_hole_delay()
[all …]
/fs/dlm/
Ddir.c86 int left; in dlm_recover_directory() local
103 left = ls->ls_recover_buf->rc_header.h_length; in dlm_recover_directory()
104 left -= sizeof(struct dlm_rcom); in dlm_recover_directory()
110 if (left < sizeof(__be16)) in dlm_recover_directory()
116 left -= sizeof(__be16); in dlm_recover_directory()
127 if (namelen > left) in dlm_recover_directory()
178 left -= namelen; in dlm_recover_directory()
/fs/nfs/blocklayout/
Dextent_tree.c97 struct pnfs_block_extent *left = ext_tree_prev(be); in ext_try_to_merge_left() local
99 if (left && ext_can_merge(left, be)) { in ext_try_to_merge_left()
100 left->be_length += be->be_length; in ext_try_to_merge_left()
104 return left; in ext_try_to_merge_left()
433 struct pnfs_block_extent *left = ext_tree_prev(be); in ext_tree_mark_written() local
435 if (left && ext_can_merge(left, be)) { in ext_tree_mark_written()
438 left->be_length += diff; in ext_tree_mark_written()
/fs/ntfs/
Drunlist.c274 bool left = false; /* Left end of @src needs merging. */ in ntfs_rl_insert() local
290 left = ntfs_are_rl_mergeable(dst + loc - 1, src); in ntfs_rl_insert()
293 if (left) in ntfs_rl_insert()
302 dst = ntfs_rl_realloc(dst, dsize, dsize + ssize - left + disc); in ntfs_rl_insert()
309 if (left) in ntfs_rl_insert()
318 marker = loc + ssize - left + disc; in ntfs_rl_insert()
322 ntfs_rl_mc(dst, loc + disc, src, left, ssize - left); in ntfs_rl_insert()
371 bool left = false; /* Left end of @src needs merging. */ in ntfs_rl_replace() local
383 left = ntfs_are_rl_mergeable(dst + loc - 1, src); in ntfs_rl_replace()
388 delta = ssize - 1 - left - right; in ntfs_rl_replace()
[all …]
/fs/ocfs2/
Dlocalalloc.c829 int numfound = 0, bitoff, left, startoff; in ocfs2_local_alloc_find_clear_bits() local
867 left = le32_to_cpu(alloc->id1.bitmap1.i_total); in ocfs2_local_alloc_find_clear_bits()
868 while ((bitoff = ocfs2_find_next_zero_bit(bitmap, left, startoff)) != -1) { in ocfs2_local_alloc_find_clear_bits()
869 if (bitoff == left) { in ocfs2_local_alloc_find_clear_bits()
956 int bit_off, left, count, start; in ocfs2_sync_local_to_main() local
979 left = le32_to_cpu(alloc->id1.bitmap1.i_total); in ocfs2_sync_local_to_main()
981 while ((bit_off = ocfs2_find_next_zero_bit(bitmap, left, start)) in ocfs2_sync_local_to_main()
983 if ((bit_off < left) && (bit_off == start)) { in ocfs2_sync_local_to_main()
1007 if (bit_off >= left) in ocfs2_sync_local_to_main()
/fs/nilfs2/
Dbtree.c182 static void nilfs_btree_node_move_left(struct nilfs_btree_node *left, in nilfs_btree_node_move_left() argument
190 ldkeys = nilfs_btree_node_dkeys(left); in nilfs_btree_node_move_left()
191 ldptrs = nilfs_btree_node_dptrs(left, lncmax); in nilfs_btree_node_move_left()
192 lnchildren = nilfs_btree_node_get_nchildren(left); in nilfs_btree_node_move_left()
205 nilfs_btree_node_set_nchildren(left, lnchildren); in nilfs_btree_node_move_left()
210 static void nilfs_btree_node_move_right(struct nilfs_btree_node *left, in nilfs_btree_node_move_right() argument
218 ldkeys = nilfs_btree_node_dkeys(left); in nilfs_btree_node_move_right()
219 ldptrs = nilfs_btree_node_dptrs(left, lncmax); in nilfs_btree_node_move_right()
220 lnchildren = nilfs_btree_node_get_nchildren(left); in nilfs_btree_node_move_right()
233 nilfs_btree_node_set_nchildren(left, lnchildren); in nilfs_btree_node_move_right()
[all …]
/fs/minix/
Ditree_common.c153 int left; in get_block() local
190 left = (chain + depth) - partial; in get_block()
191 err = alloc_branch(inode, left, offsets+(partial-chain), partial); in get_block()
195 if (splice_branch(inode, chain, partial, left) < 0) in get_block()
/fs/befs/
Dbefs_fs_types.h241 fs64 left; member
249 befs_off_t left; member
Dbtree.c214 node->head.left = fs64_to_cpu(sb, node->od_node->left); in befs_bt_read_node()
/fs/sysv/
Ditree.c210 int left; in get_block() local
250 left = (chain + depth) - partial; in get_block()
251 err = alloc_branch(inode, left, offsets+(partial-chain), partial); in get_block()
255 if (splice_branch(inode, chain, partial, left) < 0) in get_block()
/fs/
Dsplice.c702 size_t left; in iter_file_splice_write() local
721 left = sd.total_len; in iter_file_splice_write()
722 for (n = 0, idx = pipe->curbuf; left && n < pipe->nrbufs; n++, idx++) { in iter_file_splice_write()
726 if (this_len > left) in iter_file_splice_write()
727 this_len = left; in iter_file_splice_write()
742 left -= this_len; in iter_file_splice_write()
745 iov_iter_bvec(&from, WRITE, array, n, sd.total_len - left); in iter_file_splice_write()
Dlocks.c1114 struct file_lock *left = NULL; in posix_lock_inode() local
1235 left = fl; in posix_lock_inode()
1277 if (right && left == right && !new_fl2) in posix_lock_inode()
1299 if (left == right) { in posix_lock_inode()
1303 left = new_fl2; in posix_lock_inode()
1305 locks_copy_lock(left, right); in posix_lock_inode()
1306 locks_insert_lock_ctx(left, &fl->fl_list); in posix_lock_inode()
1311 if (left) { in posix_lock_inode()
1312 left->fl_end = request->fl_start - 1; in posix_lock_inode()
1313 locks_wake_up_blocks(left); in posix_lock_inode()
/fs/omfs/
Dfile.c192 sector_t block, int count, int *left) in find_block() argument
206 *left = numblocks - (block - searched); in find_block()
/fs/ceph/
Dfile.c688 size_t left = ret > 0 ? ret : 0; in ceph_sync_read() local
689 while (left > 0) { in ceph_sync_read()
692 len = min_t(size_t, left, PAGE_SIZE - page_off); in ceph_sync_read()
696 left -= copied; in ceph_sync_read()
1168 size_t left; in ceph_sync_write() local
1195 left = len; in ceph_sync_write()
1197 size_t plen = min_t(size_t, left, PAGE_SIZE); in ceph_sync_write()
1203 left -= ret; in ceph_sync_write()
Ddir.c1739 int left; in ceph_read_dir() local
1773 left = copy_to_user(buf, dfi->dir_info + *ppos, size); in ceph_read_dir()
1774 if (left == size) in ceph_read_dir()
1776 *ppos += (size - left); in ceph_read_dir()
1777 return size - left; in ceph_read_dir()
/fs/reiserfs/
Dfix_node.c961 struct buffer_head *father, *left; in is_left_neighbor_in_cache() local
991 if ((left = sb_find_get_block(sb, left_neighbor_blocknr))) { in is_left_neighbor_in_cache()
993 RFALSE(buffer_uptodate(left) && !B_IS_IN_TREE(left), in is_left_neighbor_in_cache()
995 left, left); in is_left_neighbor_in_cache()
996 put_bh(left); in is_left_neighbor_in_cache()
/fs/kernfs/
Ddir.c329 static int kernfs_sd_compare(const struct kernfs_node *left, in kernfs_sd_compare() argument
332 return kernfs_name_compare(left->hash, left->name, left->ns, right); in kernfs_sd_compare()
/fs/hfs/
Dhfs.h99 __be16 left; member

12