diff options
author | Mark Fasheh <mark.fasheh@oracle.com> | 2006-09-12 18:35:49 -0400 |
---|---|---|
committer | Mark Fasheh <mark.fasheh@oracle.com> | 2006-09-24 16:50:45 -0400 |
commit | f9e2d82e6395cfa0802446b54b63cc412089d82c (patch) | |
tree | cdf647041c713d3cbc8b1e0d4006c9440184e336 /fs/ocfs2/dlmglue.h | |
parent | 4d3b83f7364269b66cdda271f680bd99e77afd96 (diff) |
ocfs2: Encode i_generation in the meta data lvb
When i_generation is removed from the lockname, this will help us determine
whether a meta data lvb has information that is in sync with the local
struct inode.
Signed-off-by: Mark Fasheh <mark.fasheh@oracle.com>
Diffstat (limited to 'fs/ocfs2/dlmglue.h')
-rw-r--r-- | fs/ocfs2/dlmglue.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/ocfs2/dlmglue.h b/fs/ocfs2/dlmglue.h index 3476a1611341..45a74f44b688 100644 --- a/fs/ocfs2/dlmglue.h +++ b/fs/ocfs2/dlmglue.h | |||
@@ -29,7 +29,7 @@ | |||
29 | 29 | ||
30 | #include "dcache.h" | 30 | #include "dcache.h" |
31 | 31 | ||
32 | #define OCFS2_LVB_VERSION 3 | 32 | #define OCFS2_LVB_VERSION 4 |
33 | 33 | ||
34 | struct ocfs2_meta_lvb { | 34 | struct ocfs2_meta_lvb { |
35 | __be16 lvb_reserved0; | 35 | __be16 lvb_reserved0; |
@@ -45,7 +45,8 @@ struct ocfs2_meta_lvb { | |||
45 | __be16 lvb_imode; | 45 | __be16 lvb_imode; |
46 | __be16 lvb_inlink; | 46 | __be16 lvb_inlink; |
47 | __be32 lvb_iattr; | 47 | __be32 lvb_iattr; |
48 | __be32 lvb_reserved[2]; | 48 | __be32 lvb_igeneration; |
49 | __be32 lvb_reserved2; | ||
49 | }; | 50 | }; |
50 | 51 | ||
51 | /* ocfs2_meta_lock_full() and ocfs2_data_lock_full() 'arg_flags' flags */ | 52 | /* ocfs2_meta_lock_full() and ocfs2_data_lock_full() 'arg_flags' flags */ |