Thread (13 messages) 13 messages, 6 authors, 2016-09-28

Re: [PATCH] fs/select: add vmalloc fallback for select(2)

From: Vlastimil Babka <hidden>
Date: 2016-09-22 16:40:30
Also in: linux-fsdevel, linux-mm, lkml

On 09/22/2016 06:24 PM, Eric Dumazet wrote:
quoted
+		bits = kmalloc(alloc_size, GFP_KERNEL|__GFP_NOWARN);
+		if (!bits && alloc_size > PAGE_SIZE) {
+			bits = vmalloc(alloc_size);
+
+			if (!bits)
+				goto out_nofds;
Test should happen if alloc_size <= PAGE_SIZE
quoted
+		}
if (!bits && alloc_size > PAGE_SIZE)
    bits = vmalloc(alloc_size);

if (!bits)
      goto out_nofds;
Thanks... stupid last-minute changes.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help