]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4d5fc396722e7632cd1d7175b6164e30d9fe0f86
treec1ba50848987dc38cb884e5d5e62162a3ab03a14
parent6b014251058b6bfa418b76c7359923282e976d59
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