]> asedeno.scripts.mit.edu Git - linux.git/commit
gfs2: use page_offset in gfs2_page_mkwrite
authorChristoph Hellwig <hch@lst.de>
Mon, 1 Jul 2019 21:54:31 +0000 (23:54 +0200)
committerAndreas Gruenbacher <agruenba@redhat.com>
Wed, 3 Jul 2019 06:53:01 +0000 (08:53 +0200)
commitf3915f83e84c1f14358aaa91e8785d6169092176
tree00ea8c4b154989fdaade319614f584b17f1bb8d0
parentf29e62eed261f01431d348d8b22a6f275d553a51
gfs2: use page_offset in gfs2_page_mkwrite

Without casting page->index to a guaranteed 64-bit type, the value might be
treated as 32-bit on 32-bit platforms and thus get truncated.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
fs/gfs2/file.c