NFS: Ensure that we update the readdir filp->f_pos correctly
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Wed, 23 Mar 2011 12:43:09 +0000 (08:43 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Wed, 23 Mar 2011 19:12:12 +0000 (15:12 -0400)
If we're doing a search by readdir cookie, we need to ensure that the
resulting f_pos is updated. To do so, we need to update the
desc->current_index, in the same way that we do in the search by
file offset case.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/dir.c

diff --cc fs/nfs/dir.c
Simple merge