]> git.hungrycats.org Git - linux/commitdiff
[PATCH] Fix write() return values for tmpfs.
authorRobin Holt <holt@sgi.com>
Fri, 17 Sep 2004 05:17:17 +0000 (22:17 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Fri, 17 Sep 2004 05:17:17 +0000 (22:17 -0700)
This patch makes the return from the write() syscall actually an ssize_t
instead of an int.

Signed-off-by: Robin Holt <holt@sgi.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
mm/shmem.c

index 3a8d1636298e20968397c460548c96e82ea2f4b9..296a61073ef605d5f858a023d8a4782f973c0c72 100644 (file)
@@ -1301,7 +1301,7 @@ shmem_file_write(struct file *file, const char __user *buf, size_t count, loff_t
        struct inode    *inode = file->f_dentry->d_inode;
        loff_t          pos;
        unsigned long   written;
-       int             err;
+       ssize_t         err;
 
        if ((ssize_t) count < 0)
                return -EINVAL;