gfs2: Multi-block allocations in gfs2_page_mkwrite
Andreas Gruenbacher authored
commit f53056c4 upstream.

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: 35af80ae

 ("gfs2: don't use buffer_heads in gfs2_allocate_page_backing")
Cc: stable@vger.kernel.org # v5.3+
Signed-off-by: default avatarAndreas Gruenbacher <agruenba@redhat.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
e697fd14
Name Last commit Last update
Documentation USB: documentation: flags on usb-storage versus UAS
LICENSES LICENSES: Rename other to deprecated
arch xtensa: use MEMBLOCK_ALLOC_ANYWHERE for KASAN shadow map
block block: fix "check bi_size overflow before merge"
certs PKCS#7: Refactor verify_pkcs7_signature()
crypto crypto: user - fix memory leak in crypto_reportstat
drivers PCI: Apply Cavium ACS quirk to ThunderX2 and ThunderX3
fs gfs2: Multi-block allocations in gfs2_page_mkwrite
include PM / QoS: Redefine FREQ_QOS_MAX_DEFAULT_VALUE to S32_MAX
init Merge branch 'next-lockdown' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/linux-security
ipc ipc/sem.c: convert to use built-in RCU list checking
kernel workqueue: Fix missing kfree(rescuer) in destroy_workqueue()
lib lib: raid6: fix awk build warnings
mm mm/shmem.c: cast the type of unmap_start to u64
net xdp: obtain the mem_id mutex before trying to remove an entry.
samples samples/bpf: fix build by setting HAVE_ATTR_TEST to zero
scripts Merge tag 'arm64-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux
security efi/efi_test: Lock down /dev/efi_test and require CAP_SYS_ADMIN
sound ALSA: hda/realtek - Line-out jack doesn't work on a Dell AIO
tools net/tls: Fix return values to avoid ENOTSUPP
usr kbuild: update compile-test header list for v5.4-rc2
virt KVM: arm/arm64: vgic: Don't rely on the wrong pending table
.clang-format clang-format: Update with the latest for_each macro list
.cocciconfig scripts: add Linux .cocciconfig for coccinelle
.get_maintainer.ignore Opt out of scripts/get_maintainer.pl
.gitattributes .gitattributes: set git diff driver for C source code files
.gitignore Merge tag 'modules-for-v5.4' of git://git.kernel.org/pub/scm/linux/kernel/git/jeyu/linux
.mailmap Merge tag 'armsoc-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc
COPYING COPYING: use the new text with points to the license files
CREDITS MAINTAINERS: Remove Simon as Renesas SoC Co-Maintainer
Kbuild kbuild: do not descend to ./Kbuild when cleaning
Kconfig docs: kbuild: convert docs to ReST and rename to *.rst
MAINTAINERS Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net
Makefile Linux 5.4.5
README Drop all 00-INDEX files from Documentation/
Linux kernel
============

There are several guides for kernel developers and users. These guides can
be rendered in a number of formats, like HTML and PDF. Please read
Documentation/admin-guide/README.rst first.

In order to build the documentation, use ``make htmldocs`` or
``make pdfdocs``.  The formatted documentation can also be read online at:

    https://www.kernel.org/doc/html/latest/

There are various text files in the Documentation/ subdirectory,
several of them using the Restructured Text markup notation.

Please read the Documentation/process/changes.rst file, as it contains the
requirements for building and running the kernel, and information about
the problems which may result by upgrading your kernel.