mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
CacheFiles: Downgrade the requirements passed to the allocator
Downgrade the requirements passed to the allocator in the gfp flags parameter. FS-Cache/CacheFiles can handle OOM conditions simply by aborting the attempt to store an object or a page in the cache. Signed-off-by: David Howells <[email protected]>
This commit is contained in:
parent
c4d6d8dbf3
commit
5f4f9f4af1
6 changed files with 19 additions and 15 deletions
|
|
@ -759,7 +759,7 @@ int __fscache_write_page(struct fscache_cookie *cookie,
|
|||
|
||||
fscache_stat(&fscache_n_stores);
|
||||
|
||||
op = kzalloc(sizeof(*op), GFP_NOIO);
|
||||
op = kzalloc(sizeof(*op), GFP_NOIO | __GFP_NOMEMALLOC | __GFP_NORETRY);
|
||||
if (!op)
|
||||
goto nomem;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue