VisionFive2 Linux kernel

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

More than 9999 Commits   33 Branches   55 Tags
author: Steve French <stfrench@microsoft.com> 2021-07-23 18:35:15 -0500 committer: Greg Kroah-Hartman <gregkh@linuxfoundation.org> 2021-08-04 12:47:56 +0200 commit: 52e9158959d287b68e8fed9fd2f03d6c850263d4 parent: 19f60bf08ee3734f78b3cd5eb0b4b53acb553d6b
Commit Summary:
SMB3: fix readpage for large swap cache
Diffstat:
1 file changed, 1 insertion, 1 deletion
diff --git a/fs/cifs/file.c b/fs/cifs/file.c
index 379a427f3c2f..ae4ce762f4fb 100644
--- a/fs/cifs/file.c
+++ b/fs/cifs/file.c
@@ -4631,7 +4631,7 @@ read_complete:
 
 static int cifs_readpage(struct file *file, struct page *page)
 {
-	loff_t offset = (loff_t)page->index << PAGE_SHIFT;
+	loff_t offset = page_file_offset(page);
 	int rc = -EACCES;
 	unsigned int xid;