summaryrefslogtreecommitdiffstats
path: root/fs/dcookies.c
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2013-03-13 22:59:49 +0100
committerLinus Torvalds <torvalds@linux-foundation.org>2013-03-13 23:21:49 +0100
commit59bfbcf01967d4d3370a2b8294673dd709e732cc (patch)
treee868c63aadb6cb943e457ed2e16fcefc151243aa /fs/dcookies.c
parentUAPI: fix endianness conditionals in M32R's asm/stat.h (diff)
downloadlinux-59bfbcf01967d4d3370a2b8294673dd709e732cc.tar.xz
linux-59bfbcf01967d4d3370a2b8294673dd709e732cc.zip
idr: idr_alloc() shouldn't trigger lowmem warning when preloaded
GFP_NOIO is often used for idr_alloc() inside preloaded section as the allocation mask doesn't really matter. If the idr tree needs to be expanded, idr_alloc() first tries to allocate using the specified allocation mask and if it fails falls back to the preloaded buffer. This order prevent non-preloading idr_alloc() users from taking advantage of preloading ones by using preload buffer without filling it shifting the burden of allocation to the preload users. Unfortunately, this allowed/expected-to-fail kmem_cache allocation ends up generating spurious slab lowmem warning before succeeding the request from the preload buffer. This patch makes idr_layer_alloc() add __GFP_NOWARN to the first kmem_cache attempt and try kmem_cache again w/o __GFP_NOWARN after allocation from preload_buffer fails so that lowmem warning is generated if not suppressed by the original @gfp_mask. Signed-off-by: Tejun Heo <tj@kernel.org> Reported-by: David Teigland <teigland@redhat.com> Tested-by: David Teigland <teigland@redhat.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/dcookies.c')
0 files changed, 0 insertions, 0 deletions