ceph: fix reset_readdir()
authorYan, Zheng <zheng.z.yan@intel.com>
Fri, 28 Feb 2014 08:36:09 +0000 (16:36 +0800)
committerYan, Zheng <zheng.z.yan@intel.com>
Thu, 3 Apr 2014 02:33:52 +0000 (10:33 +0800)
commitdcd3cc05e5f230f8fbc0c3369a5d6ad4f1d23aed
treec1ba50848987dc38cb884e5d5e62162a3ab03a14
parentf0494206076703aaa0c8005eff41c413216ae26b
ceph: fix reset_readdir()

When changing readdir postion, fi->next_offset should be set to 0
if the new postion is not in the first dirfrag.

Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
Reviewed-by: Alex Elder <elder@linaro.org>
fs/ceph/dir.c