]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
staging: erofs: move erofs_xattr_handlers to xattr.h
authorGao Xiang <gaoxiang25@huawei.com>
Mon, 14 Jan 2019 11:40:25 +0000 (19:40 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 15 Jan 2019 14:51:57 +0000 (15:51 +0100)
Let's move independent xattr-related stuffs to xattr.h.
No logic changes.

Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Gao Xiang <gaoxiang25@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/erofs/internal.h
drivers/staging/erofs/super.c
drivers/staging/erofs/xattr.h

index ae4f2555f4979a7bbf878e3e49311f4b4719ddfd..99b50b98133561470dcc4ac34356adaa0125e680 100644 (file)
@@ -580,11 +580,6 @@ int erofs_namei(struct inode *dir, struct qstr *name,
 /* dir.c */
 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)
 {
 #ifdef CONFIG_EROFS_FS_USE_VM_MAP_RAM
index 1c2eb69682efc4f3f372ff1155c354370ee34f16..45c7f6ddb9f575207d8049e649fd45b0cbe210f6 100644 (file)
@@ -16,6 +16,7 @@
 #include <linux/parser.h>
 #include <linux/seq_file.h>
 #include "internal.h"
+#include "xattr.h"
 
 #define CREATE_TRACE_POINTS
 #include <trace/events/erofs.h>
index 810fc947701ddf08bf716766d4cd2037009ffc4c..634dae9aaa0bbfa29ed0172585558956f961489e 100644 (file)
@@ -68,6 +68,8 @@ static const struct xattr_handler *xattr_handler_map[] = {
 }
 
 #ifdef CONFIG_EROFS_FS_XATTR
+extern const struct xattr_handler *erofs_xattr_handlers[];
+
 int erofs_getxattr(struct inode *, int, const char *, void *, size_t);
 ssize_t erofs_listxattr(struct dentry *, char *, size_t);
 #else