Lines Matching refs:size
31 * @size: number of bytes to allocate
36 * Allocates @size bytes of memory, rounded up to multiples of PAGE_SIZE and
42 static inline void *__ntfs_malloc(unsigned long size, gfp_t gfp_mask)
44 if (likely(size <= PAGE_SIZE)) {
45 BUG_ON(!size);
50 if (likely((size >> PAGE_SHIFT) < totalram_pages))
51 return __vmalloc(size, gfp_mask, PAGE_KERNEL);
57 * @size: number of bytes to allocate
59 * Allocates @size bytes of memory, rounded up to multiples of PAGE_SIZE and
64 static inline void *ntfs_malloc_nofs(unsigned long size)
66 return __ntfs_malloc(size, GFP_NOFS | __GFP_HIGHMEM);
71 * @size: number of bytes to allocate
73 * Allocates @size bytes of memory, rounded up to multiples of PAGE_SIZE and
81 static inline void *ntfs_malloc_nofs_nofail(unsigned long size)
83 return __ntfs_malloc(size, GFP_NOFS | __GFP_HIGHMEM | __GFP_NOFAIL);