summaryrefslogtreecommitdiff
path: root/fs/ocfs2/dir.h
diff options
context:
space:
mode:
authorJoel Becker <joel.becker@oracle.com>2008-12-11 01:58:22 (GMT)
committerMark Fasheh <mfasheh@suse.com>2009-01-05 16:40:34 (GMT)
commitc175a518b4a1d514483abf61813ce5d855917164 (patch)
treee437a3d1377fab38c1d8ef6289fd9ea3590d09b2 /fs/ocfs2/dir.h
parent87d35a74b15ec703910a63e0667692fb5e267be0 (diff)
downloadlinux-fsl-qoriq-c175a518b4a1d514483abf61813ce5d855917164.tar.xz
ocfs2: Checksum and ECC for directory blocks.
Use the db_check field of ocfs2_dir_block_trailer to crc/ecc the dirblocks. Signed-off-by: Joel Becker <joel.becker@oracle.com> Signed-off-by: Mark Fasheh <mfasheh@suse.com>
Diffstat (limited to 'fs/ocfs2/dir.h')
-rw-r--r--fs/ocfs2/dir.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/ocfs2/dir.h b/fs/ocfs2/dir.h
index ce48b90..c511e2e 100644
--- a/fs/ocfs2/dir.h
+++ b/fs/ocfs2/dir.h
@@ -83,4 +83,6 @@ int ocfs2_fill_new_dir(struct ocfs2_super *osb,
struct buffer_head *fe_bh,
struct ocfs2_alloc_context *data_ac);
+struct ocfs2_dir_block_trailer *ocfs2_dir_trailer_from_size(int blocksize,
+ void *data);
#endif /* OCFS2_DIR_H */