summaryrefslogtreecommitdiff
path: root/fs/btrfs/tests/btrfs-tests.c
diff options
context:
space:
mode:
authorTrond Myklebust <trondmy@gmail.com>2020-02-02 17:53:54 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-02-14 16:29:59 -0500
commita93b2fce19d7331f9f19d1abb9a534ffa94e3476 (patch)
treea2168e94086687bcc82eba9048b88b6f4342706c /fs/btrfs/tests/btrfs-tests.c
parent9818f3668fa1ee489c921966d4fd61e5ef2213bd (diff)
NFS: Directory page cache pages need to be locked when read
[ Upstream commit 114de38225d9b300f027e2aec9afbb6e0def154b ] When a NFS directory page cache page is removed from the page cache, its contents are freed through a call to nfs_readdir_clear_array(). To prevent the removal of the page cache entry until after we've finished reading it, we must take the page lock. Fixes: 11de3b11e08c ("NFS: Fix a memory leak in nfs_readdir") Cc: stable@vger.kernel.org # v2.6.37+ Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com> Reviewed-by: Benjamin Coddington <bcodding@redhat.com> Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'fs/btrfs/tests/btrfs-tests.c')
0 files changed, 0 insertions, 0 deletions