diff options
Diffstat (limited to 'fs/ocfs2/inode.c')
-rw-r--r-- | fs/ocfs2/inode.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/ocfs2/inode.c b/fs/ocfs2/inode.c index 4dc8890ba316..8ec80445d18c 100644 --- a/fs/ocfs2/inode.c +++ b/fs/ocfs2/inode.c | |||
@@ -1118,7 +1118,8 @@ void ocfs2_clear_inode(struct inode *inode) | |||
1118 | "Clear inode of %llu, inode has %u cache items\n", | 1118 | "Clear inode of %llu, inode has %u cache items\n", |
1119 | (unsigned long long)oi->ip_blkno, oi->ip_metadata_cache.ci_num_cached); | 1119 | (unsigned long long)oi->ip_blkno, oi->ip_metadata_cache.ci_num_cached); |
1120 | 1120 | ||
1121 | mlog_bug_on_msg(!(oi->ip_flags & OCFS2_INODE_CACHE_INLINE), | 1121 | mlog_bug_on_msg(!(oi->ip_metadata_cache.ci_flags & |
1122 | OCFS2_CACHE_FL_INLINE), | ||
1122 | "Clear inode of %llu, inode has a bad flag\n", | 1123 | "Clear inode of %llu, inode has a bad flag\n", |
1123 | (unsigned long long)oi->ip_blkno); | 1124 | (unsigned long long)oi->ip_blkno); |
1124 | 1125 | ||
@@ -1145,7 +1146,7 @@ void ocfs2_clear_inode(struct inode *inode) | |||
1145 | (unsigned long long)oi->ip_blkno, oi->ip_open_count); | 1146 | (unsigned long long)oi->ip_blkno, oi->ip_open_count); |
1146 | 1147 | ||
1147 | /* Clear all other flags. */ | 1148 | /* Clear all other flags. */ |
1148 | oi->ip_flags = OCFS2_INODE_CACHE_INLINE; | 1149 | oi->ip_flags = 0; |
1149 | oi->ip_created_trans = 0; | 1150 | oi->ip_created_trans = 0; |
1150 | oi->ip_last_trans = 0; | 1151 | oi->ip_last_trans = 0; |
1151 | oi->ip_dir_start_lookup = 0; | 1152 | oi->ip_dir_start_lookup = 0; |