Home
last modified time | relevance | path

Searched refs:db (Results 1 – 11 of 11) sorted by relevance

/fs/ocfs2/dlm/
Ddlmdebug.c386 struct debug_buffer *db = NULL; in debug_buffer_allocate() local
388 db = kzalloc(sizeof(struct debug_buffer), GFP_KERNEL); in debug_buffer_allocate()
389 if (!db) in debug_buffer_allocate()
392 db->len = PAGE_SIZE; in debug_buffer_allocate()
393 db->buf = kmalloc(db->len, GFP_KERNEL); in debug_buffer_allocate()
394 if (!db->buf) in debug_buffer_allocate()
397 return db; in debug_buffer_allocate()
399 kfree(db); in debug_buffer_allocate()
406 struct debug_buffer *db = file->private_data; in debug_buffer_read() local
408 return simple_read_from_buffer(buf, nbytes, ppos, db->buf, db->len); in debug_buffer_read()
[all …]
/fs/xfs/
Dxfs_dir2_leaf.h171 xfs_dir2_db_off_to_byte(struct xfs_mount *mp, xfs_dir2_db_t db, in xfs_dir2_db_off_to_byte() argument
174 return ((xfs_dir2_off_t)(db) << \ in xfs_dir2_db_off_to_byte()
182 xfs_dir2_db_to_da(struct xfs_mount *mp, xfs_dir2_db_t db) in xfs_dir2_db_to_da() argument
184 return (xfs_dablk_t)((db) << (mp)->m_sb.sb_dirblklog); in xfs_dir2_db_to_da()
200 xfs_dir2_db_off_to_dataptr(struct xfs_mount *mp, xfs_dir2_db_t db, in xfs_dir2_db_off_to_dataptr() argument
203 return xfs_dir2_byte_to_dataptr(mp, xfs_dir2_db_off_to_byte(mp, db, o)); in xfs_dir2_db_off_to_dataptr()
250 struct xfs_dabuf *lbp, xfs_dir2_db_t db);
Dxfs_dir2_node.h64 xfs_dir2_db_to_fdb(struct xfs_mount *mp, xfs_dir2_db_t db) in xfs_dir2_db_to_fdb() argument
66 return (XFS_DIR2_FREE_FIRSTDB(mp) + (db) / XFS_DIR2_MAX_FREE_BESTS(mp)); in xfs_dir2_db_to_fdb()
73 xfs_dir2_db_to_fdindex(struct xfs_mount *mp, xfs_dir2_db_t db) in xfs_dir2_db_to_fdindex() argument
75 return ((db) % XFS_DIR2_MAX_FREE_BESTS(mp)); in xfs_dir2_db_to_fdindex()
Dxfs_dir2_leaf.c1451 xfs_dir2_db_t db; /* data block number */ in xfs_dir2_leaf_removename() local
1485 db = xfs_dir2_dataptr_to_db(mp, be32_to_cpu(lep->address)); in xfs_dir2_leaf_removename()
1492 ASSERT(be16_to_cpu(bestsp[db]) == oldbest); in xfs_dir2_leaf_removename()
1519 bestsp[db] = data->hdr.bestfree[0].length; in xfs_dir2_leaf_removename()
1520 xfs_dir2_leaf_log_bests(tp, lbp, db, db); in xfs_dir2_leaf_removename()
1528 ASSERT(db != mp->m_dirdatablk); in xfs_dir2_leaf_removename()
1529 if ((error = xfs_dir2_shrink_inode(args, db, dbp))) { in xfs_dir2_leaf_removename()
1549 if (db == be32_to_cpu(ltp->bestcount) - 1) { in xfs_dir2_leaf_removename()
1553 for (i = db - 1; i > 0; i--) { in xfs_dir2_leaf_removename()
1561 memmove(&bestsp[db - i], bestsp, in xfs_dir2_leaf_removename()
[all …]
Dxfs_dir2_trace.h53 xfs_dir2_db_t db, struct xfs_dabuf *bp);
65 #define xfs_dir2_trace_args_db(where, args, db, bp) argument
Dxfs_dir2.c697 xfs_dir2_db_t db, in xfs_dir2_shrink_inode() argument
708 xfs_dir2_trace_args_db("shrink_inode", args, db, bp); in xfs_dir2_shrink_inode()
712 da = xfs_dir2_db_to_da(mp, db); in xfs_dir2_shrink_inode()
743 if (db >= XFS_DIR2_LEAF_FIRSTDB(mp)) in xfs_dir2_shrink_inode()
748 if (dp->i_d.di_size > xfs_dir2_db_off_to_byte(mp, db + 1, 0)) in xfs_dir2_shrink_inode()
757 if (db == mp->m_dirdatablk) in xfs_dir2_shrink_inode()
Dxfs_dir2_trace.c150 xfs_dir2_db_t db, in xfs_dir2_trace_args_db() argument
162 (void *)(long)db, (void *)dbp); in xfs_dir2_trace_args_db()
Dxfs_dir2.h100 extern int xfs_dir2_shrink_inode(struct xfs_da_args *args, xfs_dir2_db_t db,
Dxfs_dir2_node.c923 xfs_dir2_db_t db; /* data block number */ in xfs_dir2_leafn_remove() local
949 db = xfs_dir2_dataptr_to_db(mp, be32_to_cpu(lep->address)); in xfs_dir2_leafn_remove()
950 ASSERT(dblk->blkno == db); in xfs_dir2_leafn_remove()
997 fdb = xfs_dir2_db_to_fdb(mp, db); in xfs_dir2_leafn_remove()
1010 findex = xfs_dir2_db_to_fdindex(mp, db); in xfs_dir2_leafn_remove()
1020 error = xfs_dir2_shrink_inode(args, db, dbp); in xfs_dir2_leafn_remove()
/fs/gfs2/
Dops_fstype.c593 u64 db, prev_db; /* logical block, disk block, prev disk block */ in map_journal_extents() local
606 db = bh.b_blocknr; in map_journal_extents()
607 if (rc || !db) { in map_journal_extents()
609 "%u db=%llu\n", rc, lb, (unsigned long long)db); in map_journal_extents()
612 if (!prev_db || db != prev_db + 1) { in map_journal_extents()
621 jext->dblock = db; in map_journal_extents()
628 prev_db = db; in map_journal_extents()
/fs/ext4/
Dmballoc.c2845 struct ext4_group_info *db; in release_blocks_on_commit() local
2861 db = e4b.bd_info; in release_blocks_on_commit()
2867 rb_erase(&entry->node, &(db->bb_free_root)); in release_blocks_on_commit()
2870 if (!db->bb_free_root.rb_node) { in release_blocks_on_commit()
4704 struct ext4_group_info *db = e4b->bd_info; in ext4_mb_free_metadata() local
4707 struct rb_node **n = &db->bb_free_root.rb_node, *node; in ext4_mb_free_metadata()
4742 rb_insert_color(new_node, &db->bb_free_root); in ext4_mb_free_metadata()
4751 rb_erase(node, &(db->bb_free_root)); in ext4_mb_free_metadata()
4764 rb_erase(node, &(db->bb_free_root)); in ext4_mb_free_metadata()