diff options
author | 2009-11-24 21:52:53 +0000 | |
---|---|---|
committer | 2009-12-11 15:11:23 -0600 | |
commit | 44a743f68705c681439f264deb05f8f38e9048d3 (patch) | |
tree | 3634e5e6599143f44e37e0964f61688ecf7af4a4 /fs/jbd2/commit.c | |
parent | xfs: cleanup dmapi macros in the umount path (diff) | |
download | wireguard-linux-44a743f68705c681439f264deb05f8f38e9048d3.tar.xz wireguard-linux-44a743f68705c681439f264deb05f8f38e9048d3.zip |
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 <jgunthorpe@obsidianresearch.com>
Reviewed-by: Eric Sandeen <sandeen@sandeen.net>
Signed-off-by: Alex Elder <aelder@sgi.com>
Diffstat (limited to 'fs/jbd2/commit.c')
0 files changed, 0 insertions, 0 deletions