ceph: set next_offset on readdir finish
authorSage Weil <sage@newdream.net>
Tue, 4 May 2010 04:50:39 +0000 (21:50 -0700)
committerSage Weil <sage@newdream.net>
Mon, 17 May 2010 22:25:26 +0000 (15:25 -0700)
Set next_offset to 2 (always 2!), not 0, on readdir finish.

Signed-off-by: Sage Weil <sage@newdream.net>
fs/ceph/dir.c

index 422794f..0b0a39d 100644 (file)
@@ -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,