summaryrefslogtreecommitdiff
path: root/fs/btrfs/xattr.c
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2018-02-27 17:48:57 +0300
committerDavid Sterba <dsterba@suse.com>2018-03-26 16:09:41 +0300
commitbcadd7050a43216e6ace936c23b4055fb5966ca1 (patch)
treefa09542e27ec4848f8e20bd330a01ea7f2d05670 /fs/btrfs/xattr.c
parentab0d09361662b7593fe166d27ad49b8852a2ef3e (diff)
downloadlinux-bcadd7050a43216e6ace936c23b4055fb5966ca1.tar.xz
btrfs: adjust return type of btrfs_getxattr
The xattr_handler::get prototype returns int, use it. The only ssize_t exception is the per-inode listxattr handler. Reviewed-by: Nikolay Borisov <nborisov@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/xattr.c')
-rw-r--r--fs/btrfs/xattr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/xattr.c b/fs/btrfs/xattr.c
index 414ccbe26c71..e1e8177deb5e 100644
--- a/fs/btrfs/xattr.c
+++ b/fs/btrfs/xattr.c
@@ -33,7 +33,7 @@
#include "locking.h"
-ssize_t btrfs_getxattr(struct inode *inode, const char *name,
+int btrfs_getxattr(struct inode *inode, const char *name,
void *buffer, size_t size)
{
struct btrfs_dir_item *di;