xfs: split up xfs_buf_allocate_memory
authorDave Chinner <dchinner@redhat.com>
Tue, 1 Jun 2021 03:40:02 +0000 (13:40 +1000)
committerDave Chinner <david@fromorbit.com>
Tue, 1 Jun 2021 03:40:02 +0000 (13:40 +1000)
commit0a683794ace283984ae95ea6796f37b5f3afc446
treec4af374500a5bf9fe43df3459651e7b1010e7a13
parentd07f6ca923ea0927a1024dfccafc5b53b61cfecc
xfs: split up xfs_buf_allocate_memory

Based on a patch from Christoph Hellwig.

This splits out the heap allocation and page allocation portions of
the buffer memory allocation into two separate helper functions.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
fs/xfs/xfs_buf.c