Skip to contentSkip to conversation

ocfs2: fix undefined struct variable in inode.h

PATCH New [email protected] 1 participant 1 message Oct 7, 2016 OCFS2

lore
Share & tools
lore
#0 lore raw

PATCH 11/127 ocfs2: fix undefined struct variable in inode.h

From: Joseph Qi <[email protected]>
Subject: ocfs2: fix undefined struct variable in inode.h

The extern struct variable ocfs2_inode_cache is not defined. It meant to use ocfs2_inode_cachep defined in super.c, I think. Fortunately it is not used anywhere now, so no impact actually. Clean it up to fix this mistake.

---

 fs/ocfs2/inode.h |    2 --
 1 file changed, 2 deletions(-)
fs/ocfs2/inode.h renamed from fs/ocfs2/inode.h~ocfs2-fix-undefined-struct-variable-in-inodeh +0 -1
diff -puN fs/ocfs2/inode.h~ocfs2-fix-undefined-struct-variable-in-inodeh fs/ocfs2/inode.h
@@ -123,8 +123,6 @@ static inline struct ocfs2_inode_info *O
 #define INODE_JOURNAL(i) (OCFS2_I(i)->ip_flags & OCFS2_INODE_JOURNAL)
 #define SET_INODE_JOURNAL(i) (OCFS2_I(i)->ip_flags |= OCFS2_INODE_JOURNAL)
 
-extern struct kmem_cache *ocfs2_inode_cache;