diff options
author | Sunil Mushran <sunil.mushran@oracle.com> | 2008-07-14 20:31:09 -0400 |
---|---|---|
committer | Mark Fasheh <mfasheh@suse.com> | 2008-07-31 19:21:13 -0400 |
commit | c69991aac71a8beb57c11d651c7fd4b24c32aa8b (patch) | |
tree | 936505f5248e2e7cd89407cb4d328b0d2027cafa /fs/ocfs2/ocfs2_fs.h | |
parent | ecb3d28c7edd58b54f16838c434b342ba9195bec (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>
Diffstat (limited to 'fs/ocfs2/ocfs2_fs.h')
-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 { | |||
660 | struct { /* Info for journal system | 660 | struct { /* Info for journal system |
661 | inodes */ | 661 | inodes */ |
662 | __le32 ij_flags; /* Mounted, version, etc. */ | 662 | __le32 ij_flags; /* Mounted, version, etc. */ |
663 | __le32 ij_pad; | 663 | __le32 ij_recovery_generation; /* Incremented when the |
664 | journal is recovered | ||
665 | after an unclean | ||
666 | shutdown */ | ||
664 | } journal1; | 667 | } journal1; |
665 | } id1; /* Inode type dependant 1 */ | 668 | } id1; /* Inode type dependant 1 */ |
666 | /*C0*/ union { | 669 | /*C0*/ union { |