Commit 6af7b483 authored by Gao Xiang's avatar Gao Xiang Committed by Greg Kroah-Hartman

staging: erofs: move erofs_xattr_handlers to xattr.h

Let's move independent xattr-related stuffs to xattr.h.
No logic changes.
Reviewed-by: default avatarChao Yu <yuchao0@huawei.com>
Signed-off-by: default avatarGao Xiang <gaoxiang25@huawei.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 60939826
...@@ -580,11 +580,6 @@ int erofs_namei(struct inode *dir, struct qstr *name, ...@@ -580,11 +580,6 @@ int erofs_namei(struct inode *dir, struct qstr *name,
/* dir.c */ /* dir.c */
extern const struct file_operations erofs_dir_fops; extern const struct file_operations erofs_dir_fops;
#ifdef CONFIG_EROFS_FS_XATTR
/* xattr.c */
extern const struct xattr_handler *erofs_xattr_handlers[];
#endif
static inline void *erofs_vmap(struct page **pages, unsigned int count) static inline void *erofs_vmap(struct page **pages, unsigned int count)
{ {
#ifdef CONFIG_EROFS_FS_USE_VM_MAP_RAM #ifdef CONFIG_EROFS_FS_USE_VM_MAP_RAM
......
...@@ -16,6 +16,7 @@ ...@@ -16,6 +16,7 @@
#include <linux/parser.h> #include <linux/parser.h>
#include <linux/seq_file.h> #include <linux/seq_file.h>
#include "internal.h" #include "internal.h"
#include "xattr.h"
#define CREATE_TRACE_POINTS #define CREATE_TRACE_POINTS
#include <trace/events/erofs.h> #include <trace/events/erofs.h>
......
...@@ -68,6 +68,8 @@ static const struct xattr_handler *xattr_handler_map[] = { ...@@ -68,6 +68,8 @@ static const struct xattr_handler *xattr_handler_map[] = {
} }
#ifdef CONFIG_EROFS_FS_XATTR #ifdef CONFIG_EROFS_FS_XATTR
extern const struct xattr_handler *erofs_xattr_handlers[];
int erofs_getxattr(struct inode *, int, const char *, void *, size_t); int erofs_getxattr(struct inode *, int, const char *, void *, size_t);
ssize_t erofs_listxattr(struct dentry *, char *, size_t); ssize_t erofs_listxattr(struct dentry *, char *, size_t);
#else #else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment