/fs/xfs/libxfs/ |
D | xfs_dir2_priv.h | 87 xfs_dir2_db_off_to_byte(struct xfs_da_geometry *geo, xfs_dir2_db_t db, in xfs_dir2_db_off_to_byte() argument 90 return ((xfs_dir2_off_t)db << geo->blklog) + o; in xfs_dir2_db_off_to_byte() 97 xfs_dir2_db_to_da(struct xfs_da_geometry *geo, xfs_dir2_db_t db) in xfs_dir2_db_to_da() argument 99 return (xfs_dablk_t)(db << (geo->blklog - geo->fsblog)); in xfs_dir2_db_to_da() 115 xfs_dir2_db_off_to_dataptr(struct xfs_da_geometry *geo, xfs_dir2_db_t db, in xfs_dir2_db_off_to_dataptr() argument 118 return xfs_dir2_byte_to_dataptr(xfs_dir2_db_off_to_byte(geo, db, o)); in xfs_dir2_db_off_to_dataptr() 224 struct xfs_buf *lbp, xfs_dir2_db_t db);
|
D | xfs_dir2_leaf.c | 1350 xfs_dir2_db_t db; /* data block number */ in xfs_dir2_leaf_removename() local 1391 db = xfs_dir2_dataptr_to_db(args->geo, be32_to_cpu(lep->address)); in xfs_dir2_leaf_removename() 1398 ASSERT(be16_to_cpu(bestsp[db]) == oldbest); in xfs_dir2_leaf_removename() 1428 bestsp[db] = bf[0].length; in xfs_dir2_leaf_removename() 1429 xfs_dir3_leaf_log_bests(args, lbp, db, db); in xfs_dir2_leaf_removename() 1437 ASSERT(db != args->geo->datablk); in xfs_dir2_leaf_removename() 1438 if ((error = xfs_dir2_shrink_inode(args, db, dbp))) { in xfs_dir2_leaf_removename() 1455 if (db == be32_to_cpu(ltp->bestcount) - 1) { in xfs_dir2_leaf_removename() 1459 for (i = db - 1; i > 0; i--) { in xfs_dir2_leaf_removename() 1467 memmove(&bestsp[db - i], bestsp, in xfs_dir2_leaf_removename() [all …]
|
D | xfs_da_format.c | 611 xfs_dir2_db_to_fdb(struct xfs_da_geometry *geo, xfs_dir2_db_t db) in xfs_dir2_db_to_fdb() argument 614 (db / xfs_dir2_free_max_bests(geo)); in xfs_dir2_db_to_fdb() 621 xfs_dir2_db_to_fdindex(struct xfs_da_geometry *geo, xfs_dir2_db_t db) in xfs_dir2_db_to_fdindex() argument 623 return db % xfs_dir2_free_max_bests(geo); in xfs_dir2_db_to_fdindex() 643 xfs_dir3_db_to_fdb(struct xfs_da_geometry *geo, xfs_dir2_db_t db) in xfs_dir3_db_to_fdb() argument 646 (db / xfs_dir3_free_max_bests(geo)); in xfs_dir3_db_to_fdb() 653 xfs_dir3_db_to_fdindex(struct xfs_da_geometry *geo, xfs_dir2_db_t db) in xfs_dir3_db_to_fdindex() argument 655 return db % xfs_dir3_free_max_bests(geo); in xfs_dir3_db_to_fdindex()
|
D | xfs_dir2.h | 103 xfs_dir2_db_t db); 105 xfs_dir2_db_t db); 151 extern int xfs_dir2_shrink_inode(struct xfs_da_args *args, xfs_dir2_db_t db,
|
D | xfs_dir2.c | 648 xfs_dir2_db_t db, in xfs_dir2_shrink_inode() argument 659 trace_xfs_dir2_shrink_inode(args, db); in xfs_dir2_shrink_inode() 664 da = xfs_dir2_db_to_da(args->geo, db); in xfs_dir2_shrink_inode() 695 if (db >= xfs_dir2_byte_to_db(args->geo, XFS_DIR2_LEAF_OFFSET)) in xfs_dir2_shrink_inode() 700 if (dp->i_d.di_size > xfs_dir2_db_off_to_byte(args->geo, db + 1, 0)) in xfs_dir2_shrink_inode() 709 if (db == args->geo->datablk) in xfs_dir2_shrink_inode()
|
D | xfs_dir2_node.c | 469 xfs_dir2_db_t db) in xfs_dir2_free_hdr_check() argument 477 ASSERT(hdr.firstdb <= db); in xfs_dir2_free_hdr_check() 478 ASSERT(db < hdr.firstdb + hdr.nvalid); in xfs_dir2_free_hdr_check() 481 #define xfs_dir2_free_hdr_check(dp, bp, db) argument 1166 xfs_dir2_db_t db; /* data block number */ in xfs_dir2_leafn_remove() local 1199 db = xfs_dir2_dataptr_to_db(args->geo, be32_to_cpu(lep->address)); in xfs_dir2_leafn_remove() 1200 ASSERT(dblk->blkno == db); in xfs_dir2_leafn_remove() 1251 fdb = dp->d_ops->db_to_fdb(args->geo, db); in xfs_dir2_leafn_remove() 1270 findex = dp->d_ops->db_to_fdindex(args->geo, db); in xfs_dir2_leafn_remove() 1281 error = xfs_dir2_shrink_inode(args, db, dbp); in xfs_dir2_leafn_remove()
|
/fs/ocfs2/cluster/ |
D | heartbeat.c | 1174 struct o2hb_debug_buf *db = inode->i_private; in o2hb_debug_open() local 1183 BUG_ON(sizeof(map) < db->db_size); in o2hb_debug_open() 1189 switch (db->db_type) { in o2hb_debug_open() 1195 memcpy(map, db->db_data, db->db_size); in o2hb_debug_open() 1201 reg = (struct o2hb_region *)db->db_data; in o2hb_debug_open() 1202 memcpy(map, reg->hr_live_node_bitmap, db->db_size); in o2hb_debug_open() 1207 reg = (struct o2hb_region *)db->db_data; in o2hb_debug_open() 1213 reg = (struct o2hb_region *)db->db_data; in o2hb_debug_open() 1222 reg = (struct o2hb_region *)db->db_data; in o2hb_debug_open() 1231 while ((i = find_next_bit(map, db->db_len, i + 1)) < db->db_len) in o2hb_debug_open() [all …]
|
/fs/ext4/ |
D | mballoc.c | 2776 struct ext4_group_info *db; in ext4_free_data_callback() local 2799 db = e4b.bd_info; in ext4_free_data_callback() 2805 rb_erase(&entry->efd_node, &(db->bb_free_root)); in ext4_free_data_callback() 2815 EXT4_MB_GRP_CLEAR_TRIMMED(db); in ext4_free_data_callback() 2817 if (!db->bb_free_root.rb_node) { in ext4_free_data_callback() 4563 struct ext4_group_info *db = e4b->bd_info; in ext4_mb_free_metadata() local 4566 struct rb_node **n = &db->bb_free_root.rb_node, *node; in ext4_mb_free_metadata() 4602 rb_insert_color(new_node, &db->bb_free_root); in ext4_mb_free_metadata() 4612 rb_erase(node, &(db->bb_free_root)); in ext4_mb_free_metadata() 4623 rb_erase(node, &(db->bb_free_root)); in ext4_mb_free_metadata()
|
/fs/ocfs2/ |
D | dir.c | 4006 struct ocfs2_dir_block_trailer *db; in ocfs2_search_dx_free_list() local 4025 db = ocfs2_trailer_from_bh(leaf_bh, dir->i_sb); in ocfs2_search_dx_free_list() 4026 if (rec_len <= le16_to_cpu(db->db_free_rec_len)) { in ocfs2_search_dx_free_list() 4034 next_block = le64_to_cpu(db->db_free_next); in ocfs2_search_dx_free_list()
|