提交 bcadd705 编写于 作者: D David Sterba

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: NNikolay Borisov <nborisov@suse.com>
Signed-off-by: NDavid Sterba <dsterba@suse.com>
上级 ab0d0936
......@@ -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;
......
......@@ -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,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册