This commit was manufactured by cvs2svn to create tag
[linux-2.6.git] / fs / libfs.c
index 205cfdb..dfe6ac5 100644 (file)
@@ -7,7 +7,6 @@
 #include <linux/pagemap.h>
 #include <linux/mount.h>
 #include <linux/vfs.h>
-#include <asm/uaccess.h>
 
 int simple_getattr(struct vfsmount *mnt, struct dentry *dentry,
                   struct kstat *stat)
@@ -440,22 +439,6 @@ void simple_release_fs(struct vfsmount **mount, int *count)
        mntput(mnt);
 }
 
-ssize_t simple_read_from_buffer(void __user *to, size_t count, loff_t *ppos,
-                               const void *from, size_t available)
-{
-       loff_t pos = *ppos;
-       if (pos < 0)
-               return -EINVAL;
-       if (pos >= available)
-               return 0;
-       if (count > available - pos)
-               count = available - pos;
-       if (copy_to_user(to, from + pos, count))
-               return -EFAULT;
-       *ppos = pos + count;
-       return count;
-}
-
 EXPORT_SYMBOL(dcache_dir_close);
 EXPORT_SYMBOL(dcache_dir_lseek);
 EXPORT_SYMBOL(dcache_dir_open);
@@ -478,4 +461,3 @@ EXPORT_SYMBOL(simple_rmdir);
 EXPORT_SYMBOL(simple_statfs);
 EXPORT_SYMBOL(simple_sync_file);
 EXPORT_SYMBOL(simple_unlink);
-EXPORT_SYMBOL(simple_read_from_buffer);