Lines Matching refs:deh
54 struct reiserfs_de_head *deh) in is_privroot_deh() argument
58 deh->deh_objectid == INODE_PKEY(privroot->d_inode)->k_objectid); in is_privroot_deh()
122 struct reiserfs_de_head *deh = in reiserfs_readdir_dentry() local
126 entry_num++, deh++) { in reiserfs_readdir_dentry()
131 loff_t cur_pos = deh_offset(deh); in reiserfs_readdir_dentry()
133 if (!de_visible(deh)) in reiserfs_readdir_dentry()
137 d_name = B_I_DEH_ENTRY_FILE_NAME(bh, ih, deh); in reiserfs_readdir_dentry()
159 if (is_privroot_deh(dentry, deh)) in reiserfs_readdir_dentry()
162 d_off = deh_offset(deh); in reiserfs_readdir_dentry()
164 d_ino = deh_objectid(deh); in reiserfs_readdir_dentry()
260 struct reiserfs_de_head *deh; in make_empty_dir_item_v1() local
263 deh = (struct reiserfs_de_head *)body; in make_empty_dir_item_v1()
266 put_deh_offset(&(deh[0]), DOT_OFFSET); in make_empty_dir_item_v1()
268 deh[0].deh_dir_id = dirid; in make_empty_dir_item_v1()
269 deh[0].deh_objectid = objid; in make_empty_dir_item_v1()
270 deh[0].deh_state = 0; /* Endian safe if 0 */ in make_empty_dir_item_v1()
271 put_deh_location(&(deh[0]), EMPTY_DIR_SIZE_V1 - strlen(".")); in make_empty_dir_item_v1()
272 mark_de_visible(&(deh[0])); in make_empty_dir_item_v1()
275 put_deh_offset(&(deh[1]), DOT_DOT_OFFSET); in make_empty_dir_item_v1()
278 deh[1].deh_dir_id = par_dirid; in make_empty_dir_item_v1()
279 deh[1].deh_objectid = par_objid; in make_empty_dir_item_v1()
280 deh[1].deh_state = 0; /* Endian safe if 0 */ in make_empty_dir_item_v1()
281 put_deh_location(&(deh[1]), deh_location(&(deh[0])) - strlen("..")); in make_empty_dir_item_v1()
282 mark_de_visible(&(deh[1])); in make_empty_dir_item_v1()
285 memcpy(body + deh_location(&(deh[0])), ".", 1); in make_empty_dir_item_v1()
286 memcpy(body + deh_location(&(deh[1])), "..", 2); in make_empty_dir_item_v1()
293 struct reiserfs_de_head *deh; in make_empty_dir_item() local
296 deh = (struct reiserfs_de_head *)body; in make_empty_dir_item()
299 put_deh_offset(&(deh[0]), DOT_OFFSET); in make_empty_dir_item()
301 deh[0].deh_dir_id = dirid; in make_empty_dir_item()
302 deh[0].deh_objectid = objid; in make_empty_dir_item()
303 deh[0].deh_state = 0; /* Endian safe if 0 */ in make_empty_dir_item()
304 put_deh_location(&(deh[0]), EMPTY_DIR_SIZE - ROUND_UP(strlen("."))); in make_empty_dir_item()
305 mark_de_visible(&(deh[0])); in make_empty_dir_item()
308 put_deh_offset(&(deh[1]), DOT_DOT_OFFSET); in make_empty_dir_item()
311 deh[1].deh_dir_id = par_dirid; in make_empty_dir_item()
312 deh[1].deh_objectid = par_objid; in make_empty_dir_item()
313 deh[1].deh_state = 0; /* Endian safe if 0 */ in make_empty_dir_item()
314 put_deh_location(&(deh[1]), in make_empty_dir_item()
315 deh_location(&(deh[0])) - ROUND_UP(strlen(".."))); in make_empty_dir_item()
316 mark_de_visible(&(deh[1])); in make_empty_dir_item()
319 memcpy(body + deh_location(&(deh[0])), ".", 1); in make_empty_dir_item()
320 memcpy(body + deh_location(&(deh[1])), "..", 2); in make_empty_dir_item()