|
@@ -1056,8 +1056,7 @@ EXPORT_SYMBOL_GPL(mtd_writev);
|
|
|
* until the request succeeds or until the allocation size falls below
|
|
|
* the system page size. This attempts to make sure it does not adversely
|
|
|
* impact system performance, so when allocating more than one page, we
|
|
|
- * ask the memory allocator to avoid re-trying, swapping, writing back
|
|
|
- * or performing I/O.
|
|
|
+ * ask the memory allocator to avoid re-trying.
|
|
|
*
|
|
|
* Note, this function also makes sure that the allocated buffer is aligned to
|
|
|
* the MTD device's min. I/O unit, i.e. the "mtd->writesize" value.
|
|
@@ -1071,8 +1070,7 @@ EXPORT_SYMBOL_GPL(mtd_writev);
|
|
|
*/
|
|
|
void *mtd_kmalloc_up_to(const struct mtd_info *mtd, size_t *size)
|
|
|
{
|
|
|
- gfp_t flags = __GFP_NOWARN | __GFP_WAIT |
|
|
|
- __GFP_NORETRY | __GFP_NO_KSWAPD;
|
|
|
+ gfp_t flags = __GFP_NOWARN | __GFP_WAIT | __GFP_NORETRY;
|
|
|
size_t min_alloc = max_t(size_t, mtd->writesize, PAGE_SIZE);
|
|
|
void *kbuf;
|
|
|
|