Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 65149e3f authored by Dave Chinner's avatar Dave Chinner Committed by Dave Chinner
Browse files

xfs: correct error sign on COLLAPSE_RANGE errors

parent b38a134b
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -837,7 +837,7 @@ xfs_file_fallocate(
		unsigned blksize_mask = (1 << inode->i_blkbits) - 1;

		if (offset & blksize_mask || len & blksize_mask) {
			error = -EINVAL;
			error = EINVAL;
			goto out_unlock;
		}

@@ -846,7 +846,7 @@ xfs_file_fallocate(
		 * in which case it is effectively a truncate operation
		 */
		if (offset + len >= i_size_read(inode)) {
			error = -EINVAL;
			error = EINVAL;
			goto out_unlock;
		}