Messages in this thread Patch in this message | | | Date | Wed, 15 Sep 2004 14:22:12 -0500 | From | Robin Holt <> | Subject | [PATCH 1/2] Fix write() return values for tmpfs. |
| |
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>
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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |