xfs: standardize GFP flags usage in online scrub
authorDarrick J. Wong <djwong@kernel.org>
Mon, 7 Nov 2022 01:03:15 +0000 (17:03 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Wed, 16 Nov 2022 23:25:01 +0000 (15:25 -0800)
commit48ff40458f871fb19e7b1b40e0e5084b8751d9cb
treeeb354d9816ed18fbd3f82940eb718c2237018a61
parentb255fab0f80cc65a334fcd90cd278673cddbc988
xfs: standardize GFP flags usage in online scrub

Memory allocation usage is the same throughout online fsck -- we want
kernel memory, we have to be able to back out if we can't allocate
memory, and we don't want to spray dmesg with memory allocation failure
reports.  Standardize the GFP flag usage and document these requirements.

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