aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ocfs2/journal.h
diff options
context:
space:
mode:
Diffstat (limited to 'fs/ocfs2/journal.h')
-rw-r--r--fs/ocfs2/journal.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/ocfs2/journal.h b/fs/ocfs2/journal.h
index d4ac19739d7c..0bb6754c73f4 100644
--- a/fs/ocfs2/journal.h
+++ b/fs/ocfs2/journal.h
@@ -129,9 +129,9 @@ static inline int ocfs2_inode_is_new(struct inode *inode)
129 return 0; 129 return 0;
130 spin_lock(&trans_inc_lock); 130 spin_lock(&trans_inc_lock);
131 ret = !(time_after(OCFS2_SB(inode->i_sb)->journal->j_trans_id, 131 ret = !(time_after(OCFS2_SB(inode->i_sb)->journal->j_trans_id,
132 OCFS2_I(inode)->ip_created_trans)); 132 INODE_CACHE(inode)->ci_created_trans));
133 if (!ret) 133 if (!ret)
134 OCFS2_I(inode)->ip_created_trans = 0; 134 INODE_CACHE(inode)->ci_created_trans = 0;
135 spin_unlock(&trans_inc_lock); 135 spin_unlock(&trans_inc_lock);
136 return ret; 136 return ret;
137} 137}
@@ -140,7 +140,7 @@ static inline void ocfs2_inode_set_new(struct ocfs2_super *osb,
140 struct inode *inode) 140 struct inode *inode)
141{ 141{
142 spin_lock(&trans_inc_lock); 142 spin_lock(&trans_inc_lock);
143 OCFS2_I(inode)->ip_created_trans = osb->journal->j_trans_id; 143 INODE_CACHE(inode)->ci_created_trans = osb->journal->j_trans_id;
144 spin_unlock(&trans_inc_lock); 144 spin_unlock(&trans_inc_lock);
145} 145}
146 146