btrfs: move btrfs_listxattr prototype to xattr.h
authorDavid Sterba <dsterba@suse.com>
Tue, 27 Feb 2018 14:48:59 +0000 (15:48 +0100)
committerDavid Sterba <dsterba@suse.com>
Mon, 26 Mar 2018 13:09:41 +0000 (15:09 +0200)
There's a proper header for xattr handlers.

Reviewed-by: Nikolay Borisov <nborisov@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/ctree.h
fs/btrfs/xattr.h

index eabc8431b442788522a8a30de536bc95e73b96fe..f4926dc9649fbbce4acf6c048c377be9c3e5c9ff 100644 (file)
@@ -3294,9 +3294,6 @@ void __cold btrfs_exit_sysfs(void);
 int btrfs_sysfs_add_mounted(struct btrfs_fs_info *fs_info);
 void btrfs_sysfs_remove_mounted(struct btrfs_fs_info *fs_info);
 
 int btrfs_sysfs_add_mounted(struct btrfs_fs_info *fs_info);
 void btrfs_sysfs_remove_mounted(struct btrfs_fs_info *fs_info);
 
-/* xattr.c */
-ssize_t btrfs_listxattr(struct dentry *dentry, char *buffer, size_t size);
-
 /* super.c */
 int btrfs_parse_options(struct btrfs_fs_info *info, char *options,
                        unsigned long new_flags);
 /* super.c */
 int btrfs_parse_options(struct btrfs_fs_info *info, char *options,
                        unsigned long new_flags);
index 57c63873061792c3ba0d321db04e7f8057bf4870..e215a3212a2a9788cecf2022a7589b42f6dc5fe3 100644 (file)
@@ -28,6 +28,7 @@ int btrfs_getxattr(struct inode *inode, const char *name,
 int btrfs_setxattr(struct btrfs_trans_handle *trans,
                            struct inode *inode, const char *name,
                            const void *value, size_t size, int flags);
 int btrfs_setxattr(struct btrfs_trans_handle *trans,
                            struct inode *inode, const char *name,
                            const void *value, size_t size, int flags);
+ssize_t btrfs_listxattr(struct dentry *dentry, char *buffer, size_t size);
 
 int btrfs_xattr_security_init(struct btrfs_trans_handle *trans,
                                     struct inode *inode, struct inode *dir,
 
 int btrfs_xattr_security_init(struct btrfs_trans_handle *trans,
                                     struct inode *inode, struct inode *dir,