Commit 06b43672 authored by Jeff Layton's avatar Jeff Layton Committed by Steve French
Browse files

cifs: fix page refcount leak

Commit 315e995c

 is causing OOM kills
when stress-testing a CIFS filesystem. The VFS readpages operation takes
a page reference. The older code just handed this reference off to the
page cache, but the new code takes an extra one. The simplest fix is to
put the new reference after add_to_page_cache_lru.

Signed-off-by: default avatarJeff Layton <jlayton@redhat.com>
Acked-by: default avatarNick Piggin <npiggin@suse.de>
Signed-off-by: default avatarSteve French <sfrench@us.ibm.com>
parent 67a3e12b
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment