diff options
author | Joel Becker <joel.becker@oracle.com> | 2009-02-12 18:41:59 -0500 |
---|---|---|
committer | Joel Becker <joel.becker@oracle.com> | 2009-09-04 19:07:49 -0400 |
commit | 292dd27ec76b96cebcef576f330ab121f59ccf05 (patch) | |
tree | d98f4d359f610e7dad53eb5b68fdb1517a043fb3 /fs/ocfs2/uptodate.c | |
parent | 66fb345ddd2d343e36692da0ff66126d7a99dc1b (diff) |
ocfs2: move ip_created_trans to struct ocfs2_caching_info
Similar ip_last_trans, ip_created_trans tracks the creation of a journal
managed inode. This specifically tracks what transaction created the
inode. This is so the code can know if the inode has ever been written
to disk.
This behavior is desirable for any journal managed object. We move it
to struct ocfs2_caching_info as ci_created_trans so that any object
using ocfs2_caching_info can rely on this behavior.
Signed-off-by: Joel Becker <joel.becker@oracle.com>
Diffstat (limited to 'fs/ocfs2/uptodate.c')
-rw-r--r-- | fs/ocfs2/uptodate.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/ocfs2/uptodate.c b/fs/ocfs2/uptodate.c index 81c82200b908..b6284f235d2f 100644 --- a/fs/ocfs2/uptodate.c +++ b/fs/ocfs2/uptodate.c | |||
@@ -124,8 +124,10 @@ static void ocfs2_metadata_cache_reset(struct ocfs2_caching_info *ci, | |||
124 | ci->ci_flags |= OCFS2_CACHE_FL_INLINE; | 124 | ci->ci_flags |= OCFS2_CACHE_FL_INLINE; |
125 | ci->ci_num_cached = 0; | 125 | ci->ci_num_cached = 0; |
126 | 126 | ||
127 | if (clear) | 127 | if (clear) { |
128 | ci->ci_created_trans = 0; | ||
128 | ci->ci_last_trans = 0; | 129 | ci->ci_last_trans = 0; |
130 | } | ||
129 | } | 131 | } |
130 | 132 | ||
131 | void ocfs2_metadata_cache_init(struct ocfs2_caching_info *ci, | 133 | void ocfs2_metadata_cache_init(struct ocfs2_caching_info *ci, |