[PATCH 1/2] Fix write() return values for tmpfs.

From: Robin Holt
Date: Wed Sep 15 2004 - 14:24:04 EST


This patch makes the return from the write() syscall actually an ssize_t
instead of an int.

Signed-off-by: Robin Holt <holt@xxxxxxx>


Index: linux-2.6/mm/shmem.c
===================================================================
--- linux-2.6.orig/mm/shmem.c 2004-09-14 14:40:06.000000000 -0500
+++ linux-2.6/mm/shmem.c 2004-09-14 14:54:38.000000000 -0500
@@ -1301,7 +1301,7 @@
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;
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/