Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bcadd705 authored by David Sterba's avatar David Sterba
Browse files

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: default avatarNikolay Borisov <nborisov@suse.com>
Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
parent ab0d0936
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
+1 −1
Original line number Diff line number Diff line
@@ -23,7 +23,7 @@

extern const struct xattr_handler *btrfs_xattr_handlers[];

ssize_t btrfs_getxattr(struct inode *inode, const char *name,
int btrfs_getxattr(struct inode *inode, const char *name,
		void *buffer, size_t size);
int btrfs_setxattr(struct btrfs_trans_handle *trans,
			    struct inode *inode, const char *name,