diff options
author | Sunil Mushran <sunil.mushran@oracle.com> | 2008-07-14 17:31:09 -0700 |
---|---|---|
committer | Mark Fasheh <mfasheh@suse.com> | 2008-07-18 11:15:34 -0700 |
commit | 6f15e873827a49d4b2fd454047277af821a879dd (patch) | |
tree | 7e07a92292feb03f0035275e6fdd8eb4f9919c48 | |
parent | 5b664cb235e97afbf34db9c4d77f08ebd725335e (diff) |
[PATCH 1/2] ocfs2: Add counter in struct ocfs2_dinode to track journal replays
This patch renames the ij_pad to ij_recovery_generation in struct ocfs2_dinode.
This will be used to keep count of journal replays after an unclean shutdown.
Signed-off-by: Sunil Mushran <sunil.mushran@oracle.com>
Signed-off-by: Mark Fasheh <mfasheh@suse.com>
-rw-r--r-- | fs/ocfs2/ocfs2_fs.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/fs/ocfs2/ocfs2_fs.h b/fs/ocfs2/ocfs2_fs.h index 3f1945177629..4f619850ccf7 100644 --- a/fs/ocfs2/ocfs2_fs.h +++ b/fs/ocfs2/ocfs2_fs.h @@ -660,7 +660,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 { |