VisionFive2 Linux kernel

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

More than 9999 Commits   35 Branches   59 Tags
author: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp> 2006-06-23 02:03:26 -0700 committer: Linus Torvalds <torvalds@g5.osdl.org> 2006-06-23 07:42:49 -0700 commit: 111ebb6e6f7bd7de6d722c5848e95621f43700d9 parent: 4c91c3648c620003cb7b21b8858f36cd6132e168
Commit Summary:
[PATCH] writeback: fix range handling
Diffstat:
1 file changed, 1 insertion, 1 deletion
diff --git a/fs/sync.c b/fs/sync.c
index aab5ffe77e9f..955aef04da28 100644
--- a/fs/sync.c
+++ b/fs/sync.c
@@ -100,7 +100,7 @@ asmlinkage long sys_sync_file_range(int fd, loff_t offset, loff_t nbytes,
 	}
 
 	if (nbytes == 0)
-		endbyte = -1;
+		endbyte = LLONG_MAX;
 	else
 		endbyte--;		/* inclusive */