/fs/ext2/ |
D | dir.c | 116 unsigned offs, rec_len; in ext2_check_page() local 128 for (offs = 0; offs <= limit - EXT2_DIR_REC_LEN(1); offs += rec_len) { in ext2_check_page() 130 rec_len = ext2_rec_len_from_disk(p->rec_len); in ext2_check_page() 132 if (rec_len < EXT2_DIR_REC_LEN(1)) in ext2_check_page() 134 if (rec_len & 3) in ext2_check_page() 136 if (rec_len < EXT2_DIR_REC_LEN(p->name_len)) in ext2_check_page() 138 if (((offs + rec_len - 1) ^ offs) & ~(chunk_size-1)) in ext2_check_page() 177 rec_len, p->name_len); in ext2_check_page() 233 ext2_rec_len_from_disk(p->rec_len)); in ext2_next_entry() 242 if (p->rec_len == 0) in ext2_validate_entry() [all …]
|
/fs/ocfs2/ |
D | dir.c | 165 const int rlen = le16_to_cpu(de->rec_len); in ocfs2_check_dir_entry() 236 de_len = le16_to_cpu(de->rec_len); in ocfs2_search_dirblock() 573 le16_add_cpu(&pde->rec_len, in __ocfs2_delete_entry() 574 le16_to_cpu(de->rec_len)); in __ocfs2_delete_entry() 581 i += le16_to_cpu(de->rec_len); in __ocfs2_delete_entry() 583 de = (struct ocfs2_dir_entry *)((char *)de + le16_to_cpu(de->rec_len)); in __ocfs2_delete_entry() 652 le16_to_cpu(de->rec_len) >= new_rec_len) in ocfs2_dirent_would_fit() 660 if (le16_to_cpu(de->rec_len) >= (de_really_used + new_rec_len)) in ocfs2_dirent_would_fit() 680 unsigned short rec_len; in __ocfs2_add_entry() local 700 rec_len = OCFS2_DIR_REC_LEN(namelen); in __ocfs2_add_entry() [all …]
|
D | ocfs2_fs.h | 749 __le16 rec_len; /* Directory entry length */ member
|
/fs/ufs/ |
D | dir.c | 117 unsigned offs, rec_len; in ufs_check_page() local 130 for (offs = 0; offs <= limit - UFS_DIR_REC_LEN(1); offs += rec_len) { in ufs_check_page() 132 rec_len = fs16_to_cpu(sb, p->d_reclen); in ufs_check_page() 134 if (rec_len < UFS_DIR_REC_LEN(1)) in ufs_check_page() 136 if (rec_len & 3) in ufs_check_page() 138 if (rec_len < UFS_DIR_REC_LEN(ufs_get_de_namlen(sb, p))) in ufs_check_page() 140 if (((offs + rec_len - 1) ^ offs) & ~chunk_mask) in ufs_check_page() 178 rec_len, ufs_get_de_namlen(sb, p)); in ufs_check_page() 321 unsigned short rec_len, name_len; in ufs_add_link() local 353 rec_len = chunk_size; in ufs_add_link() [all …]
|
/fs/ext3/ |
D | namei.c | 86 __le16 rec_len; member 188 ext3_rec_len_from_disk(p->rec_len)); in ext3_next_entry() 725 map_tail->size = le16_to_cpu(de->rec_len); in dx_make_map() 832 de_len = ext3_rec_len_from_disk(de->rec_len); in search_dirblock() 1104 unsigned rec_len = 0; in dx_move_dirents() local 1108 rec_len = EXT3_DIR_REC_LEN(de->name_len); in dx_move_dirents() 1109 memcpy (to, de, rec_len); in dx_move_dirents() 1110 ((struct ext3_dir_entry_2 *) to)->rec_len = in dx_move_dirents() 1111 ext3_rec_len_to_disk(rec_len); in dx_move_dirents() 1114 to += rec_len; in dx_move_dirents() [all …]
|
D | dir.c | 70 const int rlen = ext3_rec_len_from_disk(de->rec_len); in ext3_check_dir_entry() 180 if (ext3_rec_len_from_disk(de->rec_len) < in ext3_readdir() 183 i += ext3_rec_len_from_disk(de->rec_len); in ext3_readdir() 204 offset += ext3_rec_len_from_disk(de->rec_len); in ext3_readdir() 226 filp->f_pos += ext3_rec_len_from_disk(de->rec_len); in ext3_readdir()
|
/fs/ext4/ |
D | namei.c | 86 __le16 rec_len; member 190 ext4_rec_len_from_disk(p->rec_len)); in ext4_next_entry() 730 map_tail->size = le16_to_cpu(de->rec_len); in dx_make_map() 835 de_len = ext4_rec_len_from_disk(de->rec_len); in search_dirblock() 1114 unsigned rec_len = 0; in dx_move_dirents() local 1118 rec_len = EXT4_DIR_REC_LEN(de->name_len); in dx_move_dirents() 1119 memcpy (to, de, rec_len); in dx_move_dirents() 1120 ((struct ext4_dir_entry_2 *) to)->rec_len = in dx_move_dirents() 1121 ext4_rec_len_to_disk(rec_len); in dx_move_dirents() 1124 to += rec_len; in dx_move_dirents() [all …]
|
D | dir.c | 70 const int rlen = ext4_rec_len_from_disk(de->rec_len); in ext4_check_dir_entry() 181 if (ext4_rec_len_from_disk(de->rec_len) in ext4_readdir() 184 i += ext4_rec_len_from_disk(de->rec_len); in ext4_readdir() 206 offset += ext4_rec_len_from_disk(de->rec_len); in ext4_readdir() 228 filp->f_pos += ext4_rec_len_from_disk(de->rec_len); in ext4_readdir()
|
D | ext4.h | 822 __le16 rec_len; /* Directory entry length */ member 835 __le16 rec_len; /* Directory entry length */ member
|
/fs/hfsplus/ |
D | bfind.c | 137 int hfs_brec_read(struct hfs_find_data *fd, void *rec, int rec_len) in hfs_brec_read() argument 144 if (fd->entrylength > rec_len) in hfs_brec_read()
|
/fs/hfs/ |
D | bfind.c | 146 int hfs_brec_read(struct hfs_find_data *fd, void *rec, int rec_len) in hfs_brec_read() argument 153 if (fd->entrylength > rec_len) in hfs_brec_read()
|
/fs/xfs/ |
D | xfs_btree.h | 146 size_t rec_len; member
|
D | xfs_ialloc_btree.c | 311 .rec_len = sizeof(xfs_inobt_rec_t),
|
D | xfs_alloc_btree.c | 420 .rec_len = sizeof(xfs_alloc_rec_t),
|
D | xfs_btree.c | 350 (n - 1) * cur->bc_ops->rec_len; in xfs_btree_rec_offset() 1095 memcpy(dst_rec, src_rec, numrecs * cur->bc_ops->rec_len); in xfs_btree_copy_recs() 1146 dst_rec = (char *)rec + (dir * cur->bc_ops->rec_len); in xfs_btree_shift_recs() 1147 memmove(dst_rec, rec, numrecs * cur->bc_ops->rec_len); in xfs_btree_shift_recs()
|
D | xfs_bmap_btree.c | 837 .rec_len = sizeof(xfs_bmbt_rec_t),
|
/fs/gfs2/ |
D | dir.c | 565 u16 rec_len = be16_to_cpu(d->de_rec_len); in dirent_check_reclen() local 567 if (unlikely(rec_len < sizeof(struct gfs2_dirent))) in dirent_check_reclen() 569 ptr += rec_len; in dirent_check_reclen() 571 return rec_len; in dirent_check_reclen()
|