Commit 21553e72 authored by Adrian Bunk's avatar Adrian Bunk Committed by Linus Torvalds

[PATCH] fs/ext2/xattr.c: make ext2_xattr_list static

The patch below makes the needlessly global function ext2_xattr_list 
static.
Signed-off-by: default avatarAdrian Bunk <bunk@stusta.de>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 82398619
......@@ -136,17 +136,6 @@ ext2_xattr_handler(int name_index)
return handler;
}
/*
* Inode operation listxattr()
*
* dentry->d_inode->i_sem: don't care
*/
ssize_t
ext2_listxattr(struct dentry *dentry, char *buffer, size_t size)
{
return ext2_xattr_list(dentry->d_inode, buffer, size);
}
/*
* ext2_xattr_get()
*
......@@ -260,7 +249,7 @@ bad_block: ext2_error(inode->i_sb, "ext2_xattr_get",
* Returns a negative error number on failure, or the number of bytes
* used / required on success.
*/
int
static int
ext2_xattr_list(struct inode *inode, char *buffer, size_t buffer_size)
{
struct buffer_head *bh = NULL;
......@@ -334,6 +323,17 @@ bad_block: ext2_error(inode->i_sb, "ext2_xattr_list",
return error;
}
/*
* Inode operation listxattr()
*
* dentry->d_inode->i_sem: don't care
*/
ssize_t
ext2_listxattr(struct dentry *dentry, char *buffer, size_t size)
{
return ext2_xattr_list(dentry->d_inode, buffer, size);
}
/*
* If the EXT2_FEATURE_COMPAT_EXT_ATTR feature of this file system is
* not set, set it.
......
......@@ -66,7 +66,6 @@ extern struct xattr_handler ext2_xattr_security_handler;
extern ssize_t ext2_listxattr(struct dentry *, char *, size_t);
extern int ext2_xattr_get(struct inode *, int, const char *, void *, size_t);
extern int ext2_xattr_list(struct inode *, char *, size_t);
extern int ext2_xattr_set(struct inode *, int, const char *, const void *, size_t, int);
extern void ext2_xattr_delete_inode(struct inode *);
......@@ -86,12 +85,6 @@ ext2_xattr_get(struct inode *inode, int name_index,
return -EOPNOTSUPP;
}
static inline int
ext2_xattr_list(struct inode *inode, char *buffer, size_t size)
{
return -EOPNOTSUPP;
}
static inline int
ext2_xattr_set(struct inode *inode, int name_index, const char *name,
const void *value, size_t size, int flags)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment