/fs/nilfs2/ |
D | btree.c | 35 int level = NILFS_BTREE_LEVEL_DATA; in nilfs_btree_alloc_path() local 41 for (; level < NILFS_BTREE_LEVEL_MAX; level++) { in nilfs_btree_alloc_path() 42 path[level].bp_bh = NULL; in nilfs_btree_alloc_path() 43 path[level].bp_sib_bh = NULL; in nilfs_btree_alloc_path() 44 path[level].bp_index = 0; in nilfs_btree_alloc_path() 45 path[level].bp_oldreq.bpr_ptr = NILFS_BMAP_INVALID_PTR; in nilfs_btree_alloc_path() 46 path[level].bp_newreq.bpr_ptr = NILFS_BMAP_INVALID_PTR; in nilfs_btree_alloc_path() 47 path[level].bp_op = NULL; in nilfs_btree_alloc_path() 56 int level = NILFS_BTREE_LEVEL_DATA; in nilfs_btree_free_path() local 58 for (; level < NILFS_BTREE_LEVEL_MAX; level++) in nilfs_btree_free_path() [all …]
|
/fs/xfs/libxfs/ |
D | xfs_btree.c | 60 int level, /* level of the btree block */ in xfs_btree_check_lblock() argument 78 be16_to_cpu(block->bb_level) == level && in xfs_btree_check_lblock() 80 cur->bc_ops->get_maxrecs(cur, level) && in xfs_btree_check_lblock() 105 int level, /* level of the btree block */ in xfs_btree_check_sblock() argument 129 be16_to_cpu(block->bb_level) == level && in xfs_btree_check_sblock() 131 cur->bc_ops->get_maxrecs(cur, level) && in xfs_btree_check_sblock() 157 int level, /* level of the btree block */ in xfs_btree_check_block() argument 161 return xfs_btree_check_lblock(cur, block, level, bp); in xfs_btree_check_block() 163 return xfs_btree_check_sblock(cur, block, level, bp); in xfs_btree_check_block() 173 int level) /* btree block level */ in xfs_btree_check_lptr() argument [all …]
|
D | xfs_alloc_btree.c | 190 int level) in xfs_allocbt_get_minrecs() argument 192 return cur->bc_mp->m_alloc_mnr[level != 0]; in xfs_allocbt_get_minrecs() 198 int level) in xfs_allocbt_get_maxrecs() argument 200 return cur->bc_mp->m_alloc_mxr[level != 0]; in xfs_allocbt_get_maxrecs() 266 unsigned int level; in xfs_allocbt_verify() local 280 level = be16_to_cpu(block->bb_level); in xfs_allocbt_verify() 288 if (level >= pag->pagf_levels[XFS_BTNUM_BNOi]) in xfs_allocbt_verify() 290 } else if (level >= mp->m_ag_maxlevels) in xfs_allocbt_verify() 299 if (level >= pag->pagf_levels[XFS_BTNUM_CNTi]) in xfs_allocbt_verify() 301 } else if (level >= mp->m_ag_maxlevels) in xfs_allocbt_verify() [all …]
|
D | xfs_bmap_btree.c | 562 int level) in xfs_bmbt_get_minrecs() argument 564 if (level == cur->bc_nlevels - 1) { in xfs_bmbt_get_minrecs() 571 ifp->if_broot_bytes, level == 0) / 2; in xfs_bmbt_get_minrecs() 574 return cur->bc_mp->m_bmap_dmnr[level != 0]; in xfs_bmbt_get_minrecs() 580 int level) in xfs_bmbt_get_maxrecs() argument 582 if (level == cur->bc_nlevels - 1) { in xfs_bmbt_get_maxrecs() 589 ifp->if_broot_bytes, level == 0); in xfs_bmbt_get_maxrecs() 592 return cur->bc_mp->m_bmap_dmxr[level != 0]; in xfs_bmbt_get_maxrecs() 608 int level) in xfs_bmbt_get_dmaxrecs() argument 610 if (level != cur->bc_nlevels - 1) in xfs_bmbt_get_dmaxrecs() [all …]
|
D | xfs_da_btree.c | 160 if (ichdr.level == 0) in xfs_da3_node_verify() 162 if (ichdr.level > XFS_DA_NODE_MAXDEPTH) in xfs_da3_node_verify() 304 int level, in xfs_da3_node_create() argument 317 ASSERT(level <= XFS_DA_NODE_MAXDEPTH); in xfs_da3_node_create() 337 ichdr.level = level; in xfs_da3_node_create() 522 int level; in xfs_da3_root_split() local 551 level = icnodehdr.level; in xfs_da3_root_split() 569 level = 0; in xfs_da3_root_split() 603 level + 1, &bp, args->whichfork); in xfs_da3_root_split() 1019 xfs_da_blkinfo_onlychild_validate(struct xfs_da_blkinfo *blkinfo, __u16 level) in xfs_da_blkinfo_onlychild_validate() argument [all …]
|
D | xfs_refcount_btree.c | 149 int level) in xfs_refcountbt_get_minrecs() argument 151 return cur->bc_mp->m_refc_mnr[level != 0]; in xfs_refcountbt_get_minrecs() 157 int level) in xfs_refcountbt_get_maxrecs() argument 159 return cur->bc_mp->m_refc_mxr[level != 0]; in xfs_refcountbt_get_maxrecs() 233 unsigned int level; in xfs_refcountbt_verify() local 243 level = be16_to_cpu(block->bb_level); in xfs_refcountbt_verify() 245 if (level >= pag->pagf_refcount_level) in xfs_refcountbt_verify() 247 } else if (level >= mp->m_refc_maxlevels) in xfs_refcountbt_verify() 250 return xfs_btree_sblock_verify(bp, mp->m_refc_mxr[level != 0]); in xfs_refcountbt_verify()
|
D | xfs_btree.h | 170 int (*get_minrecs)(struct xfs_btree_cur *cur, int level); 171 int (*get_maxrecs)(struct xfs_btree_cur *cur, int level); 174 int (*get_dmaxrecs)(struct xfs_btree_cur *cur, int level); 301 int level, /* level of the btree block */ 311 int level); /* btree block level */ 359 int level); /* level to check */ 418 __u16 level, 429 __u16 level, 534 typedef int (*xfs_btree_visit_blocks_fn)(struct xfs_btree_cur *cur, int level,
|
D | xfs_rmap_btree.c | 167 int level) in xfs_rmapbt_get_minrecs() argument 169 return cur->bc_mp->m_rmap_mnr[level != 0]; in xfs_rmapbt_get_minrecs() 175 int level) in xfs_rmapbt_get_maxrecs() argument 177 return cur->bc_mp->m_rmap_mxr[level != 0]; in xfs_rmapbt_get_maxrecs() 313 unsigned int level; in xfs_rmapbt_verify() local 335 level = be16_to_cpu(block->bb_level); in xfs_rmapbt_verify() 337 if (level >= pag->pagf_levels[XFS_BTNUM_RMAPi]) in xfs_rmapbt_verify() 339 } else if (level >= mp->m_rmap_maxlevels) in xfs_rmapbt_verify() 342 return xfs_btree_sblock_verify(bp, mp->m_rmap_mxr[level != 0]); in xfs_rmapbt_verify()
|
/fs/btrfs/ |
D | ctree.c | 30 *root, struct btrfs_path *path, int level); 42 int level, int slot); 244 int level; in btrfs_copy_root() local 252 level = btrfs_header_level(buf); in btrfs_copy_root() 253 if (level == 0) in btrfs_copy_root() 259 &disk_key, level, buf->start, 0); in btrfs_copy_root() 308 u8 level; member 703 tm->old_root.level = btrfs_header_level(old_root); in tree_mod_log_insert_root() 1053 int level = btrfs_header_level(buf); in update_ref_for_cow() local 1058 new_flags, level, 0); in update_ref_for_cow() [all …]
|
D | relocation.c | 65 unsigned int level:8; member 145 unsigned int level:8; member 482 int level = 0; in update_backref_cache() local 515 for (level = 0; level < BTRFS_MAX_LEVEL; level++) { in update_backref_cache() 516 list_for_each_entry(node, &cache->pending[level], list) { in update_backref_cache() 684 int level, u64 bytenr) argument 724 node->level = level; 866 upper->level = cur->level + 1; 897 if (btrfs_root_level(&root->root_item) == cur->level) { 908 level = cur->level + 1; [all …]
|
D | extent-tree.c | 84 int level, struct btrfs_key *ins); 88 static int find_next_key(struct btrfs_path *path, int level, 1500 static int find_next_key(struct btrfs_path *path, int level, in find_next_key() argument 1504 for (; level < BTRFS_MAX_LEVEL; level++) { in find_next_key() 1505 if (!path->nodes[level]) in find_next_key() 1507 if (path->slots[level] + 1 >= in find_next_key() 1508 btrfs_header_nritems(path->nodes[level])) in find_next_key() 1510 if (level == 0) in find_next_key() 1511 btrfs_item_key_to_cpu(path->nodes[level], key, in find_next_key() 1512 path->slots[level] + 1); in find_next_key() [all …]
|
/fs/logfs/ |
D | readwrite.c | 23 static u64 adjust_bix(u64 bix, level_t level) in adjust_bix() argument 25 switch (level) { in adjust_bix() 67 pgoff_t logfs_pack_index(u64 bix, level_t level) in logfs_pack_index() argument 72 if (level == 0) in logfs_pack_index() 76 index |= (__force long)level << LEVEL_SHIFT; in logfs_pack_index() 77 index |= bix >> ((__force u8)level * LOGFS_BLOCK_BITS); in logfs_pack_index() 81 void logfs_unpack_index(pgoff_t index, u64 *bix, level_t *level) in logfs_unpack_index() argument 87 *level = 0; in logfs_unpack_index() 92 *level = LEVEL(__level); in logfs_unpack_index() 94 *bix = adjust_bix(*bix, *level); in logfs_unpack_index() [all …]
|
D | logfs.h | 97 #define LEVEL(level) ((__force level_t)(level)) argument 100 #define SUBLEVEL(level) ( (void)((level) == LEVEL(1)), \ argument 101 (__force level_t)((__force u8)(level) - 1) ) 300 level_t level; member 312 level_t level, int child_no, __be64 val); 538 level_t level, int child_no, __be64 val); 542 pgoff_t logfs_pack_index(u64 bix, level_t level); 543 void logfs_unpack_index(pgoff_t index, u64 *bix, level_t *level); 572 u64 ino, u64 bix, level_t level); 587 level_t level); [all …]
|
D | segment.c | 168 level_t level) in alias_tree_lookup() argument 171 pgoff_t index = logfs_pack_index(bix, level); in alias_tree_lookup() 177 level_t level, void *val) in alias_tree_insert() argument 180 pgoff_t index = logfs_pack_index(bix, level); in alias_tree_insert() 193 block->level, item->child_no, item->val); in btree_write_alias() 213 level_t level; in logfs_load_object_aliases() local 230 level = LEVEL(oa[i].level); in logfs_load_object_aliases() 233 ino, bix, level, item->child_no, in logfs_load_object_aliases() 235 block = alias_tree_lookup(sb, ino, bix, level); in logfs_load_object_aliases() 237 block = __alloc_block(sb, ino, bix, level); in logfs_load_object_aliases() [all …]
|
/fs/ocfs2/dlmfs/ |
D | userdlm.c | 115 static inline int user_highest_compat_lock_level(int level) in user_highest_compat_lock_level() argument 119 if (level == DLM_LOCK_EX) in user_highest_compat_lock_level() 121 else if (level == DLM_LOCK_PR) in user_highest_compat_lock_level() 214 static void user_bast(struct ocfs2_dlm_lksb *lksb, int level) in user_bast() argument 219 lockres->l_namelen, lockres->l_name, level, lockres->l_level); in user_bast() 223 if (level > lockres->l_blocking) in user_bast() 224 lockres->l_blocking = level; in user_bast() 399 int level) in user_dlm_inc_holders() argument 401 switch(level) { in user_dlm_inc_holders() 426 int level, in user_dlm_cluster_lock() argument [all …]
|
D | dlmfs.c | 117 int *level, in dlmfs_decode_open_flags() argument 121 *level = DLM_LOCK_EX; in dlmfs_decode_open_flags() 123 *level = DLM_LOCK_PR; in dlmfs_decode_open_flags() 135 int status, level, flags; in dlmfs_file_open() local 145 status = dlmfs_decode_open_flags(file->f_flags, &level, &flags); in dlmfs_file_open() 158 fp->fp_lock_level = level; in dlmfs_file_open() 162 status = user_dlm_cluster_lock(&ip->ip_lockres, level, flags); in dlmfs_file_open() 182 int level, status; in dlmfs_file_release() local 193 level = fp->fp_lock_level; in dlmfs_file_release() 194 if (level != DLM_LOCK_IV) in dlmfs_file_release() [all …]
|
/fs/ubifs/ |
D | tnc_misc.c | 43 int level, iip, level_search = 0; in ubifs_tnc_levelorder_next() local 52 if (znode->level == 0) in ubifs_tnc_levelorder_next() 57 level = znode->level; in ubifs_tnc_levelorder_next() 61 ubifs_assert(znode->level <= zr->level); in ubifs_tnc_levelorder_next() 75 level -= 1; in ubifs_tnc_levelorder_next() 76 if (level_search || level < 0) in ubifs_tnc_levelorder_next() 100 while (zn->level != level) { in ubifs_tnc_levelorder_next() 114 ubifs_assert(zn->level >= 0); in ubifs_tnc_levelorder_next() 184 while (znode->level > 0) { in ubifs_tnc_postorder_first() 240 if (zn->level > 0 && in ubifs_destroy_tnc_subtree() [all …]
|
D | tnc.c | 217 if (znode->level != 0) { in copy_znode() 632 while (znode->level != 0) { in tnc_next() 676 while (znode->level != 0) { in tnc_prev() 1104 if (c->zroot.znode->level > BOTTOM_UP_HEIGHT) { in dirty_cow_bottom_up() 1106 c->bottom_up_buf = kmalloc(c->zroot.znode->level * sizeof(int), in dirty_cow_bottom_up() 1112 if (c->zroot.znode->level) { in dirty_cow_bottom_up() 1121 ubifs_assert(p < c->zroot.znode->level); in dirty_cow_bottom_up() 1199 if (znode->level == 0) in ubifs_lookup_level0() 1220 dbg_tnc("found %d, lvl %d, n %d", exact, znode->level, *n); in ubifs_lookup_level0() 1269 dbg_tnc("found 0, lvl %d, n -1", znode->level); in ubifs_lookup_level0() [all …]
|
/fs/ocfs2/ |
D | dlmglue.c | 123 static void ocfs2_dump_meta_lvb_info(u64 level, in ocfs2_dump_meta_lvb_info() argument 130 mlog(level, "LVB information for %s (called from %s:%u):\n", in ocfs2_dump_meta_lvb_info() 132 mlog(level, "version: %u, clusters: %u, generation: 0x%x\n", in ocfs2_dump_meta_lvb_info() 135 mlog(level, "size: %llu, uid %u, gid %u, mode 0x%x\n", in ocfs2_dump_meta_lvb_info() 139 mlog(level, "nlink %u, atime_packed 0x%llx, ctime_packed 0x%llx, " in ocfs2_dump_meta_lvb_info() 343 int level, 349 int level, unsigned long caller_ip); 352 int level) in ocfs2_cluster_unlock() argument 354 __ocfs2_cluster_unlock(osb, lockres, level, _RET_IP_); in ocfs2_cluster_unlock() 360 static int ocfs2_generic_handle_bast(struct ocfs2_lock_res *lockres, int level); [all …]
|
D | locks.c | 41 int ret = 0, level = 0, trylock = 0; in ocfs2_do_flock() local 46 level = 1; in ocfs2_do_flock() 59 if (level == old_level) in ocfs2_do_flock() 78 ret = ocfs2_file_lock(file, level, trylock); in ocfs2_do_flock()
|
/fs/f2fs/ |
D | dir.c | 26 static unsigned int dir_buckets(unsigned int level, int dir_level) in dir_buckets() argument 28 if (level + dir_level < MAX_DIR_HASH_DEPTH / 2) in dir_buckets() 29 return 1 << (level + dir_level); in dir_buckets() 34 static unsigned int bucket_blocks(unsigned int level) in bucket_blocks() argument 36 if (level < MAX_DIR_HASH_DEPTH / 2) in bucket_blocks() 75 static unsigned long dir_block_index(unsigned int level, in dir_block_index() argument 81 for (i = 0; i < level; i++) in dir_block_index() 83 bidx += idx * bucket_blocks(level); in dir_block_index() 151 unsigned int level, in find_in_level() argument 165 nbucket = dir_buckets(level, F2FS_I(dir)->i_dir_level); in find_in_level() [all …]
|
/fs/xfs/ |
D | xfs_message.c | 31 const char *level, in __xfs_printk() argument 36 printk("%sXFS (%s): %pV\n", level, mp->m_fsname, vaf); in __xfs_printk() 39 printk("%sXFS: %pV\n", level, vaf); in __xfs_printk() 47 int level; \ 57 if (!kstrtoint(kern_level, 0, &level) && \ 58 level <= LOGLEVEL_ERR && \
|
D | xfs_error.c | 129 int level, in xfs_error_report() argument 135 if (level <= xfs_error_level) { in xfs_error_report() 147 int level, in xfs_corruption_error() argument 154 if (level <= xfs_error_level) in xfs_corruption_error() 156 xfs_error_report(tag, level, mp, filename, linenum, ra); in xfs_corruption_error()
|
/fs/ |
D | super.c | 1245 void __sb_end_write(struct super_block *sb, int level) in __sb_end_write() argument 1247 percpu_up_read(sb->s_writers.rw_sem + level-1); in __sb_end_write() 1255 int __sb_start_write(struct super_block *sb, int level, bool wait) in __sb_start_write() argument 1273 for (i = 0; i < level - 1; i++) in __sb_start_write() 1281 percpu_down_read(sb->s_writers.rw_sem + level-1); in __sb_start_write() 1283 ret = percpu_down_read_trylock(sb->s_writers.rw_sem + level-1); in __sb_start_write() 1298 static void sb_wait_write(struct super_block *sb, int level) in sb_wait_write() argument 1300 percpu_down_write(sb->s_writers.rw_sem + level-1); in sb_wait_write() 1309 int level; in lockdep_sb_freeze_release() local 1311 for (level = SB_FREEZE_LEVELS - 1; level >= 0; level--) in lockdep_sb_freeze_release() [all …]
|
/fs/ocfs2/cluster/ |
D | masklog.c | 72 const char *level; in __mlog_printk() local 80 level = KERN_ERR; in __mlog_printk() 83 level = KERN_NOTICE; in __mlog_printk() 85 level = KERN_INFO; in __mlog_printk() 94 level, current->comm, task_pid_nr(current), in __mlog_printk()
|