jfs: fix readdir cookie incompatibility with NFSv4
authorDave Kleikamp <dave.kleikamp@oracle.com>
Thu, 15 Aug 2013 20:36:49 +0000 (15:36 -0500)
committerDave Kleikamp <dave.kleikamp@oracle.com>
Thu, 15 Aug 2013 22:22:29 +0000 (17:22 -0500)
commit44512449c0ab368889dd13ae0031fba74ee7e1d2
tree28ac7c89b26e2acacc00c850ac74e825333db72a
parentf1d6e17f540af37bb1891480143669ba7636c4cf
jfs: fix readdir cookie incompatibility with NFSv4

NFSv4 reserves readdir cookie values 0-2 for special entries (. and ..),
but jfs allows a value of 2 for a non-special entry. This incompatibility
can result in the nfs client reporting a readdir loop.

This patch doesn't change the value stored internally, but adds one to
the value exposed to the iterate method.

Signed-off-by: Dave Kleikamp <dave.kleikamp@oracle.com>
Tested-by: Christian Kujau <lists@nerdbynature.de>
fs/jfs/jfs_dtree.c