xfs: fixed signedness of error code in xfs_inode_buf_verify
Subsystems (2)
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.
Cc <[email protected]> # v3.12-v3.16
Signed-off-by Jeff Mahoney <[email protected]>
--- 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
Jiri Slaby
AppliedQuoted 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_ONon kernels with assertions enabled.
Applied, thanks!
Signature · 2 lines
js suse labs