[Ocfs2-tools-devel] [PATCH 1/2] tools: Adds counter in struct ocfs2_dinode to track journal replays
Sunil Mushran
sunil.mushran at oracle.com
Mon Jul 14 13:15:36 PDT 2008
This patch renames the ij_pad to ij_recovery_generation in struct ocfs2_dinode.
This is used to keep count of journal replays after an unclean shutdown.
Signed-off-by: Sunil Mushran <sunil.mushran at oracle.com>
---
include/ocfs2-kernel/ocfs2_fs.h | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/include/ocfs2-kernel/ocfs2_fs.h b/include/ocfs2-kernel/ocfs2_fs.h
index 4527c6c..0cfef2a 100644
--- a/include/ocfs2-kernel/ocfs2_fs.h
+++ b/include/ocfs2-kernel/ocfs2_fs.h
@@ -651,7 +651,10 @@ struct ocfs2_dinode {
struct { /* Info for journal system
inodes */
__le32 ij_flags; /* Mounted, version, etc. */
- __le32 ij_pad;
+ __le32 ij_recovery_generation; /* Incremented when the
+ journal is recovered
+ after an unclean
+ shutdown */
} journal1;
} id1; /* Inode type dependant 1 */
/*C0*/ union {
--
1.5.4.3
More information about the Ocfs2-tools-devel
mailing list