Home
last modified time | relevance | path

Searched refs:step (Results 1 – 12 of 12) sorted by relevance

/fs/bcachefs/
A Dtime_stats.c49 if (unlikely(!e->step)) { in quantiles_update()
51 e->step = max_t(unsigned, v / 2, 1024); in quantiles_update()
53 e->m = e->m >= e->step in quantiles_update()
54 ? e->m - e->step in quantiles_update()
57 e->m = e->m + e->step > e->m in quantiles_update()
58 ? e->m + e->step in quantiles_update()
62 if ((e->m > v ? e->m - v : v - e->m) < e->step) in quantiles_update()
63 e->step = max_t(unsigned, e->step / 2, 1); in quantiles_update()
A Dtime_stats.h58 u64 step; member
/fs/xfs/scrub/
A Ddirtree_repair.c102 struct xchk_dirpath_step step; in xrep_dirpath_retain_parent() local
105 error = xfarray_load(dl->path_steps, path->first_step, &step); in xrep_dirpath_retain_parent()
109 dl->parent_ino = be64_to_cpu(step.pptr_rec.p_ino); in xrep_dirpath_retain_parent()
265 struct xchk_dirpath_step *step) in xrep_dirtree_prep_path() argument
274 step->name_len); in xrep_dirtree_prep_path()
278 dl->pptr_rec = step->pptr_rec; /* struct copy */ in xrep_dirtree_prep_path()
382 struct xchk_dirpath_step *step) in xrep_dirtree_unlink() argument
402 resblks = xfs_remove_space_res(mp, step->name_len); in xrep_dirtree_unlink()
507 struct xchk_dirpath_step step; in xrep_dirtree_delete_path() local
518 error = xrep_dirtree_prep_path(dl, path, &step); in xrep_dirtree_delete_path()
[all …]
A Ddirtree.c162 struct xchk_dirpath_step step = { in xchk_dirpath_append() local
183 error = xfarray_append(dl->path_steps, &step); in xchk_dirpath_append()
601 struct xchk_dirpath_step step; in xchk_dirpath_step_is_stale() local
605 error = xfarray_load(dl->path_steps, step_idx, &step); in xchk_dirpath_step_is_stale()
608 *cursor = be64_to_cpu(step.pptr_rec.p_ino); in xchk_dirpath_step_is_stale()
621 if (p->name->len != step.name_len) in xchk_dirpath_step_is_stale()
624 error = xfblob_loadname(dl->path_names, step.name_cookie, in xchk_dirpath_step_is_stale()
625 &dl->hook_xname, step.name_len); in xchk_dirpath_step_is_stale()
763 struct xchk_dirpath_step step; in xchk_dirtree_load_path() local
771 step.name_len); in xchk_dirtree_load_path()
[all …]
A Dxfarray.c658 xfarray_idx_t step = (hi - lo) / (XFARRAY_QSORT_PIVOT_NR - 1); in xfarray_qsort_pivot() local
663 ASSERT(step > 0); in xfarray_qsort_pivot()
673 *idxp = lo + (i * step); in xfarray_qsort_pivot()
/fs/exfat/
A Ddir.c1018 step = DIRENT_STEP_FILE; in exfat_find_dir_entry()
1038 step = DIRENT_STEP_FILE; in exfat_find_dir_entry()
1053 step = DIRENT_STEP_FILE; in exfat_find_dir_entry()
1057 step = DIRENT_STEP_STRM; in exfat_find_dir_entry()
1066 step = DIRENT_STEP_FILE; in exfat_find_dir_entry()
1070 step = DIRENT_STEP_FILE; in exfat_find_dir_entry()
1076 step = DIRENT_STEP_NAME; in exfat_find_dir_entry()
1090 step = DIRENT_STEP_FILE; in exfat_find_dir_entry()
1107 step = DIRENT_STEP_FILE; in exfat_find_dir_entry()
1111 step = DIRENT_STEP_SECD; in exfat_find_dir_entry()
[all …]
/fs/ceph/
A Ddir.c207 u64 step = count >> 1; in __dcache_readdir() local
208 dentry = __dcache_find_get_entry(parent, idx + step, in __dcache_readdir()
222 idx += step + 1; in __dcache_readdir()
223 count -= step + 1; in __dcache_readdir()
225 count = step; in __dcache_readdir()
531 int step, nr = rinfo->dir_nr; in ceph_readdir() local
533 step = nr >> 1; in ceph_readdir()
534 if (rinfo->dir_entries[i + step].offset < ctx->pos) { in ceph_readdir()
535 i += step + 1; in ceph_readdir()
536 nr -= step + 1; in ceph_readdir()
[all …]
/fs/xfs/
A Dxfs_rtalloc.c805 xfs_rfsblock_t step; in xfs_growfs_rt_nrblocks() local
807 step = (bmbno + 1) * mp->m_rtx_per_rbmblock * rextsize; in xfs_growfs_rt_nrblocks()
811 step = min(rgblocks, step) + rgblocks * rtg_rgno(rtg); in xfs_growfs_rt_nrblocks()
814 return min(nrblocks, step); in xfs_growfs_rt_nrblocks()
/fs/f2fs/
A Dnode.c2030 int step = 0; in f2fs_sync_node_pages() local
2062 if (step == 0 && IS_DNODE(folio)) in f2fs_sync_node_pages()
2064 if (step == 1 && (!IS_DNODE(folio) || in f2fs_sync_node_pages()
2067 if (step == 2 && (!IS_DNODE(folio) || in f2fs_sync_node_pages()
2127 step = 2; in f2fs_sync_node_pages()
2132 if (step < 2) { in f2fs_sync_node_pages()
2134 wbc->sync_mode == WB_SYNC_NONE && step == 1) in f2fs_sync_node_pages()
2136 step++; in f2fs_sync_node_pages()
/fs/
A Dbinfmt_elf.c717 size_t o, step; in parse_elf_property() local
739 step = round_up(pr->pr_datasz, ELF_GNU_PROPERTY_ALIGN); in parse_elf_property()
740 if (step > datasz) in parse_elf_property()
753 *off = o + step; in parse_elf_property()
/fs/ntfs3/
A Dattrib.c900 int step = 0; in attr_data_get_block() local
1071 step = 1; in attr_data_get_block()
1148 step = 2; in attr_data_get_block()
1223 if (err && step > 1) { in attr_data_get_block()
/fs/btrfs/
A Dblock-group.c504 u64 step = chunk << 1; in fragment_free_space() local
508 start += step; in fragment_free_space()
509 if (len < step) in fragment_free_space()
512 len -= step; in fragment_free_space()

Completed in 39 milliseconds