aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorAdrian Bunk <bunk@stusta.de>2005-01-10 17:25:23 -0800
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-01-10 17:25:23 -0800
commit21553e72991b2e7d8ad6833f039eeac2f08d3807 (patch)
treeaf1a3467c8d90fa6a8a1c89407c312f92176c198 /fs
parent823986199ffd2928bcff8b6ab3c0dede78d19253 (diff)
downloadhistory-21553e72991b2e7d8ad6833f039eeac2f08d3807.tar.gz
[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: Adrian Bunk <bunk@stusta.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'fs')
-rw-r--r--fs/ext2/xattr.c24
-rw-r--r--fs/ext2/xattr.h7
2 files changed, 12 insertions, 19 deletions
diff --git a/fs/ext2/xattr.c b/fs/ext2/xattr.c
index 457abba28519ce..e78fb7c65212d0 100644
--- a/fs/ext2/xattr.c
+++ b/fs/ext2/xattr.c
@@ -137,17 +137,6 @@ ext2_xattr_handler(int name_index)
}
/*
- * 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()
*
* Copy an extended attribute into the buffer
@@ -260,7 +249,7 @@ cleanup:
* 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;
@@ -335,6 +324,17 @@ cleanup:
}
/*
+ * 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.
*/
diff --git a/fs/ext2/xattr.h b/fs/ext2/xattr.h
index 65ea5f9e723d07..0b7ad429fe00ff 100644
--- a/fs/ext2/xattr.h
+++ b/fs/ext2/xattr.h
@@ -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 *);
@@ -87,12 +86,6 @@ ext2_xattr_get(struct inode *inode, int name_index,
}
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)
{