On Tue, Aug 24, 2021 at 02:24:47PM +0100, David Howells wrote:
> +             ret = afs_store_data(vnode, &iter,
> +                                  (loff_t)page->index * PAGE_SIZE + f, true);

You probably want to use page_offset() here:

                ret = afs_store_data(vnode, &iter, page_offset(page) + f, true);

--
Linux-cachefs mailing list
Linux-cachefs@redhat.com
https://listman.redhat.com/mailman/listinfo/linux-cachefs

Reply via email to