/fs/xfs/libxfs/ |
D | xfs_dir2.h | 66 extern int xfs_dir2_shrink_inode(struct xfs_da_args *args, xfs_dir2_db_t db, 161 xfs_dir2_db_off_to_byte(struct xfs_da_geometry *geo, xfs_dir2_db_t db, in xfs_dir2_db_off_to_byte() argument 164 return ((xfs_dir2_off_t)db << geo->blklog) + o; in xfs_dir2_db_off_to_byte() 171 xfs_dir2_db_to_da(struct xfs_da_geometry *geo, xfs_dir2_db_t db) in xfs_dir2_db_to_da() argument 173 return (xfs_dablk_t)(db << (geo->blklog - geo->fsblog)); in xfs_dir2_db_to_da() 189 xfs_dir2_db_off_to_dataptr(struct xfs_da_geometry *geo, xfs_dir2_db_t db, in xfs_dir2_db_off_to_dataptr() argument 192 return xfs_dir2_byte_to_dataptr(xfs_dir2_db_off_to_byte(geo, db, o)); in xfs_dir2_db_off_to_dataptr()
|
D | xfs_dir2_leaf.c | 1351 xfs_dir2_db_t db; /* data block number */ in xfs_dir2_leaf_removename() local 1387 db = xfs_dir2_dataptr_to_db(geo, be32_to_cpu(lep->address)); in xfs_dir2_leaf_removename() 1394 if (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 != 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_dir2.c | 664 xfs_dir2_db_t db, in xfs_dir2_shrink_inode() argument 675 trace_xfs_dir2_shrink_inode(args, db); in xfs_dir2_shrink_inode() 680 da = xfs_dir2_db_to_da(args->geo, db); in xfs_dir2_shrink_inode() 707 if (db >= xfs_dir2_byte_to_db(args->geo, XFS_DIR2_LEAF_OFFSET)) in xfs_dir2_shrink_inode() 712 if (dp->i_disk_size > xfs_dir2_db_off_to_byte(args->geo, db + 1, 0)) in xfs_dir2_shrink_inode() 721 if (db == args->geo->datablk) in xfs_dir2_shrink_inode()
|
D | xfs_dir2_node.c | 40 xfs_dir2_db_to_fdb(struct xfs_da_geometry *geo, xfs_dir2_db_t db) in xfs_dir2_db_to_fdb() argument 43 (db / geo->free_max_bests); in xfs_dir2_db_to_fdb() 50 xfs_dir2_db_to_fdindex(struct xfs_da_geometry *geo, xfs_dir2_db_t db) in xfs_dir2_db_to_fdindex() argument 52 return db % geo->free_max_bests; in xfs_dir2_db_to_fdindex() 580 xfs_dir2_db_t db) in xfs_dir2_free_hdr_check() argument 587 ASSERT(hdr.firstdb <= db); in xfs_dir2_free_hdr_check() 588 ASSERT(db < hdr.firstdb + hdr.nvalid); in xfs_dir2_free_hdr_check() 591 #define xfs_dir2_free_hdr_check(dp, bp, db) argument 1270 xfs_dir2_db_t db; /* data block number */ in xfs_dir2_leafn_remove() local 1299 db = xfs_dir2_dataptr_to_db(geo, be32_to_cpu(lep->address)); in xfs_dir2_leafn_remove() [all …]
|
D | xfs_dir2_priv.h | 122 struct xfs_buf *lbp, xfs_dir2_db_t db);
|
/fs/ocfs2/cluster/ |
D | heartbeat.c | 1269 struct o2hb_debug_buf *db = inode->i_private; in o2hb_debug_open() local 1278 BUG_ON(sizeof(map) < db->db_size); in o2hb_debug_open() 1284 switch (db->db_type) { in o2hb_debug_open() 1290 memcpy(map, db->db_data, db->db_size); in o2hb_debug_open() 1296 reg = (struct o2hb_region *)db->db_data; in o2hb_debug_open() 1297 memcpy(map, reg->hr_live_node_bitmap, db->db_size); in o2hb_debug_open() 1302 reg = (struct o2hb_region *)db->db_data; in o2hb_debug_open() 1308 reg = (struct o2hb_region *)db->db_data; in o2hb_debug_open() 1317 reg = (struct o2hb_region *)db->db_data; in o2hb_debug_open() 1326 while ((i = find_next_bit(map, db->db_len, i + 1)) < db->db_len) in o2hb_debug_open() [all …]
|
/fs/kernfs/ |
D | dir.c | 77 size_t da, db; in kernfs_common_ancestor() local 84 db = kernfs_depth(rb->kn, b); in kernfs_common_ancestor() 86 while (da > db) { in kernfs_common_ancestor() 90 while (db > da) { in kernfs_common_ancestor() 92 db--; in kernfs_common_ancestor()
|
/fs/xfs/scrub/ |
D | dir.c | 215 xfs_dir2_db_t db; in xchk_dir_rec() local 241 db = xfs_dir2_dataptr_to_db(geo, ptr); in xchk_dir_rec() 243 rec_bno = xfs_dir2_db_to_da(geo, db); in xchk_dir_rec()
|
/fs/ext4/ |
D | mballoc.c | 3661 struct ext4_group_info *db; in ext4_free_data_in_buddy() local 3675 db = e4b.bd_info; in ext4_free_data_in_buddy() 3681 rb_erase(&entry->efd_node, &(db->bb_free_root)); in ext4_free_data_in_buddy() 3691 EXT4_MB_GRP_CLEAR_TRIMMED(db); in ext4_free_data_in_buddy() 3693 if (!db->bb_free_root.rb_node) { in ext4_free_data_in_buddy() 5795 struct ext4_group_info *db = e4b->bd_info; in ext4_mb_free_metadata() local 5798 struct rb_node **n = &db->bb_free_root.rb_node, *node; in ext4_mb_free_metadata() 5835 rb_insert_color(new_node, &db->bb_free_root); in ext4_mb_free_metadata() 5842 &(db->bb_free_root)); in ext4_mb_free_metadata() 5849 &(db->bb_free_root)); in ext4_mb_free_metadata()
|
/fs/ocfs2/ |
D | dir.c | 3959 struct ocfs2_dir_block_trailer *db; in ocfs2_search_dx_free_list() local 3978 db = ocfs2_trailer_from_bh(leaf_bh, dir->i_sb); in ocfs2_search_dx_free_list() 3979 if (rec_len <= le16_to_cpu(db->db_free_rec_len)) { in ocfs2_search_dx_free_list() 3987 next_block = le64_to_cpu(db->db_free_next); in ocfs2_search_dx_free_list()
|