]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
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 422794fd10e0d7827e64faf772d982f1a3ab65aa..0b0a39d05ca64733e9fd8c07f71339899cacd1f7 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,