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)
commite47c085afb3d16cbc6a4bfb10a3b074bb7c58998
tree67472d29b894b285bc6cc3bb7802b57c3d295bca
parent51e816564db151f7f08c739ad69b9d1dbd166663
NFS: Ensure that we update the readdir filp->f_pos correctly

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