Skip to contentSkip to conversation

xfs: fixed signedness of error code in xfs_inode_buf_verify

PATCH Applied Jeff Mahoney 2 participants 2 messages Oct 5, 2016 – Oct 6, 2016

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xfs: fixed signedness of error code in xfs_inode_buf_verify

Prior to v3.17, XFS used positive error codes internally. Commits backported from later releases need the error code signs reversed. Negative error codes will cause assertion failures (BUG_ON on kernels with assertions enabled.

---
 fs/xfs/xfs_inode_buf.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/xfs/xfs_inode_buf.c +1 -1
@@ -101,7 +101,7 @@ xfs_inode_buf_verify(
 						XFS_RANDOM_ITOBP_INOTOBP))) {
 			if (readahead) {
 				bp->b_flags &= ~XBF_DONE;
-				xfs_buf_ioerror(bp, -EIO);
+				xfs_buf_ioerror(bp, EIO);
 				return;
 			}
 
Signature · 2 lines
Jeff Mahoney
SUSE Labs
Applied
#1 lore raw
Quoted 4 lines · Jeff Mahoney

Prior to v3.17, XFS used positive error codes internally. Commits backported from later releases need the error code signs reversed. Negative error codes will cause assertion failures (BUG_ON on kernels with assertions enabled.

Applied, thanks!

Signature · 2 lines
js
suse labs