xfs: xfs_iozero can return positive errno
PATCH 1/1 xfs: xfs_iozero can return positive errno
From: Dave Chinner <[email protected]>
It was missed when we converted everything in XFs to use negative error numbers, so fix it now. Bug introduced in 3.17 by commit 2451337 ("xfs: global error sign conversion"), and should go back to stable kernels.
Thanks to Brian Foster for noticing it.
--- fs/xfs/xfs_file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
fs/xfs/xfs_file.c +1 -1
@@ -125,7 +125,7 @@ xfs_iozero( status =0 ; }while (count); -return (-status); +return status; }int
Signature · 6 lines
2.0.0 _______________________________________________ xfs mailing list [email protected] http://oss.sgi.com/mailman/listinfo/xfs
Quoted 11 lines · Dave Chinner
From: Dave Chinner <[email protected]>
It was missed when we converted everything in XFs to use negative error numbers, so fix it now. Bug introduced in 3.17 by commit 2451337 ("xfs: global error sign conversion"), and should go back to stable kernels.
Thanks to Brian Foster for noticing it.
cc <[email protected]> # 3.17, 3.18, 3.19, 4.0Signed-off-by Dave Chinner <[email protected]>---
Quoted 23 lines
fs/xfs/xfs_file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)fs/xfs/xfs_file.c +1
-1@@ -125,7 +125,7 @@ xfs_iozero( status =0 ; }while (count); -return (-status); +return status; }int Signature · 6 lines
2.0.0 _______________________________________________ xfs mailing list [email protected] http://oss.sgi.com/mailman/listinfo/xfs
_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs