jfs: fix readdir regression
authorDave Kleikamp <dave.kleikamp@oracle.com>
Mon, 23 Mar 2015 21:06:26 +0000 (16:06 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 29 Apr 2015 08:33:57 +0000 (10:33 +0200)
commit1ca630d975c5abb422ef7969494cacd91a1c125a
tree10f2496b5d754b718e65442a13eacb893cf9b933
parente3f5ff371c1e9ad273f403c6a487f972bc5bd058
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