diff options
author | Robin Holt <holt@sgi.com> | 2004-09-16 22:17:17 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2004-09-16 22:17:17 -0700 |
commit | 643d4316a60164d888f59b26cb37ae578da692e3 (patch) | |
tree | d1a466a8be5db4553bb5977d6d76b5cf55beb782 /mm | |
parent | 8cc3d21cc33c150b706d806adabab518b928a9b9 (diff) | |
download | history-643d4316a60164d888f59b26cb37ae578da692e3.tar.gz |
[PATCH] 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>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'mm')
-rw-r--r-- | mm/shmem.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/shmem.c b/mm/shmem.c index 3a8d1636298e20..296a61073ef605 100644 --- a/mm/shmem.c +++ b/mm/shmem.c @@ -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; |