aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ext2/xattr.c
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/ext2/xattr.c
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/ext2/xattr.c')
-rw-r--r--fs/ext2/xattr.c24
1 files changed, 12 insertions, 12 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.
*/