• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/fs/ocfs2/

Lines Matching defs:trailer

150 	struct ocfs2_dir_block_trailer *trailer;
152 trailer = ocfs2_trailer_from_bh(bh, inode->i_sb);
153 strcpy(trailer->db_signature, OCFS2_DIR_TRAILER_SIGNATURE);
154 trailer->db_compat_rec_len =
156 trailer->db_parent_dinode = cpu_to_le64(OCFS2_I(inode)->ip_blkno);
157 trailer->db_blkno = cpu_to_le64(bh->b_blocknr);
158 trailer->db_free_rec_len = cpu_to_le16(rec_len);
161 * Link an unindexed block with a dir trailer structure into the index free
171 struct ocfs2_dir_block_trailer *trailer;
179 trailer = ocfs2_trailer_from_bh(dirdata_bh, dir->i_sb);
182 trailer->db_free_next = dx_root->dr_free_blk;
432 struct ocfs2_dir_block_trailer *trailer =
451 * doesn't have a trailer. Filesystems without metaecc will do
454 rc = ocfs2_validate_meta_ecc(sb, bh->b_data, &trailer->db_check);
463 * Validate a directory trailer.
465 * We check the trailer here rather than in ocfs2_validate_dir_block()
471 struct ocfs2_dir_block_trailer *trailer;
473 trailer = ocfs2_trailer_from_bh(bh, dir->i_sb);
474 if (!OCFS2_IS_VALID_DIR_TRAILER(trailer)) {
480 trailer->db_signature);
483 if (le64_to_cpu(trailer->db_blkno) != bh->b_blocknr) {
489 (unsigned long long)le64_to_cpu(trailer->db_blkno));
492 if (le64_to_cpu(trailer->db_parent_dinode) !=
501 (unsigned long long)le64_to_cpu(trailer->db_blkno));
1212 char *trailer, *de_buf, *limit, *start = dirblock_bh->b_data;
1215 trailer = (char *)ocfs2_trailer_from_bh(dirblock_bh, sb);
1221 if (de_buf != trailer) {
1262 struct ocfs2_dir_block_trailer *trailer;
1305 trailer = ocfs2_trailer_from_bh(leaf_bh, dir->i_sb);
1306 if (trailer->db_free_rec_len == 0)
1348 trailer->db_free_rec_len = cpu_to_le16(max_rec_len);
1350 trailer->db_free_next = dx_root->dr_free_blk;
1549 struct ocfs2_dir_block_trailer *trailer, *prev;
1553 trailer = ocfs2_trailer_from_bh(lookup->dl_leaf_bh, dir->i_sb);
1558 dx_root->dr_free_blk = trailer->db_free_next;
1562 prev->db_free_next = trailer->db_free_next;
1565 trailer->db_free_rec_len = cpu_to_le16(0);
1566 trailer->db_free_next = cpu_to_le64(0);
1580 struct ocfs2_dir_block_trailer *trailer;
1590 trailer = ocfs2_trailer_from_bh(lookup->dl_leaf_bh, dir->i_sb);
1591 trailer->db_free_rec_len = cpu_to_le16(max_rec_len);
1670 * can't possibly have hit the trailer...right? */
1672 "Hit dir trailer trying to insert %.*s "
1674 "offset is %lu, trailer offset is %d\n",
2323 * insertion of '.' and '..'. The trailer wants this
2370 struct ocfs2_dir_block_trailer *trailer =
2408 if (le16_to_cpu(trailer->db_free_rec_len))
2776 * We add the dir trailer if this filesystem wants it.
2977 * Prepare the dir trailer up front. It will otherwise look