From: Zheng Liu Date: Mon, 28 May 2012 22:06:51 +0000 (-0400) Subject: ext4: use consistent ssize_t type in ext4_file_write() X-Git-Tag: v3.5-rc1~16^2~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8563000d3bf3ccfccce335c092a7c43078be8ffd;p=pandora-kernel.git ext4: use consistent ssize_t type in ext4_file_write() The generic_file_aio_write() function returns ssize_t, and ext4_file_write() returns a ssize_t, so use a ssize_t to collect the return value from generic_file_aio_write(). It shouldn't matter since the VFS read/write paths shouldn't allow a read greater than MAX_INT, but there was previously a bug in the AIO code paths, and it's best if we use a consistent type so that the return value from generic_file_aio_write() can't get truncated. Reported-by: Jouni Siren Reviewed-by: Jan Kara Signed-off-by: Zheng Liu Signed-off-by: "Theodore Ts'o" --- Reading git-diff-tree failed