From: Dave Kleikamp Date: Thu, 15 Aug 2013 20:36:49 +0000 (-0500) Subject: jfs: fix readdir cookie incompatibility with NFSv4 X-Git-Tag: v3.2.51~99 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a103ab32f1683201ab4b61ca53d199be4562a62d;p=pandora-kernel.git jfs: fix readdir cookie incompatibility with NFSv4 commit 44512449c0ab368889dd13ae0031fba74ee7e1d2 upstream. 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 Tested-by: Christian Kujau [bwh: Backported to 3.2: - Adjust context - s/ctx->pos/filp->f_pos/] Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed