From: Jason Gunthorpe Date: Tue, 24 Nov 2009 21:52:53 +0000 (+0000) Subject: xfs: Fix error return for fallocate() on XFS X-Git-Tag: v2.6.33-rc1~312^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=44a743f68705c681439f264deb05f8f38e9048d3;p=pandora-kernel.git xfs: Fix error return for fallocate() on XFS Noticed that through glibc fallocate would return 28 rather than -1 and errno = 28 for ENOSPC. The xfs routines uses XFS_ERROR format positive return error codes while the syscalls use negative return codes. Fixup the two cases in xfs_vn_fallocate syscall to convert to negative. Signed-off-by: Jason Gunthorpe Reviewed-by: Eric Sandeen Signed-off-by: Alex Elder --- Reading git-diff-tree failed