gfs2: Multi-block allocations in gfs2_page_mkwrite
authorAndreas Gruenbacher <agruenba@redhat.com>
Thu, 7 Nov 2019 18:06:14 +0000 (18:06 +0000)
committerAndreas Gruenbacher <agruenba@redhat.com>
Thu, 7 Nov 2019 20:02:02 +0000 (21:02 +0100)
commitf53056c43063257ae4159d83c425eaeb772bcd71
tree728411610adc524257eabfa506d5460536591b36
parent39c3a948ecf6e7b8f55f0e91a5febc924fede4d7
gfs2: Multi-block allocations in gfs2_page_mkwrite

In gfs2_page_mkwrite's gfs2_allocate_page_backing helper, try to
allocate as many blocks at once as we need.  Pass in the size of the
requested allocation.

Fixes: 35af80aef99b ("gfs2: don't use buffer_heads in gfs2_allocate_page_backing")
Cc: stable@vger.kernel.org # v5.3+
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
fs/gfs2/file.c