/fs/nilfs2/ |
D | dir.c | 122 unsigned int offs, rec_len; in nilfs_check_page() local 134 for (offs = 0; offs <= limit - NILFS_DIR_REC_LEN(1); offs += rec_len) { in nilfs_check_page() 136 rec_len = nilfs_rec_len_from_disk(p->rec_len); in nilfs_check_page() 138 if (rec_len < NILFS_DIR_REC_LEN(1)) in nilfs_check_page() 140 if (rec_len & 3) in nilfs_check_page() 142 if (rec_len < NILFS_DIR_REC_LEN(p->name_len)) in nilfs_check_page() 144 if (((offs + rec_len - 1) ^ offs) & ~(chunk_size-1)) in nilfs_check_page() 176 rec_len, p->name_len); in nilfs_check_page() 229 nilfs_rec_len_from_disk(p->rec_len)); in nilfs_next_entry() 290 if (de->rec_len == 0) { in nilfs_readdir() [all …]
|
/fs/ext2/ |
D | dir.c | 122 unsigned offs, rec_len; in ext2_check_page() local 134 for (offs = 0; offs <= limit - EXT2_DIR_REC_LEN(1); offs += rec_len) { in ext2_check_page() 136 rec_len = ext2_rec_len_from_disk(p->rec_len); in ext2_check_page() 138 if (unlikely(rec_len < EXT2_DIR_REC_LEN(1))) in ext2_check_page() 140 if (unlikely(rec_len & 3)) in ext2_check_page() 142 if (unlikely(rec_len < EXT2_DIR_REC_LEN(p->name_len))) in ext2_check_page() 144 if (unlikely(((offs + rec_len - 1) ^ offs) & ~(chunk_size-1))) in ext2_check_page() 183 rec_len, p->name_len); in ext2_check_page() 239 ext2_rec_len_from_disk(p->rec_len)); in ext2_next_entry() 248 if (p->rec_len == 0) in ext2_validate_entry() [all …]
|
D | ext2.h | 587 __le16 rec_len; /* Directory entry length */ member 600 __le16 rec_len; /* Directory entry length */ member
|
/fs/ufs/ |
D | dir.c | 115 unsigned offs, rec_len; in ufs_check_page() local 128 for (offs = 0; offs <= limit - UFS_DIR_REC_LEN(1); offs += rec_len) { in ufs_check_page() 130 rec_len = fs16_to_cpu(sb, p->d_reclen); in ufs_check_page() 132 if (rec_len < UFS_DIR_REC_LEN(1)) in ufs_check_page() 134 if (rec_len & 3) in ufs_check_page() 136 if (rec_len < UFS_DIR_REC_LEN(ufs_get_de_namlen(sb, p))) in ufs_check_page() 138 if (((offs + rec_len - 1) ^ offs) & ~chunk_mask) in ufs_check_page() 176 rec_len, ufs_get_de_namlen(sb, p)); in ufs_check_page() 313 unsigned short rec_len, name_len; in ufs_add_link() local 345 rec_len = chunk_size; in ufs_add_link() [all …]
|
/fs/ocfs2/ |
D | dir.c | 136 struct buffer_head *bh, u16 rec_len) in ocfs2_init_dir_trailer() argument 146 trailer->db_free_rec_len = cpu_to_le16(rec_len); in ocfs2_init_dir_trailer() 305 const int rlen = le16_to_cpu(de->rec_len); in ocfs2_check_dir_entry() 376 de_len = le16_to_cpu(de->rec_len); in ocfs2_search_dirblock() 1157 le16_add_cpu(&pde->rec_len, in __ocfs2_delete_entry() 1158 le16_to_cpu(de->rec_len)); in __ocfs2_delete_entry() 1164 i += le16_to_cpu(de->rec_len); in __ocfs2_delete_entry() 1166 de = (struct ocfs2_dir_entry *)((char *)de + le16_to_cpu(de->rec_len)); in __ocfs2_delete_entry() 1177 hole = le16_to_cpu(de->rec_len); in ocfs2_figure_dirent_hole() 1179 hole = le16_to_cpu(de->rec_len) - in ocfs2_figure_dirent_hole() [all …]
|
D | ocfs2_fs.h | 744 __le16 rec_len; /* Directory entry length */ member
|
/fs/ext4/ |
D | namei.c | 135 else if (ext4_rec_len_from_disk(dirent->rec_len, in __ext4_read_dirblock() 191 __le16 rec_len; member 320 while (d < top && d->rec_len) in get_dirent_tail() 322 le16_to_cpu(d->rec_len)); in get_dirent_tail() 415 if (le16_to_cpu(dirent->rec_len) == EXT4_BLOCK_SIZE(inode->i_sb)) in get_dx_countlimit() 417 else if (le16_to_cpu(dirent->rec_len) == 12) { in get_dx_countlimit() 419 if (le16_to_cpu(dp->rec_len) != in get_dx_countlimit() 524 ext4_rec_len_from_disk(p->rec_len, blocksize)); in ext4_next_entry() 1222 map_tail->size = le16_to_cpu(de->rec_len); in dx_make_map() 1402 de_len = ext4_rec_len_from_disk(de->rec_len, in ext4_search_dir() [all …]
|
D | dir.c | 73 const int rlen = ext4_rec_len_from_disk(de->rec_len, in __ext4_check_dir_entry() 227 if (ext4_rec_len_from_disk(de->rec_len, in ext4_readdir() 230 i += ext4_rec_len_from_disk(de->rec_len, in ext4_readdir() 252 offset += ext4_rec_len_from_disk(de->rec_len, in ext4_readdir() 281 ctx->pos += ext4_rec_len_from_disk(de->rec_len, in ext4_readdir() 648 rlen = ext4_rec_len_from_disk(de->rec_len, buf_size); in ext4_check_all_de()
|
D | inline.c | 1008 de_len = ext4_rec_len_from_disk(de->rec_len, inline_size); in ext4_show_inline_dir() 1096 de_len = ext4_rec_len_from_disk(de->rec_len, old_size); in ext4_update_final_de() 1101 prev_de->rec_len = ext4_rec_len_to_disk(de_len + new_size - in ext4_update_final_de() 1106 de->rec_len = ext4_rec_len_to_disk(new_size, new_size); in ext4_update_final_de() 1394 fake.rec_len = ext4_rec_len_to_disk( in ext4_inlinedir_to_tree() 1404 fake.rec_len = ext4_rec_len_to_disk( in ext4_inlinedir_to_tree() 1412 pos += ext4_rec_len_from_disk(de->rec_len, inline_size); in ext4_inlinedir_to_tree() 1538 if (ext4_rec_len_from_disk(de->rec_len, extra_size) in ext4_read_inline_dir() 1541 i += ext4_rec_len_from_disk(de->rec_len, in ext4_read_inline_dir() 1575 ctx->pos += ext4_rec_len_from_disk(de->rec_len, extra_size); in ext4_read_inline_dir() [all …]
|
D | ext4.h | 1954 __le16 rec_len; /* Directory entry length */ member 1967 __le16 rec_len; /* Directory entry length */ member
|
/fs/hfs/ |
D | bfind.c | 149 int hfs_brec_read(struct hfs_find_data *fd, void *rec, int rec_len) in hfs_brec_read() argument 156 if (fd->entrylength > rec_len) in hfs_brec_read()
|
/fs/hfsplus/ |
D | bfind.c | 218 int hfs_brec_read(struct hfs_find_data *fd, void *rec, int rec_len) in hfs_brec_read() argument 225 if (fd->entrylength > rec_len) in hfs_brec_read()
|
D | hfsplus_fs.h | 441 int hfs_brec_read(struct hfs_find_data *fd, void *rec, int rec_len);
|
/fs/xfs/libxfs/ |
D | xfs_alloc_btree.c | 431 .rec_len = sizeof(xfs_alloc_rec_t), 453 .rec_len = sizeof(xfs_alloc_rec_t),
|
D | xfs_ialloc_btree.c | 361 .rec_len = sizeof(xfs_inobt_rec_t), 382 .rec_len = sizeof(xfs_inobt_rec_t),
|
D | xfs_iext_tree.c | 294 uint32_t rec_len = rec->hi & XFS_IEXT_LENGTH_MASK; in xfs_iext_rec_cmp() local 298 if (rec_offset + rec_len <= offset) in xfs_iext_rec_cmp()
|
D | xfs_btree.h | 98 size_t rec_len; member
|
D | xfs_refcount_btree.c | 293 .rec_len = sizeof(struct xfs_refcount_rec),
|
D | xfs_rmap_btree.c | 431 .rec_len = sizeof(struct xfs_rmap_rec),
|
D | xfs_bmap_btree.c | 520 .rec_len = sizeof(xfs_bmbt_rec_t),
|
D | xfs_btree.c | 550 (n - 1) * cur->bc_ops->rec_len; in xfs_btree_rec_offset() 1363 memcpy(dst_rec, src_rec, numrecs * cur->bc_ops->rec_len); in xfs_btree_copy_recs() 1414 dst_rec = (char *)rec + (dir * cur->bc_ops->rec_len); in xfs_btree_shift_recs() 1415 memmove(dst_rec, rec, numrecs * cur->bc_ops->rec_len); in xfs_btree_shift_recs()
|
/fs/gfs2/ |
D | dir.c | 614 u16 rec_len = be16_to_cpu(d->de_rec_len); in dirent_check_reclen() local 616 if (unlikely(rec_len < sizeof(struct gfs2_dirent))) in dirent_check_reclen() 618 ptr += rec_len; in dirent_check_reclen() 620 return rec_len; in dirent_check_reclen()
|
/fs/xfs/scrub/ |
D | btree.c | 146 memcpy(&bs->lastrec, rec, cur->bc_ops->rec_len); in xchk_btree_rec()
|