On Wed, Nov 06, 2019 at 08:02:39PM +0100, Andreas Gruenbacher wrote: > On architectures where ssize_t is wider than pgoff_t, the expression > ((page->index + 1) << PAGE_SHIFT) can overflow. Rewrite to use the page > offset, which we already compute here anyway. Looks good modulo the s/ssize_t/loff_t/ mentioned in the other patch: Reviewed-by: Christoph Hellwig <hch@xxxxxx>