Andreas Gruenbacher d3c51c55cb gfs2: Fix underflow in gfs2_page_mkwrite
On filesystems with a block size smaller than PAGE_SIZE and non-empty
files smaller then PAGE_SIZE, gfs2_page_mkwrite could end up allocating
excess blocks beyond the end of the file, similar to fallocate.  This
doesn't make sense; fix it.

Reported-by: Bob Peterson <rpeterso@redhat.com>
Fixes: 184b4e60853d ("gfs2: Fix end-of-file handling in gfs2_page_mkwrite")
Cc: stable@vger.kernel.org # v5.5+
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
2021-06-28 14:13:38 +02:00
..
2021-01-24 14:27:20 +01:00
2021-01-24 14:27:20 +01:00
2019-07-03 14:45:18 +02:00
2021-04-29 10:33:35 -07:00
2021-04-29 10:33:35 -07:00
2021-02-17 19:30:28 +01:00
2021-04-08 15:07:21 +02:00