file.c (0337966d121ebebf73a1c346123e8112796e684e) file.c (19809c2da28aee5860ad9a2eff760730a0710df0)
1/*
2 * linux/fs/file.c
3 *
4 * Copyright (C) 1998-1999, Stephen Tweedie and Bill Hawes
5 *
6 * Manage the dynamic fd arrays in the process files_struct.
7 */
8

--- 28 unchanged lines hidden (view full) ---

37 * vmalloc() if the allocation size will be considered "large" by the VM.
38 */
39 if (size <= (PAGE_SIZE << PAGE_ALLOC_COSTLY_ORDER)) {
40 void *data = kmalloc(size, GFP_KERNEL_ACCOUNT |
41 __GFP_NOWARN | __GFP_NORETRY);
42 if (data != NULL)
43 return data;
44 }
1/*
2 * linux/fs/file.c
3 *
4 * Copyright (C) 1998-1999, Stephen Tweedie and Bill Hawes
5 *
6 * Manage the dynamic fd arrays in the process files_struct.
7 */
8

--- 28 unchanged lines hidden (view full) ---

37 * vmalloc() if the allocation size will be considered "large" by the VM.
38 */
39 if (size <= (PAGE_SIZE << PAGE_ALLOC_COSTLY_ORDER)) {
40 void *data = kmalloc(size, GFP_KERNEL_ACCOUNT |
41 __GFP_NOWARN | __GFP_NORETRY);
42 if (data != NULL)
43 return data;
44 }
45 return __vmalloc(size, GFP_KERNEL_ACCOUNT | __GFP_HIGHMEM, PAGE_KERNEL);
45 return __vmalloc(size, GFP_KERNEL_ACCOUNT, PAGE_KERNEL);
46}
47
48static void __free_fdtable(struct fdtable *fdt)
49{
50 kvfree(fdt->fd);
51 kvfree(fdt->open_fds);
52 kfree(fdt);
53}

--- 934 unchanged lines hidden ---
46}
47
48static void __free_fdtable(struct fdtable *fdt)
49{
50 kvfree(fdt->fd);
51 kvfree(fdt->open_fds);
52 kfree(fdt);
53}

--- 934 unchanged lines hidden ---