jfs: fix readdir regression
authorDave Kleikamp <dave.kleikamp@oracle.com>
Mon, 23 Mar 2015 21:06:26 +0000 (16:06 -0500)
committerDanny Wood <danwood76@gmail.com>
Tue, 29 Jan 2019 13:07:53 +0000 (13:07 +0000)
commit7fd75a8d38bbebb61b23e2e2e88d8521933af081
treedd4a72779de6c87d53049b0ea6b0c4256fcfeff9
parent29f602906b2011bd816d2394b2973f16f50c1212
jfs: fix readdir regression

Upstream commit 44512449, "jfs: fix readdir cookie incompatibility
with NFSv4", was backported incorrectly into the stable trees which
used the filldir callback (rather than dir_emit). The position is
being incorrectly passed to filldir for the . and .. entries.

The still-maintained stable trees that need to be fixed are 3.2.y,
3.4.y and 3.10.y.

https://bugzilla.kernel.org/show_bug.cgi?id=94741

Signed-off-by: Dave Kleikamp <dave.kleikamp@oracle.com>
Cc: jfs-discussion@lists.sourceforge.net
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/jfs/jfs_dtree.c