diff mbox

ocfs2: fix undefined struct variable in inode.h

Message ID 57E1E49D.8050503@huawei.com (mailing list archive)
State New, archived
Headers show

Commit Message

Joseph Qi Sept. 21, 2016, 1:38 a.m. UTC
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.

Signed-off-by: Joseph Qi <joseph.qi@huawei.com>
---
 fs/ocfs2/inode.h | 2 --
 1 file changed, 2 deletions(-)

Comments

Zhen Ren Sept. 22, 2016, 1:13 a.m. UTC | #1
Hi,

On 09/21/2016 09:38 AM, Joseph Qi wrote:
> 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.
>
> Signed-off-by: Joseph Qi <joseph.qi@huawei.com>

LGTM
Reviewed-by: Eric Ren<zren@suse.com>

> ---
>   fs/ocfs2/inode.h | 2 --
>   1 file changed, 2 deletions(-)
>
> diff --git a/fs/ocfs2/inode.h b/fs/ocfs2/inode.h
> index 50cc550..5af68fc 100644
> --- a/fs/ocfs2/inode.h
> +++ b/fs/ocfs2/inode.h
> @@ -123,8 +123,6 @@ static inline struct ocfs2_inode_info *OCFS2_I(struct inode *inode)
>   #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;
> -
>   extern const struct address_space_operations ocfs2_aops;
>   extern const struct ocfs2_caching_operations ocfs2_inode_caching_ops;
>
diff mbox

Patch

diff --git a/fs/ocfs2/inode.h b/fs/ocfs2/inode.h
index 50cc550..5af68fc 100644
--- a/fs/ocfs2/inode.h
+++ b/fs/ocfs2/inode.h
@@ -123,8 +123,6 @@  static inline struct ocfs2_inode_info *OCFS2_I(struct inode *inode)
 #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;
-
 extern const struct address_space_operations ocfs2_aops;
 extern const struct ocfs2_caching_operations ocfs2_inode_caching_ops;