]> git.baikalelectronics.ru Git - kernel.git/commit
cifs: fix page refcount leak
authorJeff Layton <jlayton@redhat.com>
Tue, 1 Jun 2010 14:54:45 +0000 (10:54 -0400)
committerSteve French <sfrench@us.ibm.com>
Tue, 1 Jun 2010 17:15:52 +0000 (17:15 +0000)
commitc5765faf95c70caf867b4672c8a54d3d7fc8072c
tree79cc0493370222c074709a0c742ee4209a63e582
parent3173211281a3ce3c9872737cb9c520fbba09227a
cifs: fix page refcount leak

Commit 4ae858484c99840d6b4a079b7755ff7dadcd465b 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: Jeff Layton <jlayton@redhat.com>
Acked-by: Nick Piggin <npiggin@suse.de>
Signed-off-by: Steve French <sfrench@us.ibm.com>
fs/cifs/file.c