diff options
author | Darrick J. Wong <djwong@kernel.org> | 2022-11-07 04:03:15 +0300 |
---|---|---|
committer | Darrick J. Wong <djwong@kernel.org> | 2022-11-17 02:25:01 +0300 |
commit | 48ff40458f871fb19e7b1b40e0e5084b8751d9cb (patch) | |
tree | eb354d9816ed18fbd3f82940eb718c2237018a61 /fs/xfs/scrub/symlink.c | |
parent | b255fab0f80cc65a334fcd90cd278673cddbc988 (diff) | |
download | linux-48ff40458f871fb19e7b1b40e0e5084b8751d9cb.tar.xz |
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>
Diffstat (limited to 'fs/xfs/scrub/symlink.c')
-rw-r--r-- | fs/xfs/scrub/symlink.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/scrub/symlink.c b/fs/xfs/scrub/symlink.c index 75311f8daeeb..c1c99ffe7408 100644 --- a/fs/xfs/scrub/symlink.c +++ b/fs/xfs/scrub/symlink.c @@ -21,7 +21,7 @@ xchk_setup_symlink( struct xfs_scrub *sc) { /* Allocate the buffer without the inode lock held. */ - sc->buf = kvzalloc(XFS_SYMLINK_MAXLEN + 1, GFP_KERNEL); + sc->buf = kvzalloc(XFS_SYMLINK_MAXLEN + 1, XCHK_GFP_FLAGS); if (!sc->buf) return -ENOMEM; |