Lines Matching refs:trailer
138 struct ocfs2_dir_block_trailer *trailer;
140 trailer = ocfs2_trailer_from_bh(bh, inode->i_sb);
141 strcpy(trailer->db_signature, OCFS2_DIR_TRAILER_SIGNATURE);
142 trailer->db_compat_rec_len =
144 trailer->db_parent_dinode = cpu_to_le64(OCFS2_I(inode)->ip_blkno);
145 trailer->db_blkno = cpu_to_le64(bh->b_blocknr);
146 trailer->db_free_rec_len = cpu_to_le16(rec_len);
149 * Link an unindexed block with a dir trailer structure into the index free
159 struct ocfs2_dir_block_trailer *trailer;
167 trailer = ocfs2_trailer_from_bh(dirdata_bh, dir->i_sb);
170 trailer->db_free_next = dx_root->dr_free_blk;
430 struct ocfs2_dir_block_trailer *trailer =
448 * doesn't have a trailer. Filesystems without metaecc will do
451 rc = ocfs2_validate_meta_ecc(sb, bh->b_data, &trailer->db_check);
460 * Validate a directory trailer.
462 * We check the trailer here rather than in ocfs2_validate_dir_block()
468 struct ocfs2_dir_block_trailer *trailer;
470 trailer = ocfs2_trailer_from_bh(bh, dir->i_sb);
471 if (!OCFS2_IS_VALID_DIR_TRAILER(trailer)) {
475 trailer->db_signature);
478 if (le64_to_cpu(trailer->db_blkno) != bh->b_blocknr) {
482 (unsigned long long)le64_to_cpu(trailer->db_blkno));
485 if (le64_to_cpu(trailer->db_parent_dinode) !=
491 (unsigned long long)le64_to_cpu(trailer->db_blkno));
1195 char *trailer, *de_buf, *limit, *start = dirblock_bh->b_data;
1198 trailer = (char *)ocfs2_trailer_from_bh(dirblock_bh, sb);
1204 if (de_buf != trailer) {
1245 struct ocfs2_dir_block_trailer *trailer;
1288 trailer = ocfs2_trailer_from_bh(leaf_bh, dir->i_sb);
1289 if (trailer->db_free_rec_len == 0)
1331 trailer->db_free_rec_len = cpu_to_le16(max_rec_len);
1333 trailer->db_free_next = dx_root->dr_free_blk;
1532 struct ocfs2_dir_block_trailer *trailer, *prev;
1536 trailer = ocfs2_trailer_from_bh(lookup->dl_leaf_bh, dir->i_sb);
1541 dx_root->dr_free_blk = trailer->db_free_next;
1545 prev->db_free_next = trailer->db_free_next;
1548 trailer->db_free_rec_len = cpu_to_le16(0);
1549 trailer->db_free_next = cpu_to_le64(0);
1563 struct ocfs2_dir_block_trailer *trailer;
1573 trailer = ocfs2_trailer_from_bh(lookup->dl_leaf_bh, dir->i_sb);
1574 trailer->db_free_rec_len = cpu_to_le16(max_rec_len);
1660 * can't possibly have hit the trailer...right? */
1662 "Hit dir trailer trying to insert %.*s "
1664 "offset is %lu, trailer offset is %d\n",
2262 * insertion of '.' and '..'. The trailer wants this
2308 struct ocfs2_dir_block_trailer *trailer =
2346 if (le16_to_cpu(trailer->db_free_rec_len))
2723 * We add the dir trailer if this filesystem wants it.
2924 * Prepare the dir trailer up front. It will otherwise look