]> git.baikalelectronics.ru Git - kernel.git/commit
ubifs: Change gfp flags in page allocation for bulk read
authorHyunchul Lee <cheol.lee@lge.com>
Wed, 14 Jun 2017 00:31:49 +0000 (09:31 +0900)
committerRichard Weinberger <richard@nod.at>
Fri, 14 Jul 2017 20:50:50 +0000 (22:50 +0200)
commitcf23354f782000af9597ae18643eccedba2c0ea7
treefba67215aa3a99176334885fd6774003bd11e43a
parentd859b4aeb110bc04f4bf3dd6dc8b45a74ecc25ac
ubifs: Change gfp flags in page allocation for bulk read

In low memory situations, page allocations for bulk read
can kill applications for reclaiming memory, and print an
failure message when allocations are failed.
Because bulk read is just an optimization, we don't have
to do these and can stop page allocations.

Though this siutation happens rarely, add __GFP_NORETRY
to prevent from excessive memory reclaim and killing
applications, and __GFP_WARN to suppress this failure
message.

For this, Use readahead_gfp_mask for gfp flags when
allocating pages.

Signed-off-by: Hyunchul Lee <cheol.lee@lge.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
fs/ubifs/file.c