VisionFive2 Linux kernel

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

More than 9999 Commits   32 Branches   54 Tags
author: David Howells <dhowells@redhat.com> 2021-07-12 17:04:47 +0100 committer: Greg Kroah-Hartman <gregkh@linuxfoundation.org> 2021-07-28 14:37:32 +0200 commit: 2131ea6126924e733c7bd718034927078d037d39 parent: 8dda575c891255cff73d8fbdb0f18e0469b61f49
Commit Summary:
afs: Fix setting of writeback_index
Diffstat:
1 file changed, 1 insertion, 1 deletion
diff --git a/fs/afs/write.c b/fs/afs/write.c
index 1ed62e0ccfe5..c0534697268e 100644
--- a/fs/afs/write.c
+++ b/fs/afs/write.c
@@ -784,7 +784,7 @@ int afs_writepages(struct address_space *mapping,
 	} else if (wbc->range_start == 0 && wbc->range_end == LLONG_MAX) {
 		ret = afs_writepages_region(mapping, wbc, 0, LLONG_MAX, &next);
 		if (wbc->nr_to_write > 0 && ret == 0)
-			mapping->writeback_index = next;
+			mapping->writeback_index = next / PAGE_SIZE;
 	} else {
 		ret = afs_writepages_region(mapping, wbc,
 					    wbc->range_start, wbc->range_end, &next);