fs/ext4/namei.c
2159
static bool ext4_check_dx_root(struct inode *dir, struct dx_root *root)
fs/ext4/namei.c
2214
struct dx_root *root;
fs/ext4/namei.c
2240
root = (struct dx_root *) bh->b_data;
fs/ext4/namei.c
2608
struct dx_root *dxroot;
fs/ext4/namei.c
2616
dxroot = (struct dx_root *)frames[0].bh->b_data;
fs/ext4/namei.c
783
struct dx_root *root;
fs/ext4/namei.c
795
root = (struct dx_root *) frame->bh->b_data;
fs/ext4/namei.c
947
info = &((struct dx_root *)frames[0].bh->b_data)->info;
fs/ocfs2/alloc.c
339
struct ocfs2_dx_root_block *dx_root = et->et_object;
fs/ocfs2/alloc.c
341
dx_root->dr_last_eb_blk = cpu_to_le64(blkno);
fs/ocfs2/alloc.c
346
struct ocfs2_dx_root_block *dx_root = et->et_object;
fs/ocfs2/alloc.c
348
return le64_to_cpu(dx_root->dr_last_eb_blk);
fs/ocfs2/alloc.c
354
struct ocfs2_dx_root_block *dx_root = et->et_object;
fs/ocfs2/alloc.c
356
le32_add_cpu(&dx_root->dr_clusters, clusters);
fs/ocfs2/alloc.c
361
struct ocfs2_dx_root_block *dx_root = et->et_object;
fs/ocfs2/alloc.c
363
BUG_ON(!OCFS2_IS_VALID_DX_ROOT(dx_root));
fs/ocfs2/alloc.c
370
struct ocfs2_dx_root_block *dx_root = et->et_object;
fs/ocfs2/alloc.c
372
et->et_root_el = &dx_root->dr_list;
fs/ocfs2/dir.c
1054
struct ocfs2_dx_root_block *dx_root;
fs/ocfs2/dir.c
1069
dx_root = (struct ocfs2_dx_root_block *) dx_root_bh->b_data;
fs/ocfs2/dir.c
1071
ret = ocfs2_dx_dir_search(name, namelen, dir, dx_root, lookup);
fs/ocfs2/dir.c
1294
struct ocfs2_dx_root_block *dx_root;
fs/ocfs2/dir.c
1308
dx_root = (struct ocfs2_dx_root_block *)dx_root_bh->b_data;
fs/ocfs2/dir.c
1309
if (ocfs2_dx_root_inline(dx_root)) {
fs/ocfs2/dir.c
1310
entry_list = &dx_root->dr_entries;
fs/ocfs2/dir.c
1358
if (!ocfs2_dx_root_inline(dx_root)) {
fs/ocfs2/dir.c
1381
trailer->db_free_next = dx_root->dr_free_blk;
fs/ocfs2/dir.c
1382
dx_root->dr_free_blk = cpu_to_le64(leaf_bh->b_blocknr);
fs/ocfs2/dir.c
1389
le32_add_cpu(&dx_root->dr_num_entries, -1);
fs/ocfs2/dir.c
1394
if (!ocfs2_dx_root_inline(dx_root))
fs/ocfs2/dir.c
1536
struct ocfs2_dx_root_block *dx_root)
fs/ocfs2/dir.c
1538
ocfs2_dx_entry_list_insert(&dx_root->dr_entries, hinfo, dirent_blk);
fs/ocfs2/dir.c
1545
struct ocfs2_dx_root_block *dx_root;
fs/ocfs2/dir.c
1555
dx_root = (struct ocfs2_dx_root_block *)lookup->dl_dx_root_bh->b_data;
fs/ocfs2/dir.c
1556
if (ocfs2_dx_root_inline(dx_root)) {
fs/ocfs2/dir.c
156
struct ocfs2_dx_root_block *dx_root;
fs/ocfs2/dir.c
1560
dx_root);
fs/ocfs2/dir.c
1569
le32_add_cpu(&dx_root->dr_num_entries, 1);
fs/ocfs2/dir.c
1581
struct ocfs2_dx_root_block *dx_root;
fs/ocfs2/dir.c
1588
dx_root = (struct ocfs2_dx_root_block *)bh->b_data;
fs/ocfs2/dir.c
1589
dx_root->dr_free_blk = trailer->db_free_next;
fs/ocfs2/dir.c
166
dx_root = (struct ocfs2_dx_root_block *)dx_root_bh->b_data;
fs/ocfs2/dir.c
168
trailer->db_free_next = dx_root->dr_free_blk;
fs/ocfs2/dir.c
169
dx_root->dr_free_blk = cpu_to_le64(dirdata_bh->b_blocknr);
fs/ocfs2/dir.c
197
static inline int ocfs2_dx_root_inline(struct ocfs2_dx_root_block *dx_root)
fs/ocfs2/dir.c
199
return dx_root->dr_flags & OCFS2_DX_FLAG_INLINE;
fs/ocfs2/dir.c
2141
struct ocfs2_dx_root_block *dx_root;
fs/ocfs2/dir.c
2157
dx_root = (struct ocfs2_dx_root_block *)dx_root_bh->b_data;
fs/ocfs2/dir.c
2159
if (le32_to_cpu(dx_root->dr_num_entries) != 2)
fs/ocfs2/dir.c
2358
struct ocfs2_dx_root_block *dx_root;
fs/ocfs2/dir.c
2387
dx_root = (struct ocfs2_dx_root_block *)dx_root_bh->b_data;
fs/ocfs2/dir.c
2388
memset(dx_root, 0, osb->sb->s_blocksize);
fs/ocfs2/dir.c
2389
strscpy(dx_root->dr_signature, OCFS2_DX_ROOT_SIGNATURE);
fs/ocfs2/dir.c
2390
dx_root->dr_suballoc_slot = cpu_to_le16(meta_ac->ac_alloc_slot);
fs/ocfs2/dir.c
2391
dx_root->dr_suballoc_loc = cpu_to_le64(suballoc_loc);
fs/ocfs2/dir.c
2392
dx_root->dr_suballoc_bit = cpu_to_le16(dr_suballoc_bit);
fs/ocfs2/dir.c
2393
dx_root->dr_fs_generation = cpu_to_le32(osb->fs_generation);
fs/ocfs2/dir.c
2394
dx_root->dr_blkno = cpu_to_le64(dr_blkno);
fs/ocfs2/dir.c
2395
dx_root->dr_dir_blkno = cpu_to_le64(OCFS2_I(dir)->ip_blkno);
fs/ocfs2/dir.c
2396
dx_root->dr_num_entries = cpu_to_le32(num_entries);
fs/ocfs2/dir.c
2398
dx_root->dr_free_blk = cpu_to_le64(dirdata_bh->b_blocknr);
fs/ocfs2/dir.c
2400
dx_root->dr_free_blk = cpu_to_le64(0);
fs/ocfs2/dir.c
2403
dx_root->dr_flags |= OCFS2_DX_FLAG_INLINE;
fs/ocfs2/dir.c
2404
dx_root->dr_entries.de_count =
fs/ocfs2/dir.c
2407
dx_root->dr_list.l_count =
fs/ocfs2/dir.c
2580
struct ocfs2_dx_root_block *dx_root;
fs/ocfs2/dir.c
2607
dx_root = (struct ocfs2_dx_root_block *)dx_root_bh->b_data;
fs/ocfs2/dir.c
2608
entry_list = &dx_root->dr_entries;
fs/ocfs2/dir.c
2699
struct ocfs2_dx_root_block *dx_root;
fs/ocfs2/dir.c
2704
dx_root = (struct ocfs2_dx_root_block *)dx_root_bh->b_data;
fs/ocfs2/dir.c
2721
le16_to_cpu(dx_root->dr_entries.de_num_used));
fs/ocfs2/dir.c
2723
ocfs2_dx_entry_list_insert(&dx_root->dr_entries, &hinfo,
fs/ocfs2/dir.c
2726
le32_add_cpu(&dx_root->dr_num_entries, 1);
fs/ocfs2/dir.c
3733
struct ocfs2_dx_root_block *dx_root)
fs/ocfs2/dir.c
3737
credits += ocfs2_calc_extend_credits(osb->sb, &dx_root->dr_list);
fs/ocfs2/dir.c
3762
struct ocfs2_dx_root_block *dx_root;
fs/ocfs2/dir.c
3771
dx_root = (struct ocfs2_dx_root_block *)dx_root_bh->b_data;
fs/ocfs2/dir.c
3776
if (le32_to_cpu(dx_root->dr_clusters) == UINT_MAX)
fs/ocfs2/dir.c
3809
credits = ocfs2_dx_dir_rebalance_credits(osb, dx_root);
fs/ocfs2/dir.c
3948
struct ocfs2_dx_root_block *dx_root;
fs/ocfs2/dir.c
3954
dx_root = (struct ocfs2_dx_root_block *)dx_root_bh->b_data;
fs/ocfs2/dir.c
3957
ret = ocfs2_dx_dir_lookup(dir, &dx_root->dr_list, &lookup->dl_hinfo,
fs/ocfs2/dir.c
4024
struct ocfs2_dx_root_block *dx_root;
fs/ocfs2/dir.c
4026
dx_root = (struct ocfs2_dx_root_block *)dx_root_bh->b_data;
fs/ocfs2/dir.c
4027
next_block = le64_to_cpu(dx_root->dr_free_blk);
fs/ocfs2/dir.c
4072
struct ocfs2_dx_root_block *dx_root;
fs/ocfs2/dir.c
4126
dx_root = (struct ocfs2_dx_root_block *) dx_root_bh->b_data;
fs/ocfs2/dir.c
4127
entry_list = &dx_root->dr_entries;
fs/ocfs2/dir.c
4142
dx_root->dr_flags &= ~OCFS2_DX_FLAG_INLINE;
fs/ocfs2/dir.c
4144
dx_root->dr_list.l_tree_depth = 0;
fs/ocfs2/dir.c
4145
dx_root->dr_list.l_count =
fs/ocfs2/dir.c
4147
dx_root->dr_list.l_next_free_rec = 0;
fs/ocfs2/dir.c
4148
memset(&dx_root->dr_list.l_recs, 0,
fs/ocfs2/dir.c
4185
struct ocfs2_dx_root_block *dx_root;
fs/ocfs2/dir.c
4188
dx_root = (struct ocfs2_dx_root_block *) dx_root_bh->b_data;
fs/ocfs2/dir.c
4189
entry_list = &dx_root->dr_entries;
fs/ocfs2/dir.c
4209
struct ocfs2_dx_root_block *dx_root;
fs/ocfs2/dir.c
4217
dx_root = (struct ocfs2_dx_root_block *)dx_root_bh->b_data;
fs/ocfs2/dir.c
4218
if (le32_to_cpu(dx_root->dr_num_entries) == OCFS2_DX_ENTRIES_MAX) {
fs/ocfs2/dir.c
4224
if (ocfs2_dx_root_inline(dx_root)) {
fs/ocfs2/dir.c
4378
struct ocfs2_dx_root_block *dx_root;
fs/ocfs2/dir.c
4386
dx_root = (struct ocfs2_dx_root_block *) dx_root_bh->b_data;
fs/ocfs2/dir.c
4390
le16_to_cpu(dx_root->dr_suballoc_slot));
fs/ocfs2/dir.c
4427
blk = le64_to_cpu(dx_root->dr_blkno);
fs/ocfs2/dir.c
4428
bit = le16_to_cpu(dx_root->dr_suballoc_bit);
fs/ocfs2/dir.c
4429
if (dx_root->dr_suballoc_loc)
fs/ocfs2/dir.c
4430
bg_blkno = le64_to_cpu(dx_root->dr_suballoc_loc);
fs/ocfs2/dir.c
4460
struct ocfs2_dx_root_block *dx_root;
fs/ocfs2/dir.c
4475
dx_root = (struct ocfs2_dx_root_block *)dx_root_bh->b_data;
fs/ocfs2/dir.c
4477
if (ocfs2_dx_root_inline(dx_root))
fs/ocfs2/dir.c
4483
while (le32_to_cpu(dx_root->dr_clusters)) {
fs/ocfs2/dir.c
4484
ret = ocfs2_dx_dir_lookup_rec(dir, &dx_root->dr_list,
fs/ocfs2/dir.c
586
struct ocfs2_dx_root_block *dx_root;
fs/ocfs2/dir.c
590
dx_root = (struct ocfs2_dx_root_block *) bh->b_data;
fs/ocfs2/dir.c
592
ret = ocfs2_validate_meta_ecc(sb, bh->b_data, &dx_root->dr_check);
fs/ocfs2/dir.c
600
if (!OCFS2_IS_VALID_DX_ROOT(dx_root)) {
fs/ocfs2/dir.c
603
(unsigned long long)le64_to_cpu(dx_root->dr_blkno),
fs/ocfs2/dir.c
604
7, dx_root->dr_signature);
fs/ocfs2/dir.c
608
if (!(dx_root->dr_flags & OCFS2_DX_FLAG_INLINE)) {
fs/ocfs2/dir.c
609
struct ocfs2_extent_list *el = &dx_root->dr_list;
fs/ocfs2/dir.c
614
(unsigned long long)le64_to_cpu(dx_root->dr_blkno),
fs/ocfs2/dir.c
623
(unsigned long long)le64_to_cpu(dx_root->dr_blkno),
fs/ocfs2/dir.c
934
struct ocfs2_dx_root_block *dx_root,
fs/ocfs2/dir.c
950
if (ocfs2_dx_root_inline(dx_root)) {
fs/ocfs2/dir.c
951
entry_list = &dx_root->dr_entries;
fs/ocfs2/dir.c
955
dr_el = &dx_root->dr_list;