Lines Matching refs:trailer

136 	struct ocfs2_dir_block_trailer *trailer;
138 trailer = ocfs2_trailer_from_bh(bh, inode->i_sb);
139 strcpy(trailer->db_signature, OCFS2_DIR_TRAILER_SIGNATURE);
140 trailer->db_compat_rec_len =
142 trailer->db_parent_dinode = cpu_to_le64(OCFS2_I(inode)->ip_blkno);
143 trailer->db_blkno = cpu_to_le64(bh->b_blocknr);
144 trailer->db_free_rec_len = cpu_to_le16(rec_len);
147 * Link an unindexed block with a dir trailer structure into the index free
157 struct ocfs2_dir_block_trailer *trailer;
165 trailer = ocfs2_trailer_from_bh(dirdata_bh, dir->i_sb);
168 trailer->db_free_next = dx_root->dr_free_blk;
422 struct ocfs2_dir_block_trailer *trailer =
440 * doesn't have a trailer. Filesystems without metaecc will do
443 rc = ocfs2_validate_meta_ecc(sb, bh->b_data, &trailer->db_check);
452 * Validate a directory trailer.
454 * We check the trailer here rather than in ocfs2_validate_dir_block()
460 struct ocfs2_dir_block_trailer *trailer;
462 trailer = ocfs2_trailer_from_bh(bh, dir->i_sb);
463 if (!OCFS2_IS_VALID_DIR_TRAILER(trailer)) {
467 trailer->db_signature);
470 if (le64_to_cpu(trailer->db_blkno) != bh->b_blocknr) {
474 (unsigned long long)le64_to_cpu(trailer->db_blkno));
477 if (le64_to_cpu(trailer->db_parent_dinode) !=
483 (unsigned long long)le64_to_cpu(trailer->db_blkno));
1187 char *trailer, *de_buf, *limit, *start = dirblock_bh->b_data;
1190 trailer = (char *)ocfs2_trailer_from_bh(dirblock_bh, sb);
1196 if (de_buf != trailer) {
1237 struct ocfs2_dir_block_trailer *trailer;
1280 trailer = ocfs2_trailer_from_bh(leaf_bh, dir->i_sb);
1281 if (trailer->db_free_rec_len == 0)
1323 trailer->db_free_rec_len = cpu_to_le16(max_rec_len);
1325 trailer->db_free_next = dx_root->dr_free_blk;
1524 struct ocfs2_dir_block_trailer *trailer, *prev;
1528 trailer = ocfs2_trailer_from_bh(lookup->dl_leaf_bh, dir->i_sb);
1533 dx_root->dr_free_blk = trailer->db_free_next;
1537 prev->db_free_next = trailer->db_free_next;
1540 trailer->db_free_rec_len = cpu_to_le16(0);
1541 trailer->db_free_next = cpu_to_le64(0);
1555 struct ocfs2_dir_block_trailer *trailer;
1565 trailer = ocfs2_trailer_from_bh(lookup->dl_leaf_bh, dir->i_sb);
1566 trailer->db_free_rec_len = cpu_to_le16(max_rec_len);
1648 * can't possibly have hit the trailer...right? */
1650 "Hit dir trailer trying to insert %.*s "
1652 "offset is %lu, trailer offset is %d\n",
2249 * insertion of '.' and '..'. The trailer wants this
2295 struct ocfs2_dir_block_trailer *trailer =
2333 if (le16_to_cpu(trailer->db_free_rec_len))
2710 * We add the dir trailer if this filesystem wants it.
2911 * Prepare the dir trailer up front. It will otherwise look