diff options
author | David Howells <dhowells@redhat.com> | 2012-12-20 22:52:33 +0100 |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2012-12-20 22:58:25 +0100 |
commit | 5f4f9f4af185d5e76c966d2d3420a61870c856e7 (patch) | |
tree | b2f41124474891a58ec77cbbdb6adccb704073d6 /fs/fscache | |
parent | CacheFiles: Fix the marking of cached pages (diff) | |
download | linux-5f4f9f4af185d5e76c966d2d3420a61870c856e7.tar.xz linux-5f4f9f4af185d5e76c966d2d3420a61870c856e7.zip |
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 <dhowells@redhat.com>
Diffstat (limited to 'fs/fscache')
-rw-r--r-- | fs/fscache/page.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/fscache/page.c b/fs/fscache/page.c index d7c663cfc923..248a12e22532 100644 --- a/fs/fscache/page.c +++ b/fs/fscache/page.c @@ -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; |