VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   32 Branches   54 Tags
author: Jan Stancek <jstancek@redhat.com> 2019-11-11 12:58:24 -0800 committer: Darrick J. Wong <darrick.wong@oracle.com> 2019-11-11 12:58:24 -0800 commit: e9f930ac88a8936ccc2d021110c98810cf5aa810 parent: 2b91b28e29f6491efbe77694c17465a3054f37cf
Commit Summary:
iomap: fix return value of iomap_dio_bio_actor on 32bit systems
Diffstat:
1 file changed, 3 insertions, 1 deletion
diff --git a/fs/iomap/direct-io.c b/fs/iomap/direct-io.c
index 2f88d64c2a4d..b77ec2acb066 100644
--- a/fs/iomap/direct-io.c
+++ b/fs/iomap/direct-io.c
@@ -318,7 +318,9 @@ zero_tail:
 		if (pad)
 			iomap_dio_zero(dio, iomap, pos, fs_block_size - pad);
 	}
-	return copied ? copied : ret;
+	if (copied)
+		return copied;
+	return ret;
 }
 
 static loff_t