Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f1f2765f authored by Sage Weil's avatar Sage Weil
Browse files

ceph: set next_offset on readdir finish



Set next_offset to 2 (always 2!), not 0, on readdir finish.

Signed-off-by: default avatarSage Weil <sage@newdream.net>
parent bddfa3cc
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -338,7 +338,7 @@ static int ceph_readdir(struct file *filp, void *dirent, filldir_t filldir)
		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,