aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSage Weil <sage@newdream.net>2010-05-03 21:50:39 -0700
committerSage Weil <sage@newdream.net>2010-05-17 15:25:26 -0700
commitf1f2765faedc24f8f2e9fd68521a5ea469801b60 (patch)
tree92952357c08d4b5e88151f42d01d1af4f9a652a3
parentbddfa3cc18fcd9c9313a1030b19d3b0ea2639310 (diff)
downloadkernel_goldelico_gta04-f1f2765faedc24f8f2e9fd68521a5ea469801b60.zip
kernel_goldelico_gta04-f1f2765faedc24f8f2e9fd68521a5ea469801b60.tar.gz
kernel_goldelico_gta04-f1f2765faedc24f8f2e9fd68521a5ea469801b60.tar.bz2
ceph: set next_offset on readdir finish
Set next_offset to 2 (always 2!), not 0, on readdir finish. Signed-off-by: Sage Weil <sage@newdream.net>
-rw-r--r--fs/ceph/dir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ceph/dir.c b/fs/ceph/dir.c
index 422794f..0b0a39d 100644
--- a/fs/ceph/dir.c
+++ b/fs/ceph/dir.c
@@ -338,7 +338,7 @@ more:
if (req->r_reply_info.dir_end) {
kfree(fi->last_name);
fi->last_name = NULL;
- fi->next_offset = 0;
+ fi->next_offset = 2;
} else {
rinfo = &req->r_reply_info;
err = note_last_dentry(fi,